Post

๐Ÿณ ๐— ๐˜‚๐˜€๐˜-๐—ธ๐—ป๐—ผ๐˜„ ๐—ฆ๐˜๐—ฟ๐—ฎ๐˜๐—ฒ๐—ด๐—ถ๐—ฒ๐˜€ ๐˜๐—ผ ๐—ฆ๐—ฐ๐—ฎ๐—น๐—ฒ ๐˜†๐—ผ๐˜‚๐—ฟ ๐——๐—ฎ๐˜๐—ฎ๐—ฏ๐—ฎ๐˜€๐—ฒ by ByteByteGo

 Database Scaling Cheatsheet

๐Ÿญ - ๐—œ๐—ป๐—ฑ๐—ฒ๐˜…๐—ถ๐—ป๐—ด:

Check the query patterns of your application and create the right indexes.

๐Ÿฎ - ๐— ๐—ฎ๐˜๐—ฒ๐—ฟ๐—ถ๐—ฎ๐—น๐—ถ๐˜‡๐—ฒ๐—ฑ ๐—ฉ๐—ถ๐—ฒ๐˜„๐˜€:

Pre-compute complex query results and store them for faster access.

๐Ÿฏ - ๐——๐—ฒ๐—ป๐—ผ๐—ฟ๐—บ๐—ฎ๐—น๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป:

Reduce complex joins to improve query performance.

๐Ÿฐ - ๐—ฉ๐—ฒ๐—ฟ๐˜๐—ถ๐—ฐ๐—ฎ๐—น ๐—ฆ๐—ฐ๐—ฎ๐—น๐—ถ๐—ป๐—ด

Boost your database server by adding more CPU, RAM, or storage.

๐Ÿฑ - ๐—–๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ด

Store frequently accessed data in a faster storage layer to reduce database load.

๐Ÿฒ - ๐—ฅ๐—ฒ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป

Create replicas of your primary database on different servers for scaling the reads.

๐Ÿณ - ๐—ฆ๐—ต๐—ฎ๐—ฟ๐—ฑ๐—ถ๐—ป๐—ด

Split your database tables into smaller pieces and spread them across servers. Used for scaling the writes as well as the reads.

This post is licensed under CC BY 4.0 by the author.