StackSaga is the domain-centric, natively reactive saga orchestration ecosystem for Spring Boot.
Build resilient, high-throughput distributed microservices with zero dedicated orchestrator servers, zero Transactional Outbox, and automated reverse compensation — in a developer-friendly, compile-time type-safe environment.
"One framework. From Modular Monolith to full microservices — with zero saga rewrites."
| StackSaga | Temporal / Camunda | Kafka Choreography | |
|---|---|---|---|
| Dedicated Servers | ✅ Zero — embedded in your service | ❌ Heavy external cluster | |
| Execution Model | ✅ Natively Reactive (Project Reactor) | ❌ Thread-pool long-polling | |
| Mixed STP + HITL | ✅ Native in one pipeline | ❌ Requires external orchestration | ❌ Fragile ad-hoc state machines |
| Type Safety | ✅ 100% compile-time verified | ❌ Untyped JSON + string topics | |
| Transactional Outbox | ✅ Eliminated — atomic Event Store | ❌ Required for every trigger | ❌ Required before every publish |
| Monolith → Microservices | ✅ Zero-rewrite extraction | ❌ Microservices-only | ❌ Forces broker between modules |
| Downstream Coupling | ✅ Zero — pure REST / gRPC APIs | ❌ SDK installation required | ❌ Topic binding required |
→ Full architectural deep-dive
Built on Project Reactor from the ground up. The entire Saga Execution Coordinator (SEC) is non-blocking — thousands of concurrent sagas run on minimal CPU threads with zero thread exhaustion. → Reactive Executor Docs
The first framework to execute mixed-style sagas in the same pipeline: Continuous STP (sub-millisecond automated processing) and Pausable HITL (days-long human approval wait-states that release 100% of worker threads). → USM Whitepaper & Specification
Strongly-typed CommandExecutor<T> and QueryExecutor<T> generics with compiler-verified step transitions — no broken string references, full IDE autocomplete, refactor-safe pipelines.
→ Executor Architecture
Run as an in-process Modular Monolith at <1ms speeds today. When you extract a module into a standalone microservice, your saga pipelines, compensations, and event log stay 100% intact. Requires Java 21+ and Spring Boot 4.x.
→ Architecture Overview
Real enterprise rollbacks need more than a single undo. Chain Pre-RevertExecutor → doRevert() → Post-RevertExecutor for fraud holds, audit logs, and customer notifications — without polluting primary business logic.
→ Compensation & Revert Patterns
Your existing PostgreSQL, MySQL, Oracle, or Cassandra database becomes the immutable event store. Event Store writes commit atomically within the same ACID transaction as your domain logic — the Transactional Outbox pattern is completely eliminated. → Event Store & Database Support
Murmur3 token-ring partitioning assigns conflict-free retry ownership across cluster nodes — no locks, no single point of failure, automatic self-healing rebalancing on scale-out. → Ring Coordinator Docs
|
Domain-embedded execution coordinator. Drives Continuous STP, Pausable HITL, Two-Stage messaging, and deterministic reverse compensation — all in one framework. |
Turns your existing database (MySQL, PostgreSQL, Oracle, Cassandra, ScyllaDB) into an immutable saga event store. No extra clusters. No background pollers. |
|
Cluster coordination via Murmur3 token-ring partitioning. Conflict-free, lock-free retry ownership assignment across nodes. Zero SPOF. |
Real-time visualization of saga executions, step states, and failure diagnostics. Data stays inside your VPC. Manual replay for incident recovery. |
Start with SEC + Event Store. Add Ring Coordinator for distributed retries. Add Trace Window for full observability.
Step 1 — Generate your project config with StackSaga Initializer Select your Spring Boot version, build tool, orchestrator type, and database — get the exact BOM and dependencies to paste into your project.
Step 2 — Follow the Quick Start guide Add the generated dependencies to your Spring Boot service and configure your data source.
Step 3 — Define your first saga Register executors, define step transitions, and start orchestrating.
| Resource | Link |
|---|---|
| 📖 Documentation | docs.stacksaga.org |
| 🚀 Project Initializer | init.stacksaga.org |
| 📐 USM Whitepaper & Specification | docs.stacksaga.org › unified-saga-patterns |
| 🏗️ Architecture Overview | docs.stacksaga.org › architecture |
| 🔭 Trace Window Cloud | trace.stacksaga.org |
| 💬 Discussions & FAQs | GitHub Discussions |
| 🌐 Website | stacksaga.org |
| 🐳 Docker Hub | hub.docker.com/u/stacksaga |
| 💡 Stack Overflow | stackoverflow.com/search?q=stacksaga |
| 📜 License (SSAL 1.0) | stacksaga.org › license › ssal-1.0 |
Built with ❤️ by Zoftstack
StackSaga and the StackSaga logo are trademarks of Zoftstack.