<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/2wGgqfYGq" -->

---
title: How I Redesigned The Backend To Quickly Handle Millions...
description: A backend engineer shares how adopting the CQRS pattern helped improve backend performance by separating write and read operations. The use of a database...
canonical: https://daily.dev/posts/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes--2wggqfygq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How I Redesigned The Backend To Quickly Handle Millions Of Reads (And Writes) | daily.dev
og:description: A backend engineer shares how adopting the CQRS pattern helped improve backend performance by separating write and read operations. The use of a database...
og:url: https://daily.dev/posts/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes--2wggqfygq
og:image: https://api.daily.dev/og/posts/2wGgqfYGq.png
og:image:alt: How I Redesigned The Backend To Quickly Handle Millions Of Reads (And Writes)
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 I Redesigned The Backend To Quickly Handle Millions Of Reads (And Writes)

**[Bits and Pieces](https://daily.dev/sources/bit)** · 2 min read · 32 upvotes · 2 comments

## Summary

A backend engineer shares how adopting the CQRS pattern helped improve backend performance by separating write and read operations. The use of a database replica and splitting the service into separate command and query services allowed for better scalability and reduced response time.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.bitsrc.io/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes-58cfe989e6f8?source=rss----5c2fdf847f4a---4>

## Community discussion

Top comments from developers on daily.dev.

**@yahiaqous** · 1 upvotes

> One of the samartest solutions I've read!

**@mlingala** · 1 upvotes

> If there is more context around the read path how to achieve optimized  results for fast reads, similarly how to recovery from system failures or crashes in write path would have been great in addressing . Nevertheless, It's a good article to start with CQRS .

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#microservices](https://daily.dev/tags/microservices)

[View this post on daily.dev](https://daily.dev/posts/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes--2wggqfygq)

```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 I Redesigned The Backend To Quickly Handle Millions Of Reads (And Writes)","url":"https://daily.dev/posts/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes--2wggqfygq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes--2wggqfygq"},"datePublished":"2023-02-25T06:58:05.765Z","dateModified":"2024-04-09T14:48:31.146Z","description":"A backend engineer shares how adopting the CQRS pattern helped improve backend performance by separating write and read operations. The use of a database...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/af932fb0ea6937ddd0c2b914f2c60297?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/af932fb0ea6937ddd0c2b914f2c60297?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Bits and Pieces","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":"Bits and Pieces","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bit","url":"https://daily.dev/sources/bit"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes--2wggqfygq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":32},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"kubernetes,microservices","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Bits and Pieces","item":"https://daily.dev/sources/bit"},{"@type":"ListItem","position":3,"name":"How I Redesigned The Backend To Quickly Handle Millions Of Reads (And Writes)"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-i-redesigned-the-backend-to-quickly-handle-millions-of-reads-and-writes--2wggqfygq","comment":[{"@type":"Comment","text":"One of the samartest solutions I’ve read!","datePublished":"2023-02-28T09:10:10.874Z","url":"https://daily.dev/posts/2wGgqfYGq#c-Tk5XUXDcZ","author":{"@type":"Person","name":"Yahia Qous","url":"https://daily.dev/yahiaqous","image":"https://media.daily.dev/image/upload/s--jdrGDAUQ--/f_auto/v1719054571/avatars/avatar_eh8LAU9MQH9diP8Z28Tmc"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"If there is more context around the read path how to achieve optimized  results for fast reads, similarly how to recovery from system failures or crashes in write path would have been great in addressing . Nevertheless, It’s a good article to start with CQRS .","datePublished":"2023-03-06T10:55:17.100Z","url":"https://daily.dev/posts/2wGgqfYGq#c-m632Idhjn","author":{"@type":"Person","name":"manoj lingala","url":"https://daily.dev/mlingala","image":"https://lh3.googleusercontent.com/a/AGNmyxZ2bonxjHs8F4W_pZYpGkK_kPJBzLUz1GYopGHnoQ=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

