django如何处理多个用户 [英] How does django handle multiple users
问题描述
Django如何处理多个用户?我知道Apache创建了一个新线程,而expressjs使用了异步方法.但是我不理解Django,因为它正在同步工作,如果有2-3个以上的用户,这会不会减慢该过程?
How does Django handle multiple users? I know that Apache creates a new thread and expressjs uses asynchronous methods. But I do not understand Django because it is working synchronously would'nt this slow down the process if there are more than say 2-3 users ?
谢谢
推荐答案
Django是WSGI应用程序,与(WSGI)服务器(例如Apache)有根本区别.Node.js/Express.js包含自己的Web服务器来替换Apache.Django必须由您选择的网络服务器提供服务.
Django is a WSGI application, which is a fundamental difference from a (WSGI) server such as Apache. Node.js/Express.js contains its own webserver to replace Apache. Django has to be served by a webserver of your choice.
Django的唯一工作是线程安全的.并发请求的所有其他方面都由您的网络服务器处理.
Django's only job is to be thread-safe. All other aspects of concurrent requests are handled by your webserver.
这篇关于django如何处理多个用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!