Microservices Fundamentals
Monoliths, modular monoliths, service boundaries and the basic infrastructure of a service landscape.
Start with Microservices versus Modular Monolith: most of the topics below only matter once that decision has been made.
Articles
- Microservices vs Modular MonolithMonolith, modular monolith or microservices? What each style is, what it costs, how to decide with concrete criteria, how to keep a monolith modular, and how to extract a service when it is justified.
- Service discoveryHow services find each other: client-side vs server-side discovery, the service registry, registration, heartbeats and health, Spring Cloud Netflix Eureka (server, client, self-preservation), HashiCorp Consul, Kubernetes DNS and Spring Cloud Kubernetes, client-side load balancing with Spring Cloud LoadBalancer, and choosing in 2026.
- API gatewayThe API gateway pattern and Spring Cloud Gateway: responsibilities (routing, authentication, rate limiting, resilience, observability), the gateway in a Spring Cloud platform, routes, predicates and filters, the reactive (WebFlux) and Server Web MVC variants, token relay and the BFF pattern, rate limiting with Redis, circuit breakers and retries, and gateway anti-patterns.
- Centralized configurationManaging configuration across many services: why centralise, Spring Cloud Config Server and client, Git, Vault and other backends, file layout per application and profile, spring.config.import, encryption and secrets, refreshing with @RefreshScope and Spring Cloud Bus, high availability, and alternatives (Kubernetes ConfigMaps, Consul, cloud configuration services, feature-flag platforms).
Planned topics
These topics are on the roadmap and not written yet. They appear here so you can see the full scope of the section.
- Service boundaries
- Domain-driven service decomposition
- Database per service
- API contracts and compatibility
- Synchronous versus asynchronous communication
- Inter-service authentication