[Twisted-Python] Persistence in browsers?

Tibi Dondera incoming at pronet-romania.com
Mon Feb 7 06:11:18 MST 2005


Hello,

I was unable to locate anu javascript library that uses sockets, the
closest I found was some mozilla technologies that transform it in a
kind of JS server, but I need a cross-browser, industry standard (read:
that works with the current software of users, i.e. 95% IE) solution.

Also, I still did not understand from your answer if twisted _does_
support this technique, of answering a HTTP client, then putting it to
sleep until something happens, on a large scale.

Thanks for your help, and any further info.
_________________
Tiberiu DONDERA


-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of Glyph
Lefkowitz
Sent: Saturday, 05 February 2005 03:47
To: Twisted general discussion
Subject: Re: [Twisted-Python] Persistence in browsers?


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"...

_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python






More information about the Twisted-Python mailing list