Persistent (long) http connection
James Berry <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
I have a mobile device which needs to know about new data pretty much as soon as it is available. I have a web service that I can poll to find out about the data, but it's a question of when I poll it. Since this device is connected over a mobile (GPRS) connection, and data is not free, I'd like to avoid a solution which just polls every 60 seconds or similar. So I'd like to make an http(s) connection that is "up" as long as it can be, which will just return some data is going to be available over the web service. On the server side I can do whatever tricks I can (probably just polling the database occasionally - which could be changed to using sql 2005 notifications when are clients move to sql 2005), and return when there is something new. But there won't be any data going over the link so usage costs will be kept down. When the client notices a disconnect, then it can just re-connect. I'm pretty sure this is a similar mechanism to Exchange Server works from mobile units. This strikes me as something which will have been done before - or perhaps there are better ways of doing it? Any tips, tricks or web-links appreciated - google hasn't turned up anything for me. Best wishes James =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com