<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rebuilding-event-driven-read-models-in-a-safe-and-resilient-way-v2gd5xsp0" -->

---
title: Rebuilding Event-Driven Read Models in a safe and...
description: Event-driven read models can be rebuilt safely using a hybrid approach combining PostgreSQL advisory locks with persistent status tracking. Inline projections...
canonical: https://daily.dev/posts/rebuilding-event-driven-read-models-in-a-safe-and-resilient-way-v2gd5xsp0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Rebuilding Event-Driven Read Models in a safe and resilient way | daily.dev
og:description: Event-driven read models can be rebuilt safely using a hybrid approach combining PostgreSQL advisory locks with persistent status tracking. Inline projections...
og:url: https://daily.dev/posts/rebuilding-event-driven-read-models-in-a-safe-and-resilient-way-v2gd5xsp0
og:image: https://api.daily.dev/og/posts/V2gd5xsp0.png
og:image:alt: Rebuilding Event-Driven Read Models in a safe and resilient way
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.

# Rebuilding Event-Driven Read Models in a safe and resilient way

**[Architecture Weekly](https://daily.dev/sources/architectureweekly)** · 18 min read · 16 upvotes · 0 comments

## Summary

Event-driven read models can be rebuilt safely using a hybrid approach combining PostgreSQL advisory locks with persistent status tracking. Inline projections use shared locks for concurrent processing, while async rebuilds acquire exclusive locks to prevent conflicts. Advisory locks handle fast-path coordination and prevent races during transitions, while status columns provide crash recovery and persist across connection failures. This design enables zero-downtime rebuilds, handles multiple processor instances, and maintains consistency without external infrastructure.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.architecture-weekly.com/p/rebuilding-event-driven-read-models>

## Similar posts on daily.dev

- [Event Sourcing: Read Models to the rescue](https://daily.dev/posts/event-sourcing-read-models-to-the-rescue-tkivfbjge) · We Are .NET · 0 upvotes · 0 comments
- [On rebuilding read models, Dead-Letter Queues and Why Letting Go is Sometimes the Answer](https://daily.dev/posts/on-rebuilding-read-models-dead-letter-queues-and-why-letting-go-is-sometimes-the-answer-9srxnccwt) · Architecture Weekly · 4 upvotes · 0 comments
- [Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems](https://daily.dev/posts/using-postgresql-as-a-dead-letter-queue-for-event-driven-systems-ekm9n1imv) · Hacker News · 0 upvotes · 0 comments
- [Why Strong Consistency?](https://daily.dev/posts/why-strong-consistency--qk4prqx2z) · Lobsters · 4 upvotes · 0 comments
- [Zero-Downtime Postgres Migrations: A 2026 Developer Guide](https://daily.dev/posts/zero-downtime-postgres-migrations-a-2026-developer-guide-drbnzykbh) · Alex CloudStar · 0 upvotes · 0 comments

---

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/rebuilding-event-driven-read-models-in-a-safe-and-resilient-way-v2gd5xsp0)

```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":"Rebuilding Event-Driven Read Models in a safe and resilient way","url":"https://daily.dev/posts/rebuilding-event-driven-read-models-in-a-safe-and-resilient-way-v2gd5xsp0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rebuilding-event-driven-read-models-in-a-safe-and-resilient-way-v2gd5xsp0"},"datePublished":"2026-01-05T19:08:42.811Z","dateModified":"2026-01-05T19:10:01.148Z","description":"Event-driven read models can be rebuilt safely using a hybrid approach combining PostgreSQL advisory locks with persistent status tracking. Inline projections...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8d35af95580e393ad3a12c0fc6e1cb6a?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8d35af95580e393ad3a12c0fc6e1cb6a?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Architecture Weekly","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":"Architecture Weekly","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/de7f791943f4475191187c902742d2f7","url":"https://daily.dev/sources/architectureweekly"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/rebuilding-event-driven-read-models-in-a-safe-and-resilient-way-v2gd5xsp0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":16},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,postgresql,distributed-systems","timeRequired":"PT18M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Architecture Weekly","item":"https://daily.dev/sources/architectureweekly"},{"@type":"ListItem","position":3,"name":"Rebuilding Event-Driven Read Models in a safe and resilient way"}]}
```

