What problem does it solve?
Service Discovery eliminates brittle, hardcoded service-to-service URLs by keeping a live registry of available instances with health status, so consumers can reliably route requests even as services scale, deploy, or fail.
Core Features & Use Cases
- Self-registration & deregistration: services announce themselves on startup and remove themselves on shutdown, keeping the registry accurate.
- Health-check monitoring: periodic liveness checks update instance health (healthy/degraded/unhealthy) and prune stale instances via heartbeat TTL.
- Client-side discovery & load balancing: consumers query by service name and select an appropriate instance using weighted strategies (e.g., prioritize healthy, deprioritize degraded).
Use cases: zero-downtime deployments (blue/green/canary), multi-region routing with region/capability metadata, and resilient microservice architectures where instances are ephemeral.
Quick Start
Use the service-discovery skill to design a service registry and client discovery flow for microservices, including self-registration, periodic health checking with TTL-based pruning, and a weighted instance selection strategy.