I have an Android client that needs to request information from my server. The information on my server is updated randomly and can be updated every second or minute. Communication is done via raw TCP/IP. My current method of is having the Android client request the info every few seconds on a loop. Is there a more efficient way of doing this? Would having the client request it every second kill battery? It's something like this:
- Open connection to server
- Send request message
- Server responds
- Client closes connection
- Repeat after 5 seconds