Replies: 2 comments 3 replies
-
You yourself commented here and then, it appears, deleted your comment. @michaelklishin's comment is still relevant: php-amqplib/php-amqplib#461 (comment) TCP keepalive's goal is to maintain a TCP connection for a long as possible, assuming issues are transient. Heartbeats' goal is to detect peer unavailability as soon as possible, because with TCP keepalive and default Linux settings it can take over 30 minutes by default (yes, 30 minutes). |
Beta Was this translation helpful? Give feedback.
-
The Heartbeats guide explains when TCP Keepalives can be used. Not every system can rely on them, and TCP in general tries hard to redeliver data, not help you detect failed connections quickly, so messaging and streaming protocols introduce heartbeats under this or other names. |
Beta Was this translation helpful? Give feedback.
-
Hey, all. What is the big benefit of heartbeats instead of the usual tcp keepalive?
Beta Was this translation helpful? Give feedback.
All reactions