1

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?

Community
  • 1
  • 1
Robin Rodricks
  • 99,791
  • 133
  • 372
  • 575

3 Answers3

2

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
  • 762,786
  • 156
  • 1,160
  • 1,345
1

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
  • 11,823
  • 2
  • 38
  • 46
1

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
  • 25,163
  • 37
  • 101
  • 128