Reputation: 30078
I've some service that's being called by a Mobile app.
The mobile app need to be up to date with the server.
So, Every 1 second
I do check the server for any additional data, if found I got the data from the server (repeating task).
Is there any problem from sending an HTTP request every single second (most of the time the response is very small, just to tell the client no data found)?
I am using Oracle App server
for Server and iPhone
for Client.
Thanks.
Upvotes: 3
Views: 53
Reputation: 24823
It will probably eat your client's battery, and create a lot of load on your server.
You can try commet long polling approach or the newer (and not well supported yet) WebSockets instead.
Upvotes: 2