<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-scale-out-marten-rfnfunl6g" -->

---
title: How to scale out Marten | daily.dev
description: A practical guide to scaling Marten (the .NET event store and document database built on PostgreSQL) across different deployment models. Covers stateless...
canonical: https://daily.dev/posts/how-to-scale-out-marten-rfnfunl6g
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to scale out Marten | daily.dev
og:description: A practical guide to scaling Marten (the .NET event store and document database built on PostgreSQL) across different deployment models. Covers stateless...
og:url: https://daily.dev/posts/how-to-scale-out-marten-rfnfunl6g
og:image: https://api.daily.dev/og/posts/RFnFuNL6g.png
og:image:alt: How to scale out Marten
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to scale out Marten

**[Event-Driven by Oskar Dudycz](https://daily.dev/sources/event-driven-io)** · 13 min read · 0 upvotes · 0 comments

## Summary

A practical guide to scaling Marten (the .NET event store and document database built on PostgreSQL) across different deployment models. Covers stateless usage, serverless considerations, async projection scaling via the Async Daemon in Solo vs HotCold modes, splitting read/write operations from async processing into separate services, and an advanced sharding technique using PostgreSQL advisory locks with distinct daemon lock IDs to distribute projection types across independent Async Daemon instances. Includes a step-by-step scaling progression from single instance to fully sharded projections.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://event-driven.io/en/scaling_out_marten>

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#postgresql](https://daily.dev/tags/postgresql), [#distributed-systems](https://daily.dev/tags/distributed-systems)

[View this post on daily.dev](https://daily.dev/posts/how-to-scale-out-marten-rfnfunl6g)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to scale out Marten","url":"https://daily.dev/posts/how-to-scale-out-marten-rfnfunl6g","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-scale-out-marten-rfnfunl6g"},"datePublished":"2026-06-17T11:26:16.838Z","dateModified":"2026-06-17T11:32:42.525Z","description":"A practical guide to scaling Marten (the .NET event store and document database built on PostgreSQL) across different deployment models. Covers stateless...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/809408c4b0e5d0cfe95e2077d0e27177?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/809408c4b0e5d0cfe95e2077d0e27177?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Event-Driven by Oskar Dudycz","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Event-Driven by Oskar Dudycz","logo":"https://media.daily.dev/image/upload/s--unDKCFQ0--/f_auto,q_auto/v1781695550/logos/event-driven-io?_a=BAMAMiWQ0","url":"https://daily.dev/sources/event-driven-io"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-scale-out-marten-rfnfunl6g","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,postgresql,distributed-systems","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Event-Driven by Oskar Dudycz","item":"https://daily.dev/sources/event-driven-io"},{"@type":"ListItem","position":3,"name":"How to scale out Marten"}]}
```

