nieuwo / dotnet-consul-sample

.NET Core Consul Service Discovery & Leader Election

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET Core 3 & Consul Service Discovery & Leader Election

A .NET Core Web API that registers itself with Consul on startup via Traefik and implements a leader election pattern for HA instances spread across DCs. All components run in Docker.

Usage

Create containers:
docker-compose up -d