అంచనా మరియు కెపాసిటీ ప్లానింగ్ — ఆశించిన లోడ్, డేటా వాల్యూమ్ మరియు రిసోర్స్ అవసరాలను లెక్కించడం — సిస్టమ్ డిజైన్లో ఒక ముఖ్యమైన భాగం. రుఘ్ "బ్యాక్-ఆఫ్-ది-ఎన్వెలప్" లెక్కలు డిజైన్ నిర్ణయాలను (ఎంత స్కేల్ చేయాలి, ఏ రిసోర్సెస్ అవసరమైనవి) తెలియజేస్తాయి మరియు డిజైన్ ఇంటర్వ్యూలలో సాధారణం.
అంచనా ఎందుకు ముఖ్యమైనది
Estimating scale informs DESIGN decisions:
→ how many servers? how much storage? what database? do you need sharding/caching?
→ understanding the SCALE (small vs massive) shapes the whole design
→ rough numbers guide whether/how to scale (don't over- or under-engineer)
ఏమిటిని అంచనా వేయాలి (బ్యాక్-ఆఫ్-ది-ఎన్వెలప్)
✓ TRAFFIC → users, requests/sec (QPS); read vs write ratio (e.g. 100:1 reads:writes)
→ peak vs average (design for peak); daily active users → requests
✓ STORAGE → data size per item × volume × growth over time → total storage (and growth rate)
✓ BANDWIDTH → data transferred per second (request size × QPS)
✓ MEMORY → cache size needed (e.g. cache the hot 20% of data)
→ rough estimates (order of magnitude) → good enough to inform design
