Sitemap
Javarevisited

A humble place to learn Java and Programming better.

Member-only story

System Design Refresher : Back-of-the-Envelope Calculations

--

Photo by on

Back-of-the-envelope calculations offer a swift and practical approach to tackling system design challenges. Whether you’re estimating server capacity or calculating storage needs, these straightforward estimations can provide crucial insights that help guide your design decisions without getting bogged down in details.

To start with, here’s a quick cheat sheet to keep in mind as you perform back-of-the-envelope calculations for system design:

Cheat sheet to provide quick mappings of user load (thousands/millions) to throughput (req/sec) and storage needs (MB/GB) for easy reference during calculations.

Few more quick references -

  • 1 million(10⁶) = 1 million requests/day = 12 requests/sec (round off)
  • char — 1 byte(ASCII), 2 byte(UNICODE)
  • int32–4 byte, int64–8 byte
  • float — 4 byte, double — 8 byte
  • long — 8 byte

Now let’s consider a real time scenario/requirement and conduct a preliminary calculation for our back-of-the-envelope estimation.

Note: We’ll round off some results for simplicity and efficiency, enabling us to focus on key insights without getting caught up in exact figures.

Javarevisited
Javarevisited

Published in Javarevisited

A humble place to learn Java and Programming better.

Arijit Deb
Arijit Deb

Written by Arijit Deb

Developer | Software Architect | Knowledge Seeker | 15+ years experience. Passionate about complex systems, innovative solutions, and emerging technologies.

Responses (3)