我有一个 django 支持的网站,允许上传/下载某些事件,其中事件包含地理编码、一些文本、图像等字段。
希望事件最多能在 1000-1500 左右,但它们可能会同时发生。 django 开发服务器可以处理试点负载还是我应该转向标准 Web 服务器(必须为此做一些更改)?
最佳答案
你绝对应该切换,django 开发服务器几乎是一个玩具,一个简单的单线程服务器,很容易用于开发,使用 apache 为你的 django 应用程序提供服务只需要很少的步骤 -
如果有人上传大图片,服务器将阻止在此期间的所有其他请求,我相信仅此一点就足以成为切换服务器的理由。
此外,django首页教程的建议documentation :
Now’s a good time to note: don’t use this server in anything resembling a production environment. It’s intended only for use while developing. (We’re in the business of making Web frameworks, not Web servers.)
关于python - Django开发服务器的容量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22394900/