PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, February 14, 2022

[FIXED] Can I use LAMP+AJAX for a (almost) Real Time System?

 February 14, 2022     lamp, latency, real-time     No comments   

Issue

I have a current system which is build as a Windows Application, and does certain tasks in very close to real time. There are nodes in a network that communicate with our custom server, communicating status, and sending and receiving commands.

We are looking to move to a web deployed platform. The nodes, say 60-100 of them, need to communicate with the server, and display to the client quickly. I'm talking milliseconds, not seconds. The network connection is LAN/100mbit or gigabit, with a reliably fast connection from the clients to the server. The node communication is also small, and it already sent as XML messages, which are not huge in size, and not overwhelming in quantity.

Our System Architect is confident, and assures us, that this can be done with LAMP + AJAX. I personally have been involved with similar systems before, and I'm skeptical about the guarantee delivery of messages this close to real time.

In order to have a sanity check, am I wrong? Can this be done (well) with LAMP, or any similar language? (Not Java, I know a launched Java applet can do this).


Solution

If you're talking about a near-realtime application such as a messaging program and not actual realtime then it can be done. The technique is called 'long-polling' or comet and has been used successfully by several major web startups (Meebo for example).

HTML 5 specifications also include a built-in messaging API which should really propel those techniques into the mainstream as it is implemented in the next generation of browsers (and some of the current generation as well).



Answered By - Eran Galperin
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing