Learning path · 15 lessons · 2 topics
🧩 Microservices interview preparation
Service design, communication, resilience, data consistency and observability.
Microservices questions are about trade-offs: when to split a system, how services talk (REST, gRPC, events), how to keep data consistent without distributed transactions, and how to stay resilient when a dependency fails.
Read the concepts first, then the hands-on Spring microservices patterns: gateways, Feign clients, Kafka consumers, idempotency, retries and circuit breakers.
What you will learn
- Decomposition, API gateways and service discovery
- Sagas, outbox and eventual consistency
- Circuit breakers, retries, timeouts and idempotency
- Tracing, metrics and logs across services
Topics
Roadmap: beginner to advanced
-
1
Intermediate Intermediate stage
Working knowledge: how things behave in real projects and the trade-offs you make.
Microservices
- How should microservices communicate: REST, gRPC or messaging? Choreography or orchestration?
- What does an API gateway do, and how does service discovery work?
- How do you implement observability across microservices?
Spring Microservices
-
2
Advanced Advanced stage
Senior depth: internals, scale, failure modes and design decisions.
Microservices
- When would you choose microservices over a monolith, and how do you decompose a system?
- How do you handle a transaction that spans several microservices? Explain the Saga pattern.
- What is the transactional outbox pattern, and how do you build idempotent consumers?
- Which resilience patterns do you apply to service-to-service calls, and how do you configure them?
- With a database per service, how do you query across services? Explain CQRS and event sourcing.
- Explain Kafka partitions, consumer groups, ordering and delivery guarantees.
- How do you secure microservices end to end?
Spring Microservices
- Secure a microservice with the Spring Security filter chain and JWT. Compare an interceptor, a custom JWT filter and the built-in resource server.
- Call another microservice reliably. Compare RestTemplate, WebClient, RestClient and declarative HTTP interfaces with Resilience4j.
- Publish and consume events asynchronously with Kafka. Compare @Async, publishing directly after the database write, and the transactional outbox with an idempotent consumer.
- Make a payment or order POST endpoint idempotent. Compare no protection, a unique business key, and an Idempotency-Key store.