WeSearch

Your Read Model Doesn't Always Need a Database

·9 min read · 0 reactions · 0 comments · 13 views
#technology#databases#software engineering
Your Read Model Doesn't Always Need a Database
⚡ TL;DR · AI summary

The article discusses the concept of read models in event-sourced systems and challenges the assumption that a database is necessary for them. It argues that read models can be kept in memory, making them disposable and easily rebuildable from event data. This approach allows for flexibility in engineering choices regarding data storage and access patterns.

Key facts
Original article
Eventsourcingdb
Read full at Eventsourcingdb →
Opening excerpt (first ~120 words) tap to expand

Your Read Model Doesn't Always Need a Database¶ Sooner or later, every team building an event-sourced system runs into the same question: which database should we use for the read model? The textbook answer is reassuringly pragmatic. It depends. Pick the tool that fits the access pattern. Relational if you need joins and ad-hoc queries, document-oriented if your data is hierarchical, key-value if you mostly look things up by ID, a graph database for relationships, a spatial database for geodata, and so on. That advice is sound, and yet it quietly assumes something that nobody ever questions: that there has to be a database in the first place. There's one option that almost never makes it onto that list, and it's the one that turns the whole question on its head.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Eventsourcingdb.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Eventsourcingdb