🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

DevOps Intermediate

What is Service Discovery?

A mechanism that automatically detects and tracks the network locations of service instances in distributed systems.

In dynamic environments where service instances are constantly created and destroyed, service discovery eliminates hardcoded addresses. Services register themselves when starting and deregister when stopping. Clients query the discovery system to find available instances. Tools include Consul (HashiCorp), etcd, ZooKeeper, and DNS-based discovery in Kubernetes. Client-side discovery (the client picks an instance) and server-side discovery (a load balancer routes requests) are the two main patterns. Service discovery is foundational for microservices architectures and container orchestration.

Related Terms

Container Registry
A storage and distribution service for container images, similar to a package repository but for Docker images.
Ansible
An agentless automation tool for configuration management, application deployment, and task automation using YAML playbooks.
Pipeline as Code
Defining CI/CD pipeline configurations as version-controlled code files rather than through UI-based pipeline builders.
Observability
The ability to understand a system's internal state from its external outputs through metrics, logs, and traces.
CI/CD
Continuous Integration and Continuous Deployment — automated practices for building, testing, and deploying code changes.
API Gateway
A server that acts as the single entry point for API requests, handling routing, authentication, rate limiting, and monitoring.
View All DevOps Terms →