Click here to Skip to main content
15,905,913 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: Thought of the day Pin
Daniel Pfeffer12-May-17 5:59
professionalDaniel Pfeffer12-May-17 5:59 
GeneralAPOD Pin
R. Giskard Reventlov12-May-17 4:35
R. Giskard Reventlov12-May-17 4:35 
GeneralPush vs. Asynchronous pull Pin
Rob Philpott12-May-17 0:30
Rob Philpott12-May-17 0:30 
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 
Daniel Pfeffer wrote:
Once you have done that, you might as well use TCP.
That is not really true. It takes considerable effort* to implement efficient message-sending over TCP, because it's the opposite of what TCP is for, it's for bulk transport. It hates latency and maximizes throughput. UDP + retransmits has no such problem, you don't get things like head-of-line blocking and exponential back-off (which are actively evil for a message-based protocol).

*: you can use a whole bunch (4-10) of TCP sockets in parallel and roughly round-robin the packets over the sockets (send it to some socket that has had its previous packet ACKed). Since a message is sent over a socket that is "empty" (no outstanding bytes to send) it mostly avoid congestion control nonsense, and at the receiving side there is nothing to block the message. Still has some annoying TCP-problems such as requiring an extra length field for every message, a lengthy connection procedure, and a billion open sockets on the server..

With UDP all you need is some keep-alives and a sequence number in every message so you can ask for retransmits. There is no inherent anti-latency bias to work around, it's a lot simpler to add a couple of things on top than it is to try to subtract.
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 
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 

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.