Click here to Skip to main content
15,905,682 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Push vs. Asynchronous pull Pin
Duncan Edwards Jones12-May-17 1:00
professionalDuncan Edwards Jones12-May-17 1:00 
GeneralRe: Push vs. Asynchronous pull Pin
Jochen Arndt12-May-17 1:03
professionalJochen Arndt12-May-17 1:03 
GeneralRe: Push vs. Asynchronous pull Pin
Daniel Pfeffer12-May-17 1:08
professionalDaniel Pfeffer12-May-17 1:08 
GeneralRe: Push vs. Asynchronous pull Pin
Jochen Arndt12-May-17 1:16
professionalJochen Arndt12-May-17 1:16 
GeneralRe: Push vs. Asynchronous pull Pin
harold aptroot12-May-17 3:29
harold aptroot12-May-17 3:29 
GeneralRe: Push vs. Asynchronous pull Pin
Daniel Pfeffer12-May-17 5:42
professionalDaniel Pfeffer12-May-17 5:42 
GeneralRe: Push vs. Asynchronous pull Pin
raddevus12-May-17 2:26
mvaraddevus12-May-17 2:26 
GeneralRe: Push vs. Asynchronous pull Pin
Vark11112-May-17 2:48
Vark11112-May-17 2:48 
All of the long polling solutions I've used are asynch on the client. Obviously it's going to be asynch on the server as well since you probably want to be able to handle multiple clients.

To my thinking, synchronous long polling is the same thing as a synchronous server call - no polling involved.

The way I understand it (this is definitely not my area of expertise) the difference between long polling and push is that in long polling the client is maintaining an active TCP connection to the server. In push notifications, the client is only maintaining an active connection to a local socket. In the former case, all of those connections are going through a variety of network hardware that might have their own ideas about the lifespan of a TCP connection. In the later case, the connection is only open long enough to send the data.

The server side code is going to be a lot more complicated in a push scenario, but these days most libraries will let you set long polling or push notifications as a configuration option during the connection setup, then the consumption of messages is the same regardless which communication protocol you chose.
GeneralRe: Push vs. Asynchronous pull Pin
Marc Clifton12-May-17 3:33
mvaMarc Clifton12-May-17 3:33 
GeneralRe: Push vs. Asynchronous pull Pin
Ravi Bhavnani12-May-17 4:28
professionalRavi Bhavnani12-May-17 4:28 
GeneralRe: Push vs. Asynchronous pull Pin
PureNsanity12-May-17 4:33
professionalPureNsanity12-May-17 4:33 
GeneralRe: Push vs. Asynchronous pull Pin
Munchies_Matt12-May-17 5:44
Munchies_Matt12-May-17 5:44 
GeneralRe: Push vs. Asynchronous pull Pin
PIEBALDconsult14-May-17 13:09
mvePIEBALDconsult14-May-17 13:09 
GeneralSo here I am at 5:23 at work... Pin
Marc Clifton11-May-17 23:26
mvaMarc Clifton11-May-17 23:26 
GeneralRe: So here I am at 5:23 at work... Pin
OriginalGriff12-May-17 0:03
mveOriginalGriff12-May-17 0:03 
GeneralRe: So here I am at 5:23 at work... Pin
Daniel Pfeffer12-May-17 0:12
professionalDaniel Pfeffer12-May-17 0:12 
GeneralRe: So here I am at 5:23 at work... Pin
OriginalGriff12-May-17 0:19
mveOriginalGriff12-May-17 0:19 
GeneralRe: So here I am at 5:23 at work... Pin
Rage12-May-17 0:57
professionalRage12-May-17 0:57 
GeneralRe: So here I am at 5:23 at work... Pin
Super Lloyd12-May-17 2:42
Super Lloyd12-May-17 2:42 
GeneralRe: So here I am at 5:23 at work... Pin
Marc Clifton12-May-17 3:19
mvaMarc Clifton12-May-17 3:19 
GeneralRe: So here I am at 5:23 at work... Pin
W Balboos, GHB12-May-17 3:25
W Balboos, GHB12-May-17 3:25 
GeneralPermission granted Pin
dan!sh 12-May-17 0:13
professional dan!sh 12-May-17 0:13 
GeneralRe: Permission granted Pin
Marc Clifton12-May-17 3:22
mvaMarc Clifton12-May-17 3:22 
GeneralRe: So here I am at 5:23 at work... Pin
HobbyProggy12-May-17 1:15
professionalHobbyProggy12-May-17 1:15 
GeneralRe: So here I am at 5:23 at work... Pin
Marc Clifton12-May-17 3:23
mvaMarc Clifton12-May-17 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.