Mastering Database

Backend Engineering

Mastering Database

Understanding Database Sharding

Understanding Database Sharding

This article discusses Database Sharding, a method of partitioning large databases horizontally into smaller, more manageable pieces called shards, each of which can be stored on different servers. The goal is to enhance scalability, performance, and availability.

It explains various types of sharding, including Horizontal and Vertical Partitioning, and presents several Sharding Architectures such as Range-Based, Hashed, Directory-Based, and Geo-Based Sharding.

This article also explores the benefits of sharding, like improved performance and geographical distribution, along with the drawbacks, such as complexity, data skew, and difficulty in reverting to a monolithic database. It concludes by discussing when sharding is necessary and alternatives like database replication, caching, and vertical/horizontal scaling.

What you will learn:

  • Introduction

  • What is Database Sharding?

  • General Overview of Horizontal and Vertical Sharding

  • How Database Sharding Works

  • Benefits of Database Sharding

  • Drawbacks of Database Sharding

  • Database Sharding Architectures

  • Should I Shard My Database?

  • Alternatives to Database Sharding

  • Conclusion

name

custom

title

Understanding Database Sharding

url

https://newsletter.masteringbackend.com/p/understanding-database-sharding

description

This article discusses Database Sharding, a method of partitioning large databases horizontally into smaller, more manageable pieces called shards, each of which can be stored on different servers. The goal is to enhance scalability, performance, and availability.

Whenever you're ready

There are 4 ways we can help you become a great backend engineer:

The MB Platform

Join 1000+ backend engineers learning backend engineering. Build real-world backend projects, learn from expert-vetted courses and roadmaps, track your learnings and set schedules, and solve backend engineering tasks, exercises, and challenges.

The MB Academy

The “MB Academy” is a 6-month intensive Advanced Backend Engineering BootCamp to produce great backend engineers.

Join Backend Weekly

If you like post like this, you will absolutely enjoy our exclusive weekly newsletter, Sharing exclusive backend engineering resources to help you become a great Backend Engineer.

Get Backend Jobs

Find over 2,000+ Tailored International Remote Backend Jobs or Reach 50,000+ backend engineers on the #1 Backend Engineering Job Board