I don't know much about web technologies so looking for some pointers.
I had to create a website which displays realtime dynamic data. Because of my basic knowledge of web design and tight time constraints I simply developed a polling based solution in JS (doing a request every second).
This is fairly inefficient, ideally I would like an event based solution where the server pushes any state changes to the client but of course standard HTTP and web is based on individual requests with server and client disconnects.
I did think of having the server pause when receiving a request and only responding when the event occurs but this seems hacky and I don't know how the client JS likes having the request hang (I assume it will time out).
My research points to lots of external systems/plugins like active X but we really need to keep this to JS and available for mobile platforms and different browsers (at least chrome+ firefox).
I wrote the server in python using cherrypy to save time and will be re-writing the server in C++/apache
I had to create a website which displays realtime dynamic data. Because of my basic knowledge of web design and tight time constraints I simply developed a polling based solution in JS (doing a request every second).
This is fairly inefficient, ideally I would like an event based solution where the server pushes any state changes to the client but of course standard HTTP and web is based on individual requests with server and client disconnects.
I did think of having the server pause when receiving a request and only responding when the event occurs but this seems hacky and I don't know how the client JS likes having the request hang (I assume it will time out).
My research points to lots of external systems/plugins like active X but we really need to keep this to JS and available for mobile platforms and different browsers (at least chrome+ firefox).
I wrote the server in python using cherrypy to save time and will be re-writing the server in C++/apache