Marten vs Cratis Chronicle: .NET event sourcing compared
If an event append and a document update must share one PostgreSQL transaction, Marten’s in-process .NET model fits that requirement. Cratis Chronicle puts event storage and processing behind a separate server, with clients for several languages. Choosing between them changes your transaction boundary and what you deploy, not just the API you call.
This page compares those overlapping concerns, with sources for the Marten capabilities discussed.
The Cratis team wrote this page, and Chronicle is a Cratis product. The page lists what each product documents and leaves the weighing to you. For a three-way comparison that includes KurrentDB, see Event sourcing in .NET. For the dedicated event-store database, see KurrentDB vs Chronicle. All our comparisons follow the method in How Cratis writes comparisons.
Choose Marten or Chronicle
Section titled “Choose Marten or Chronicle”Method and versions
Section titled “Method and versions”| Product | Version compared | Version source |
|---|---|---|
| Marten | 9.50.3, the newest stable release | Marten 9.50.3 on NuGet |
| Cratis Chronicle | 19.92.2, the latest GitHub release as of 2026-10-19 | Chronicle release v19.92.2 |
Marten’s documentation site is not versioned in its URLs, so the links show the pages as they stood on the review date.
Architecture: library or server
Section titled “Architecture: library or server”Marten runs inside your application. You register it with the host, and it talks to PostgreSQL through your connection string. Its event store and document database share the same database, which lets inline projections update documents in the event-capture transaction (projections overview). Background work such as projections and subscriptions runs in the async daemon inside your application process.
Chronicle runs as a separate server, the Chronicle Kernel, which is built on Microsoft Orleans. Your application calls it through a client over gRPC. The kernel appends events and manages the observers that process them. Projections run in the kernel; reducer and reactor handlers run in your application. See Chronicle architecture.
The practical difference is where the boundary sits:
- With Marten, an append and a document write can share one PostgreSQL transaction, and you operate one database.
- With Chronicle, you operate a server and its storage, and several applications in several languages can share it. An append is a call to the server, not part of your application’s database transaction.
Feature matrix
Section titled “Feature matrix”| Question | Marten 9.50.3 | Chronicle 19.92.2 |
|---|---|---|
| Product boundary | .NET library in your application (Marten as Event Store) | Separate server plus client SDKs (architecture) |
| Event storage | PostgreSQL (introduction) | MongoDB (default), PostgreSQL, SQL Server, SQLite, in-memory (storage) |
| .NET targets | net9.0 and net10.0 (support policy) | net8.0, net9.0 and net10.0 (compatibility) |
| Languages | .NET | .NET, TypeScript, Kotlin/Java, Elixir; Python not yet published (clients) |
| Projection timing | Inline, async and live (projections) | Materialized (eventually consistent) or passive, computed on read (projections) |
| Projection recipes | Single stream, multi stream, event projections, custom aggregations, flat tables (projections, flat tables) | Model-bound, declarative, fluent and reducers (choosing a style) |
| Event subscriptions | ISubscription in the async daemon (subscriptions) |
Reactors and observers; handlers run in your application and the server manages observation (reactors) |
| Cross-stream consistency | Dynamic Consistency Boundary with tags (DCB) | Dynamic Consistency Boundary with concurrency scopes and constraints (DCB) |
| Multi-tenancy | Conjoined and sharded event tenancy (multitenancy) | Namespaces inside an event store (namespaces) |
| Event versioning | Documented (versioning) | Generations that translate old events (event evolution) |
| Personal data | Masking rules that rewrite selected event members on demand (Removing Protected Information) | Encryption of [PII] properties with a key per subject, erased by deleting the key, plus event redaction (compliance) |
| Operations tooling | Command line, OpenTelemetry and metrics, async daemon health checks | Workbench, CLI, MCP server, server telemetry |
| License | MIT (NuGet package metadata) | MIT (LICENSE) |
Projections and read models
Section titled “Projections and read models”Marten gives you three lifecycles. An inline projection runs in the same unit of work that captures the events, so the stored document matches the events as soon as the save returns. An async projection is built by the daemon with eventual consistency. A live aggregation builds the view in memory on demand. The views are Marten documents or flat tables in PostgreSQL, so LINQ and SQL work on them.
Chronicle has no synchronous projection mode. An append returns once the event is in the log, and materialized read models catch up afterwards (immediate projections). If you need a read that includes the event you just appended, you either mark the read model passive, so Chronicle computes it on read, or you wait for the append’s observers to finish. A constraint or a decision read guards a rule that must hold (choosing how a rule holds).
If your design needs a read model that is transactionally current with the append, Marten’s inline projections are a direct fit. If it tolerates eventual consistency, both work, and Chronicle gives you several ways to declare the mapping.
Storage and hosting
Section titled “Storage and hosting”Marten is PostgreSQL only. You pick PostgreSQL’s hosting: self-managed, a cloud service, or an operator. Marten documents, for example, connecting to Azure Database for PostgreSQL with Entra ID. Within the wider Critter Stack, other products target SQL Server and SQLite; see the .NET comparison.
Chronicle documents MongoDB, PostgreSQL, SQL Server and SQLite as storage choices, plus an in-memory provider. It ships as the cratis/chronicle Docker image, with production hosting, clustering and backups covered in its docs. Choosing Chronicle means running the server in addition to its database. Provider choice does not make the providers equal; check the storage page for what each supports.
Languages and clients
Section titled “Languages and clients”Marten is a .NET library, so all code that appends or projects runs in .NET.
Chronicle exposes gRPC contracts. It has a .NET SDK, and released clients for TypeScript (@cratis/chronicle), Kotlin and Java (io.cratis:chronicle) and Elixir (cratis_chronicle). A Python client exists but is not published. See Chronicle in your language. Client availability does not mean client parity; where the clients differ lists the gaps.
Operations, observability and AI tooling
Section titled “Operations, observability and AI tooling”Marten provides command-line tooling for schema and projection work, such as rebuilding projections, along with OpenTelemetry spans and metrics (Open Telemetry and Metrics) and async daemon health checks. The Critter Stack’s separate monitoring products are outside this comparison.
Chronicle adds the Workbench, a web interface bundled with the server, the Cratis CLI for inspecting and diagnosing a running server, and an MCP server that connects an AI agent to Chronicle. Its client emits OpenTelemetry spans once you register the instrumentation (client tracing), and the server exports its own telemetry. Chronicle does not send alerts itself; its docs show how to alert on observer failures with exported metrics and the CLI.
Compliance and personal data
Section titled “Compliance and personal data”Chronicle marks personal data with PII attributes, encrypts those values at rest with a key per subject, and erases a subject by revoking the key. Whole events can be redacted while the sequence and audit metadata remain. See Chronicle compliance and Auth and compliance.
Marten documents a different mechanism in Removing Protected Information. You register masking rules per event type or interface at configuration time, for example AddMaskingRuleForProtectedInformation, and then call ApplyEventDataMasking() on demand for a stream or a filtered set of events, optionally scoped to a tenant. Marten rewrites the selected members of the stored events, such as replacing a name with ****, and can add a header that records the masking. The same page notes that the Marten team had considered crypto-shredding, with no definite plans. Marten also documents archiving of streams and tenant data deletion.
The difference is where protection happens. Marten rewrites stored event data when you run a masking operation. Chronicle encrypts marked values when it appends them, and erasing a subject deletes the key, which makes the values unreadable without touching the log.
Where Marten is the better choice
Section titled “Where Marten is the better choice”Marten fits a requirement for one transaction across events and documents: its inline projections share the append transaction in PostgreSQL. A Chronicle append is a server call, outside your application’s database transaction. Marten also avoids a separate event-server deployment; you still operate the application and PostgreSQL.
If you already use Wolverine, Marten’s subscriptions can notify its transactional outbox (subscriptions, Wolverine integration tutorial). Wolverine provides messaging, transports, and a durable inbox and outbox. This site documents no equivalent Wolverine integration for Chronicle.
Marten is also a document database with LINQ querying. It fits when you need that store alongside events. Chronicle builds eventually consistent read models from an append-only history; it is not a general document store.
Marten publishes a support policy with paid support plans; check those terms if support is part of your decision.
Moving between them
Section titled “Moving between them”Moving between the two is not a configuration change. The two use different event stores, projection models and processing models, so a migration touches application code, not only data.
We found no migration guide for Marten to Chronicle in the public Cratis documentation, and none for Chronicle to Marten in Marten’s, so the matrix would read “Not publicly documented” for this row. What the documentation does establish is the difference in boundaries described above: a library on PostgreSQL against a server with its own storage, and inline projections against read models that catch up after the append. Plan for application changes, not only a data copy. If you want help planning a move, ask the community.
Questions to answer before choosing
Section titled “Questions to answer before choosing”- Must an append and a document write be one transaction?
- Is a second runtime, the Chronicle server, acceptable to your operations team?
- Do applications in other languages need to read or write the same history?
- Do you need the Critter Stack’s messaging model, or the Cratis application path with Arc and Components?
- How must personal data in events be protected and erased?
Limitations
Section titled “Limitations”This comparison describes the linked documentation, not benchmark results or a production evaluation. Marten may document capabilities we did not find, and its docs change independently of ours. Storage-provider and client availability do not establish parity. Each product’s wider family adds tools outside this page.
If the hosting boundary decides the choice, continue with Marten’s documentation or Chronicle production hosting. For a move between them, start with an application-level migration plan rather than a data copy.
Sources
Section titled “Sources”Checked 2026-10-19:
- Marten: Marten as Event Store, Projections, Subscriptions, Dynamic Consistency Boundary, Multitenancy, Archiving, Removing Protected Information, Events versioning, Support policy, Command line tooling, Open Telemetry and metrics, and NuGet package and license.
- Chronicle: the Chronicle documentation, the Chronicle README, the Chronicle license, and releases.
Corrections and refresh
Section titled “Corrections and refresh”We recheck this page when either product ships a relevant major or minor release or changes its license, and at least every 90 days. If a statement cannot be confirmed from a product’s own current public sources, we correct or remove it.
If you find an error or a better first-party source, send the correction.