
Spring Boot Saga Pattern
Saga pattern guidance for Spring Boot microservices covering choreography and orchestration with Kafka or Axon.
- skills.sh installs
- 3.9K
- GitHub stars
- 372
- last updated
- Aug 21, 2026
What it does
- Covers the forward transaction flow, compensating transactions, and choosing between choreography and orchestration
- Includes Kafka configuration, idempotent compensation handlers, saga state persistence, and metrics for stuck or failed sagas
- Enforces that every forward step has an idempotent compensation and that saga state persists before commands are sent
- Designed for teams replacing two-phase commit with eventual consistency across Spring Boot services
Install
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-saga-pattern -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Spring Boot Saga Pattern
Overview
Implements distributed transactions across microservices using the Saga Pattern. Replaces two-phase commit with a sequence of local transactions and compensating actions. Supports choreography (event-driven) and orchestration (centralized coordinator) approaches with Kafka, RabbitMQ, or Axon Framework.
When to Use
- Building distributed transactions across multiple microservices
- Replacing two-phase commit (2PC) with a more scalable solution
- Handling transaction rollback when a service fails
- Ensuring eventual consistency in microservices architecture
- Implementing compensating transactions for failed operations
- Coordinating complex business processes spanning multiple services
Trigger phrases: distributed transactions, saga pattern, compensating transactions, microservices transaction, eventual consistency, rollback across services, orchestration pattern, choreography pattern
Instructions
1. Design Transaction Flow
Map the sequence of operations and their compensating transactions:
Order → Payment → Inventory → Shipment
↓ ↓ ↓ ↓
Cancel Refund Release Cancel
Details
- Repository
- github.com/giuseppe-trisciuoglio/developer-kit
- Category
- Backend & APIs
- First seen
- May 16, 2026
More from giuseppe-trisciuoglio/developer-kit
All 95- Nextjs Data Fetching3.9K
- Spring Data Neo4j3.9K
- Unit Test Security Authorization3.9K
- Nx Monorepo3.9K
- Langchain4j Spring Boot Integration3.9K
- Langchain4j Tool Function Calling Patterns3.9K
- Langchain4j Rag Implementation Patterns3.9K
- Unit Test Scheduled Async3.9K
- Rag3.9K
- Unit Test Utility Methods3.9K
- Qdrant3.9K
- Unit Test Exception Handler3.9K
- Unit Test Mapper Converter3.9K
- Langchain4j Ai Services Patterns3.9K
- Unit Test Caching3.9K
- Unit Test Config Properties3.9K
- Unit Test Application Events3.9K
- Langchain4j Vector Stores Configuration3.9K
- Langchain4j Mcp Server Patterns3.9K
- Aws Sdk Java V2 S33.9K
- Langchain4j Testing Strategies3.9K
- Aws Sdk Java V2 Dynamodb3.9K
- Aws Rds Spring Boot Integration3.9K
- Nextjs Deployment3.9K
Similar to Spring Boot Saga Pattern
More Backend & APIs
spring-boot-event-driven-patternsgiuseppe-trisciuoglio/developer-kit4K installsSpring Boot event-driven patterns covering domain events, transactional listeners, Kafka messaging, and the transactional outbox.
saga-orchestrationwshobson/agents11.2K installsOrchestrate distributed transactions with compensating actions and no two-phase commit, including stuck-saga debugging.
spring-boot-resilience4jgiuseppe-trisciuoglio/developer-kit4K installsFault-tolerance annotations for Spring Boot 3.x covering circuit breakers, retries, rate limiters, bulkheads, time limiters, and fallbacks.
java-springbootgithub/awesome-copilot22.1K installsOpinionated Spring Boot 3/4 application development rules with a router to deeper references for data, REST, messaging, configuration, and startup.
java-microservicespluginagentmarketplace/custom-plugin-java504 installsJava microservices skill covering Spring Cloud, resilience patterns, event-driven messaging, and observability.