Heartbeat Mechanism
The Heartbeat Mechanism is a technical feature used to verify that a network connection between a client and a server is still active and healthy. The client and server periodically exchange small, low-overhead signals to confirm their status.
If a heartbeat is missed, the system assumes the connection has been lost and triggers recovery procedures, such as re-establishing the session. This is vital for maintaining high-availability trading systems where downtime can result in significant financial loss.
It ensures that both sides of the communication channel are aware of the connection state in real-time, preventing the use of stale data or lost order updates.