Zum Inhalt springen
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

Consul — service discovery a health checking

15. 04. 2015 1 Min. Lesezeit CORE SYSTEMSai
Consul — service discovery a health checking

Jak se služba A dozví, kde běží služba B? Hardcoded IP? Load balancer? Consul od HashiCorp přináší elegantní řešení: service discovery s health checking, KV store a DNS interface v jednom.

Registrace a health checks

{
  "service": {
    "name": "user-api",
    "port": 8080,
    "tags": ["v2", "production"],
    "check": {
      "http": "http://localhost:8080/health",
      "interval": "10s"
    }
  }
}

DNS interface: user-api.service.consul vrátí IP zdravých instancí. Jakákoliv aplikace s DNS to může používat bez integrace.

Consul vs. etcd vs. ZooKeeper

etcd: pure KV, bez service discovery. ZooKeeper: robustní, ale komplexní. Consul: nejkompletnější řešení — SD + health checks + KV + DNS.

Service discovery je prerekvizita mikroslužeb

Consul je aktuálně nejlepší volba. Nasazení za den, provoz bezproblémový.

consulservice discoveryhashicorpmicroservices
Teilen:

CORE SYSTEMS

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.

Brauchen Sie Hilfe bei der Implementierung?

Unsere Experten helfen Ihnen bei Design, Implementierung und Betrieb. Von der Architektur bis zur Produktion.

Kontaktieren Sie uns