Interview practice question
Service crashes when a dependency is not ready
Backend Engineering · Microservices · Beginner
After a cluster restart, several services crash repeatedly because the services or databases they depend on are not ready yet. How do you fix this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Don't assume start order.
- Retry connections with backoff at startup.
- Readiness probes reflect true readiness.
- Startup probes for slow init.
- Handle dependency loss at runtime too.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.