System Design · Senior · Question 48 of 75

How do you estimate storage requirements for 5 years of chat messages for 1M users?

Explanation

For example, 1M × 50 messages × 200 bytes ≈ 10 GB per day, ≈ 18 TB over 5 years before replication and indexes. Such an estimate drives the choice of storage, partitioning by conversation and time, and archiving of old data.

Further reading

Problem with a question

System Design · Senior · question 48

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz