Design: Heartbeat Mechanism System
Design covers heartbeat sending, receiving, monitoring, and alerting. Out of scope are client implementation details and dashboard UI design specifics.
Functional Requirements
Non-Functional Requirements
Jump into concepts and practice - no test required
+------------+ Heartbeat +----------------+
| Clients | --------------------> | Heartbeat |
| (10,000) | | Receiver |
+------------+ +----------------+
| |
| | Updates last
| | heartbeat time
v v
+---------------------+
| State Store (Redis) |
+---------------------+
| |
| | Triggers alerts
| | if timeout
v v
+---------------------+
| Alerting Service |
+---------------------+
|
v
+---------------------+
| Monitoring Dashboard|
+---------------------+heartbeat mechanism in system design?