views:

77

answers:

3

PHP as an Apache module or otherwise, would start one thread per pending request so it doesn't scale well.

Are Java and Python my only other options?

As a complete newbie to Python, is Twisted easy to use?

+1  A: 

Investigate node.js. It's an evented server-side framework using JavaScript. It will not block communication with your browsers, since it's event-driven.

Jonathan Julian
Does it keep recompiling the javascript source code everytime a request is recieved?
Jenko
Node.js runs on top of the V8 js engine - so I imagine it gets interpreted only once.
Jonathan Julian
+2  A: 

Twisted is very powerful but not easy to use, especially for a newbie.

tornado is another async server in Python, less general than Twisted (you would not use it for a network client for example) but simpler to use to implement servers, including Comet ones.

Alex Martelli
+1  A: 

My experience, been absolutely newbie with Twisted is that you can implement Comet easily with It. I've used Athena, which is included in Nevow. Nevow is built on top of Twisted. It's third pary.

Give it a try.

Here is an example.

Juanjo Conti