--- description: |- Consul is a highly available and distributed service discovery and KV store designed with support for the modern data center to make distributed systems and configuration easy. ---

Service discovery made easy.

Service Registry enables services to register and discover each other in dymanic infrastructure.

Download Explore Docs

The Challenge

Service load balancers aren't efficient in a dynamic world.

Load balancers are often used to front a service tier and provide a static IP. These load balancers add cost, increase latency, introduce single points of failure, and must be updated as services scale up/down.

The Solution

Service discovery for dynamic infrastructure.

Instead of load balancers, connectivity in dynamic infrastructure is best solved with service discovery. Service discovery uses a registry to keep a real-time list of services, their location, and their health. Services query the registry to discover the location of upstream services and then connect directly. This allows services to scale up/down and gracefully handle failure without a load balancer intermediary.

Features

Service Registry

Consul provides a registry of all the running nodes and services, along with their current health status. This allows operators to understand the environment, and applications and automation tools to interact with dynamic infrastructure using an HTTP API.

Learn more

Service Registry

DNS Query Interface

Consul enables service discovery using a built-in DNS server. This allows existing applications to easily integrate, as almost all applications support using DNS to resolve IP addresses. Using DNS instead of a static IP address allows services to scale up/down and route around failures easily.

Learn more

$ curl \ --request POST \ --data \ '{ "Name": "api", "Service": { "Service": "api", "Tags": ["v1.2.3"], "Failover": { "Datacenters": ["dc1", "dc2"]

HTTP API with Edge Triggers

Consul provides an HTTP API to query the service registry for nodes, services, and health check information. The API also supports blocking queries, or long-polling for any changes. This allows automation tools to react to services being registered or health status changes to change configurations or traffic routing in real time.

Learn more

$ curl \ --request POST \ --data \ '{ "Name": "api", "Service": { "Service": "api", "Tags": ["v1.2.3"], "Failover": { "Datacenters": ["dc1", "dc2"]

Multi Datacenter

Consul supports to multiple datacenters out of the box with no complicated configuration. Look up services in other datacenters or keep the request local. Advanced features like Prepared Queries enable automatic failover to other datacenters.

Learn more

$ curl \ --request POST \ --data \ '{ "Name": "api", "Service": { "Service": "api", "Tags": ["v1.2.3"], "Failover": { "Datacenters": ["dc1", "dc2"]

Health Checks

Pairing service discovery with health checking prevents routing requests to unhealthy hosts and enables services to easily provide circuit breakers.

Learn more

Service Registry

Case Studies

Ready to get started?

Download Explore docs