[Twisted-Python] Multi-reactor architecture

Reza Lotun rlotun at gmail.com
Thu Nov 12 11:09:27 MST 2009


> hi,
> what would be the right thing to start from in order to build
> multi-reactor arch to handle thousands of concurrent connections?

Why would you want multiple reactors? The only reason would be to have
one per CPU core. For that the simplest thing would be to manually
start n twistd processes, one per core and have a reverse proxy
process listening on a port and distributing connections to each
twistd process. Of course, you can extend this architecture to
multiple machines.

Cheers,
Reza

-- 
Reza Lotun
mobile: +44 (0)7521 310 763
email:  rlotun at gmail.com
work:   reza at tweetdeck.com
twitter: @rlotun




More information about the Twisted-Python mailing list