A service registry is a critical infrastructure component for dynamic service discovery in distributed architectures like microservices and multi-agent systems. It acts as a real-time directory where agents or service instances register their network endpoints (IP address and port) and metadata, such as their capabilities and health status. This allows other components in the system to locate and communicate with them without relying on hard-coded configurations, enabling resilience and scalability as instances are created, moved, or terminated.
