Build a Service Registry

heartbeats with TTL expiry

Challenge 1 of Platform EngineeringIntermediate~45 minFree

Let services find each other in a fleet where instances come and go. A registry tracks which instances of each service are alive, expires ones that stop sending heartbeats, and hands callers a healthy instance to talk to. Build registration, heartbeat-based TTL expiry, health-filtered discovery, and round-robin load balancing, the service-discovery core of Consul, Eureka, and etcd.

4 steps

  1. 1Registration and Liveness
  2. 2Heartbeats
  3. 3Deregistration
  4. 4Round-Robin Load Balancing
Start step 1