ਅੰਦਾਜ਼ੇ ਲਗਾਉਣਾ ਅਤੇ ਸਮਰੱਥਾ ਦੀ ਯੋਜਨਾ ਬਣਾਉਣਾ — ਸੰਭਾਵਤ ਲੋਡ, ਡੇਟਾ ਵਾਲੀਅਮ, ਅਤੇ ਸਰੋਤਾਂ ਦੀ ਲੋੜ ਦਾ ਮੁਲਾਂਕਣ ਕਰਨਾ — ਸਿਸਟਮ ਡਿਜ਼ਾਈਨ ਦਾ ਇਕ ਮਹੱਤਵਪੂਰਨ ਹਿੱਸਾ ਹੈ। ਮੋਟੇ "back-of-the-envelope" ਕੈਲਕੂਲੇਸ਼ਨ ਡਿਜ਼ਾਈਨ ਦੇ ਫੈਸਲਿਆਂ ਨੂੰ ਸੂਚਿਤ ਕਰਦੇ ਹਨ (ਕਿੰਨਾ ਸਕੇਲ ਕਰਨਾ ਹੈ, ਕੀ ਸਰੋਤ ਚਾਹੀਦੇ ਹਨ) ਅਤੇ ਡਿਜ਼ਾਈਨ ਇੰਟਰਵਿਊ ਵਿਚ ਆਮ ਹਨ।
ਅੰਦਾਜ਼ੇ ਦਾ ਮਹੱਤਵ
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)
ਕੀ ਅੰਦਾਜ਼ਾ ਲਗਾਉਣਾ ਹੈ (back-of-the-envelope)
✓ 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
