Hi,
I have a currently running PHP application that I want to add real-time feed (Google search latest result feeds), I have an implementation in PHP that does the following:
- An AJAX request to the server.
- The PHP responds.
- After 15000ms (15 seconds) using setTimeout(), we repeat the steps.
I knew this have very much overhead on the server and will cause the C10K problems.
After researching I figured out that PHP as an Apache2 module is incompetent to implement the Comet solutions which is unfortunate!
I have two options, to use Scala, or Use Python to implement this part of my website since it's all complete and there is no time for rewriting it.
I don't care for anything as I care for performance since I use VPS200 from ServerGrove, And I'm going to install JVM or Python side-by-side with PHP.
So what you think has less memory/CPU consumption in this case JVM with Scala, Or Python?
Thanks in advance
Update: I guess I'll use Akka Project, I'm going to test it.