Reputation: 114126
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?
Upvotes: 1
Views: 257
Reputation: 30063
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.
Upvotes: 1
Reputation: 882561
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.
Upvotes: 2
Reputation: 12272
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.
Upvotes: 1