Twisted server supports more than 10,000 concurrent connections. I want to write a test case to check it using Python.
What I know is just using multiprocessing + threading + greenlet. My question is how to confirm Twisted’s support for more than 10,000 concurrent connections?
Something I know is using logger, but is logger accurate? Or has other way to calculate it?
Nicholas Piël’s concurrency benchmarks are pretty interesting, and include comparisons of Twisted and other frameworks in Python. He also mentions how to test with socket handles numbering in the 10s of thousands.
Another good read on the subject is The C10K problem, although it doesn’t just apply to Python.
By applying the techniques Nicholas uses you’ll be able to verify his finds, and determine exactly what level of concurrency performance Twisted will achieve for you.