Well, deciding between read replicas and sharding for scaling a database really depends on a few things. You have to look at what kind of problems youre trying to solve and what your system actually needs. Each approach has its own perks and downsides, you know?
Omkar Dravid
·430 views
Hey everyone, I'm working on a project and our database is starting to feel the pressure, mostly because of all the read operations. We're looking at ways to scale it up, and read replicas versus sharding are the two big ideas. Read replicas feel like the faster fix for reads, but I'm curious about how far you can really push them before sharding is absolutely needed. So, how do you usually make this call? Are there certain numbers or points where you just know it's time for one over the other? I'm especially interested in how you weigh the extra work of sharding against the problems you'll eventually hit just by adding more replicas.
7 comments