heartbeat

A small message sent at regular intervals on a long-lived connection to prove that both ends and the path between them are still alive.

In more detail

WebSockets define ping and pong control frames for it. A missed heartbeat tells a client to reconnect instead of waiting forever on a dead connection.

Example

Kafka consumers send heartbeats to the group coordinator from a background thread.

Related terms

Taught in

References

Certification courses