When an app is to be developed that displays new data whenever it is stored in a folder through XML, we use websockets apache server.
Mod_websocket or php websocket can be used.we can also use self-hosted realtime web technology for realtime communication between server and client.
A hosted realtime web solutions and realtime push aspect of your application can be offloaded.
However, Apache server is not good in long-running persistant connections between server and client.
Best solution for this is:
- While using Apache as application server we need to use second dedicated realtime webserver.
- Self hosted realtime webserver can be used to handle many concurrent connections
- A hosted service can be used along with Apache application server.