Marten: Postgresql backed Document Db and Event Store for .NET Development
summary
Marten is a .NET NuGet library that makes PostgreSQL act as a document database and event store, with a production track record since 2016 and ~80 contributors. It stores JSONB documents, auto-creates tables in dev, and claims ACID compliant reads while letting you fall back to SQL or use ORMs like Dapper. Features include compiled queries (order-of-magnitude speedups), JSONB computed indexes, bulk insert, patching via PostgreSQL JavaScript, swappable JSON serializers, and three projection modes (live, inline transactional, async daemon).
AI-written summary · about
chapters (18)
- 0:00Intro
- 2:47Community
- 3:31History
- 5:25Application Persistence
- 7:59Why Document Db
- 12:16Why Postgresql
- 18:11Creating an order object
- 24:09Acid compliance
- 27:21Order hierarchy
- 31:13Computed indexes
- 33:47JSON sterilizer
- 39:44Other features
- 41:06Special features
- 43:32Event sourcing
- 48:55Persistence
- 50:57Timing
- 53:02Inline Projection
- 55:22Asynchronous Projection
related talks
36mTwisting PostgreSQL into a Document Db and Event Store
47mMarten as a Document Store for .NET Applications
01h 00mPractical Event Sourcing with Marten and .NET
47m.NET Blub: Frameworks beyond Microsoft
04mGetting Started with DocumentDB and Open Source
01h 00mThe Modern Database Debate: Documents, Tables, or Documents in Tables?
55mRoad to polyglot persistence
24mAll The Postgres Things at Microsoft, POSETTE edition
