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

  • Home
  • SEARCH
  • 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

We're currently running with php 5.2.5. We have now encountered a bug that creates
I have an application that is currently running against a 32-bit SQL Server 2005
I have currently an installed pgsql instance that is running on port 1486 .
Currently I'm running several websites that have several (branded) duplicates each, in the same
I have a dotnet windows service that's currently hung, but running. Is there anyway
I currently have an MS Access application that connects to a PostgreSQL database via
I currently have the query running on Postgres: SELECT * FROM addenda.users WHERE users.username
I have a J2EE-based system which is running currently on Apache Tomcat. We are
I have a servlet running in an Oracle OCCAS server. Currently I map some
I currently have speakers set up both in my office and in my living

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.