Tagged “Microservices”
13 articles with this tag.
- 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).
- Circuit breakers (Resilience4j)Keeping services up when dependencies fail: timeouts, retries with backoff and jitter, circuit breaker states and configuration, bulkheads, rate limiters and time limiters with Resilience4j in Spring Boot, the Spring Cloud CircuitBreaker abstraction, Spring Framework 7's built-in @Retryable and @ConcurrencyLimit, fallbacks, ordering of patterns, and monitoring.
- CQRS and event sourcingSeparating the write model from read models (CQRS), storing state as an append-only stream of domain events (event sourcing), how they combine, projections and rebuilding views, snapshots, optimistic concurrency on event streams, schema evolution of events, eventual consistency in the UI, and when not to use either.
- Order Management SystemA complete system design for an e-commerce order management system using the 18-step framework: requirements, labelled assumptions and capacity calculations, API, data model, architecture, saga with transactional outbox, idempotent payments, failure handling, scaling and trade-offs — including when a modular monolith is the better choice.
- Observability (Micrometer, OTel)Observing Spring microservices: the three signals (metrics, traces, logs) and how they connect, Micrometer meters and the Observation API, distributed tracing concepts (trace, span, context propagation, W3C traceparent), Spring Boot 4 OpenTelemetry starter and OTLP export, log correlation, sampling, the OTel Collector, dashboards and SLO alerts, and cardinality pitfalls.
- Event-driven (Cloud Stream, Kafka, RabbitMQ)Building event-driven Spring services: events vs commands, Kafka vs RabbitMQ, Spring Cloud Stream's functional model (Supplier, Function, Consumer bindings), consumer groups and partitioning, error handling with retries and dead-letter queues, Spring for Apache Kafka and Spring AMQP directly, the transactional outbox, idempotent consumers, schemas, and testing.
- IdempotencyMaking operations safe to retry: what idempotency means for HTTP methods, idempotency keys for POST requests (storage, concurrency, expiry, request fingerprinting), idempotent message consumers, natural idempotence, conditional writes, and a Spring Boot implementation with a filter and database constraint.
- 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.
- Saga patternHow to keep data consistent across microservices without distributed transactions: sagas as sequences of local transactions with compensating actions, choreography versus orchestration, designing compensations, pivot and retriable steps, isolation anomalies and countermeasures, and implementing an orchestrated saga in Spring Boot.
- 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.
- Transactional outbox and inboxSolving the dual-write problem in microservices: why saving to the database and publishing to Kafka separately loses or invents events, the transactional outbox table, polling publishers versus CDC with Debezium, ordering and cleanup, the idempotent inbox for consumers, and a Spring Boot implementation.
- Bounded ContextBounded contexts explained: why one model cannot serve a whole business, how to find context boundaries, how contexts relate on a context map (shared kernel, customer–supplier, anti-corruption layer and more), and how contexts map to modules, services and teams.