What problem does it solve?
This Skill provides a production-ready blueprint for preventing and recovering from distributed-systems failures in Java 21 / Spring Boot microservices, reducing lost transactions, inconsistent state, and downtime caused by unreliable networks and dependent services.
Core Features & Use Cases
- Resilience Patterns: Circuit Breaker, Retry, Bulkhead, and Rate Limiter using Resilience4j to protect downstream calls and provide safe fallbacks.
- Distributed Transactions & Reliability: Saga orchestration with compensating transactions for cross-service flows and an Outbox pattern to guarantee atomic DB write + Kafka publish.
- Architecture Patterns: CQRS for separate read/write models and projection builders, idempotency keys to deduplicate client retries, and distributed locks (Redisson) to prevent concurrent state corruption.
- Observability & Operational Rules: Guidance for Actuator health, OpenTelemetry tracing, and critical operational rules (fallback semantics, idempotency TTLs, consistent locking order, and chaos testing).
- Use Cases: Securely orchestrating account onboarding with initial deposit, ensuring transaction events are published exactly once, and protecting payment calls to external ledgers.
**Quick Start
Use the microservices-patterns skill to add Resilience4j circuit breakers and retries, transactional outbox publishing to Kafka, saga orchestration, and idempotency handling to a Spring Boot payment service.