[Twisted-Python] Persistence in browsers?
Glyph Lefkowitz
glyph at divmod.com
Fri Feb 4 19:46:59 MST 2005
Tibi Dondera wrote:
> Short version:
> I have 10.000 - 100.000 web browsers that are connected to my site, and
> I need to inform them __real-time__ (a max of 3-5 seconds delay) of an
> event that happened on the server. Is twisted the right way to go, given
> the fact that it promises asynchronous event handling ?
Wow. In short, "maybe". That is a lot of clients. I believe that
Twisted is probably up to the task, but regardless of which solution you
choose, you are going to have to do a lot of tuning. Have you done any
prototyping yet? If you do, I definitely recommend inspecting the
different reactors for performance differences with your application.
If you can use Javascript, you might want to use a JS sockets library
rather than XMLHTTPRequest, just so that you don't end up using one of
your persistent connections up. Or, perhaps the notification site
should be notify.yourdomain.com rather than yourdomain.com, so that the
persistent connection doesn't count towards your "site"...
More information about the Twisted-Python
mailing list