Sekiban is an event sourcing and CQRS framework for .NET. It supports Azure Cosmos DB, PostgreSQL, and DynamoDB as event stores, with Microsoft Orleans for actor-based scalability.
📚 Documentation: sekiban.dev
Note: Sekiban has two implementations. DCB (Dynamic Consistency Boundary) is the recommended approach for new projects. Legacy Sekiban.Pure is deprecated.
| Implementation | Description | Status |
|---|---|---|
| Sekiban DCB | Dynamic Consistency Boundary - tag-based event sourcing | ✅ Recommended |
| Sekiban.Pure | Traditional aggregate-based event sourcing | |
| Sekiban.Core | Single-server version without actor model | ❌ Legacy |
| Sekiban.ts | TypeScript event sourcing | 🔬 Alpha |
dotnet new install Sekiban.Pure.Templates
dotnet new sekiban-orleans-aspire -n YourProjectNameDCB supports both Azure and AWS:
| Component | Azure | AWS |
|---|---|---|
| Event Store | Cosmos DB / PostgreSQL | DynamoDB |
| Snapshots | Azure Blob Storage | Amazon S3 |
| Orleans Clustering | Azure Table / Cosmos DB | RDS PostgreSQL |
| Orleans Streams | Azure Queue | Amazon SQS |
Dynamic Consistency Boundary (DCB) replaces rigid per-aggregate transactional boundaries with a context-sensitive consistency boundary based on event tags. Instead of maintaining multiple streams and coordinating cross-aggregate invariants via sagas, DCB uses a single event stream per bounded context where each event carries tags representing affected entities.
Key benefits:
- Flexible boundaries: Define consistency scope per command, not per aggregate
- No saga complexity: Cross-entity invariants without compensating events
- Optimistic concurrency: Tag-based conflict detection
- Scalable: Actor model integration with Microsoft Orleans
Learn more at dcb.events
- Website: sekiban.dev
- DCB Documentation: docs/dcb_llm (English) | docs/dcb_llm_ja (日本語)
- Pure Documentation: docs/llm (English) | docs/llm_ja (日本語)
Sekiban provides MCP support for AI coding assistants:
claude mcp add sekibanDocument --transport sse https://sekiban-doc-mcp.azurewebsites.net/sse| Package | Description |
|---|---|
| Sekiban.Dcb.Core | Core DCB framework |
| Sekiban.Dcb.Orleans.WithResult | Orleans integration |
| Sekiban.Dcb.Postgres | PostgreSQL event store |
| Sekiban.Dcb.CosmosDb | Cosmos DB event store |
| Sekiban.Dcb.DynamoDB | DynamoDB event store |
| Sekiban.Dcb.BlobStorage.AzureStorage | Azure Blob snapshots |
| Sekiban.Dcb.BlobStorage.S3 | S3 snapshots |
Legacy Sekiban.Core and Sekiban.Pure packages are available on NuGet but are no longer recommended for new projects. See core_main branch for legacy documentation.
Sekiban is Apache 2.0 open source. Support us via GitHub Sponsors.
J-Tech Japan (株式会社ジェイテックジャパン) has been developing Sekiban since 2022.
For training or support, contact [email protected].
Apache 2.0 - See License
Copyright (c) 2022- J-Tech Japan