How to handle large number of simultaneous connections to the server?

How to handle large number of simultaneous connections to the server(in Python)?
(which of the options are correct)
1)Create a separate thread for each new connection
2)Processes and threads is not necessary, python will automatically handle all the connections
3)Create a separate process for each connection
4)create a process pool and separate threads for each connection
April 19th 20 at 12:21
2 answers
April 19th 20 at 12:23
Teach lessons myself.
I guess I'm asking due to the fact that never found the answer elsewhere, right? - Archibald.Wiso commented on April 19th 20 at 12:26
@Archibald.Wiso, it's probably a job that should be done independently, right? - demetrius_Emmerich commented on April 19th 20 at 12:29
no - Archibald.Wiso commented on April 19th 20 at 12:32
@Archibald.Wiso, just checking how the acquired theoretical training course, this question is divorced from reality. - demetrius_Emmerich commented on April 19th 20 at 12:35
I revised a lesson, there just is no answer to this question. - Archibald.Wiso commented on April 19th 20 at 12:38
April 19th 20 at 12:25
a large number of simultaneous connections to the server
not compatible c
Python
And what is compatible?) And how asyncio?) - Amber_Langwor commented on April 19th 20 at 12:28
compatible asyncio allows - demetrius_Emmerich commented on April 19th 20 at 12:31
@demetrius_Emmerichtipo
we will do this slowly and sadly (with)
- Bernadine_Corwin59 commented on April 19th 20 at 12:34
@Bernadine_Corwin59, everything is normal there, of course it's not on the threads, there's a simple tornado that solved the C10k problem, appeared in 2009, and now more productive there. - demetrius_Emmerich commented on April 19th 20 at 12:37
@demetrius_Emmerichif the world has a Python interpreter, able to compete with V8 - give proof plz. otherwise, the speech about anything - Bernadine_Corwin59 commented on April 19th 20 at 12:40
@demetrius_Emmerich, and if what about compiling to C, etc ... - Python good speed prototyping. not to belittle. but not add anything. as soon as we start to stir the solution for speed of execution - you have to forget about speed of development. and after that Python, to Shine no longer than - Bernadine_Corwin59 commented on April 19th 20 at 12:43
@Bernadine_Corwin59you strange, what's js? I say that there are no problems processing in python "a large number of simultaneous connections to the server." - demetrius_Emmerich commented on April 19th 20 at 12:46

Find more questions by tags Sockets