Home > other >  When there are 1000 clients at the same time during a visit to the django, django can afford to live
When there are 1000 clients at the same time during a visit to the django, django can afford to live

Time:10-11

As title, assume that the django made a simple restful interface (without using the django - restful - framework), when there are 1000 client access at the same time, the django can withstand the level number of concurrent?

CodePudding user response:

This is related to many factors point,

Server performance configuration, network, the degree of code optimization, etc.

You can test the Internet should have a lot of stress tests you can find out

CodePudding user response:

Sets a photo sharing site, there are hundred million level users

CodePudding user response:

refer to the second floor tianfang response:
sets a photo sharing site, there are hundred million level user
. Are you sure the realization of them is to use Django, please?

CodePudding user response:

Django concurrency is not very good, want to performance, might want to consider nginx + uWSGI + django

CodePudding user response:

The user's application in Python support 7 YiYue live? Sets a implementation so

https://cloud.tencent.com/developer/article/1076797

CodePudding user response:

reference 5 floor tianfang reply:
7 YiYue live user applications in Python support? Sets a implementation so

https://cloud.tencent.com/developer/article/1076797


Write very good, but still not clear how django to cope with high concurrency, I have done the test, the requests of library in python send multiple processes to django requests, each request in theory should return a json, but at the same time I started 100 process to django request, return a lot of content is {}, which is empty dict, if instead of only 20 concurrent requests, the django 20 json, can return to normal

CodePudding user response:

Performance optimization, at least to adjust uwsgi parameters, but also increase the cache, such as redis
  • Related