Prompt
I'm unhappy with the lack of service discovery in my current setup
Latest observation
Oct 19, 2026
OpenAI APIWeb search: off
That makes sense — service discovery is one of those things that’s easy to miss until the system grows and everything becomes “hardcoded endpoint soup.”
A few common paths to fix it, depending on what you’re running:
- Kubernetes: use built-in Service objects and DNS (
my-service.my-namespace.svc.cluster.local), plus a headless service if you need direct pod discovery. - Docker Compose / single host: use service names on the default network (
http://api:8080instead of IPs). - Nomad / Consul: register services with Consul for DNS/API-based discovery and health checks.
- VM/bare metal: consider Consul, etcd, or ZooKeeper for registry-based discovery.
- Cloud-native managed setups: use the platform’s load balancers/service registry if available.
A good rule of thumb:
- Static config is fine for small, stable systems.
- DNS-based discovery is often the simplest improvement.
- Registry + health checks is better when services scale or move around frequently.
If you want, I can help you choose a service discovery approach based on your current environment and architecture.