Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1104101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:26:15+00:00 2026-05-17T01:26:15+00:00

I have a currently running PHP application that I want to add real-time feed

  • 0

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:

  1. An AJAX request to the server.
  2. The PHP responds.
  3. 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.

Update 2:
I’ve done it using Node.js, it’s incomparable by any other solution (IMO) in learning curve, community support, and project maturity. And I had an unfortunate experience with Scala since I a gave Scala a very long opportunity before trying Node.js.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:26:16+00:00Added an answer on May 17, 2026 at 1:26 am

    Why not node.js? It has a proven reputation of the solution that perfectly handles COMET. Everyone knows Plurk success story – one of the most popular social networking sites in Asia that has 500+mln subscribers, with up to 200k of them working in a parallel (using COMET long-polling connections). node.js memory usage is way better (~10 times less) compared to solutions based on java app server suitable for COMET (Jetty/Netty).

    If you finally want to go with Java/Scala, you should first of all have a look at Atmosphere framework. It has the richest feature-set these days (supports all kinds of COMET strategies + web-sockets + servlets 3.0); out-of-the-box REST-support, based on Jersey (implementation of JAX-RS specification); integration with Akka (very powerful implementation of actors, fault-tolerance, STM, remotings etc on Scala).

    Choosing a Lift, you’d probably have to re-write your application entirely, though it has a very good COMET support.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dedicated server that hosts a number of websites currently running PHP
I have a PHP application running on Google App Engine, who has the ability
I have a legacy Java servlet that is currently running in a Tomcat container.
I have this running software that is currently being used by about 400 people.
I'm currently developing a PHP application that is going to use websockets for client-server
A very flowery title indeed. I have a PHP web application that is in
I have a .net winform application that I want to allow users to connect
I currently have a web server running PHP 5.2.13 and have recently been told:
I am currently running 1.3.2, and i have no problems with it so far.
I have a daemon app written in C and is currently running with no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.