3

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.

Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
  • Agreed it will just eat your clients battery and if it does that apple will reject it from going into the app store. Could you not do it every time you land on a particular page. – Popeye Jun 24 '12 at 17:15

1 Answers1

2

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.

Ofri Raviv
  • 24,375
  • 3
  • 55
  • 55