Back-of-the-envelope Calc Flashcards
Why do we use back if the envelope calculations?
Allows us to ignore nitty gritty details of system design to focus on important aspects. A distributed system has compute notes connected via network, and there is a wide variability of available compute nodes and they can be connected in many different ways.
Examples of BOTE calculations:
- Nb of TCP connections a server can support
- Nb if requests per second (RPS) a web, database or cache server can support
- Storage requirements of a service
What happens if we choose an unreasonable BOTE calculation?
Flawed design
What are the relevant concepts for BOTE calculations?
- Types of data center servers
- Realistic access latencies of different components
- Estimation of RPS that a server can handle
- Examples of bandwidth, servers and storage estimations
What are the commonly used data center server types?
- Web server
- Application server
- Storage server
What are characteristics of a web server?
Low RAM, high processor and low HD
What are characteristics of application server?
- High RAM, medium processor and medium HD
What are the characteristics of storage server?
Low RAM, medium processor, high HD
What are web servers?
First point of contact after load balancers, and are decoupled from application servers. Usually handle API calls from clients.
2011 example: Facebook has