Database Sharding and Partitioning with a solid breakdown of different strategies and their use cases.
pradyumnachippigiri.substack.com·5w·
Discuss: r/programming
⚙️Database Internals
Preview
Report Post

Previously, we talked about how we deal with a situation when an application grows overnight more users, more traffic, more queries. Our first reaction was straightforward:

scale vertically (bigger machine),

scale horizontally (more servers for the app),

add read replicas to offload read traffic.

And that worked… for reads.** **You can read about it here - https://pradyumnachippigiri.substack.com/i/181087908/horizontal-scaling-sharding

Read replicas were amazing because they helped us spread the read load across multiple machines. But there was one thing we still couldn’t scale: Writes.

No matter how many replicas we added, every single write still went to one place the primary dat…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help