Interview practice question
Hard-coded service addresses
Backend Engineering · Microservices · Beginner
Your services call each other using hard-coded IP addresses in config files, and calls break after every redeploy. What should you change?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- IPs change on redeploy/scale.
- Use service names via DNS/discovery.
- Kubernetes Services or Consul.
- Load balancer in front of instances.
- Config only holds logical names.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.