I have a current PHP application in which I want to add a feed in real time (Google search result feeds), I have a PHP implementation that does the following:
- AJAX request to the server.
- PHP answer.
- After 15000ms (15 seconds) with setTimeout () we repeat the steps.
I knew that there was a lot of overhead on the server and would cause C10K problems.
After researching, I found out that PHP, as an Apache2 module, is incompetent to implement Comet solutions that are unsuccessful!
I have two options: use Scala or use Python to implement this part of my website, since it is all complete and there is no time to rewrite it.
I don't care because I care about performance since I am using ServerGrove's VPS200 and I am going to install JVM or Python side by side with PHP.
So what do you think the memory / processor consumes less in this case, the JVM with Scala, or Python?
Thanks in advance
Update:
I think I will use Akka Project , I am going to test it.
Update 2:
I did this with Node.js , it is incomparable with any other solution (IMO) in the learning curve, community support and project maturity. And I had a bad experience with Scala, since I gave Scala a very long opportunity before trying Node.js.