Daksh Pareek

Welcome to my personal portfolio website, showcasing my projects and blogs.

Marination 1: Latency and Throughput

2025-02-19


Marination is a series of notes which I will create while understanding a resource. So basically they are notes of notes/blogs/videos. They may contain my conversation with LLM which made me understand the topic.

This is the first marination on the topic of Latency and Throughput. This is from blog Latency, Throughput, and Walking on Escalators by Andrew Certain.

Summary of the Article

The article discusses how the way people use escalators relates to important concepts in computer systems: latency and throughput. By examining how walking or standing on escalators affects overall efficiency, the author illustrates how these concepts play out in real-world scenarios and computer systems.


Key Concepts Explained

1. Latency and Throughput

2. Little’s Law

In simpler terms:


Applying These Concepts to Escalators

Scenario Overview

Key Observations

  1. Walking vs. Standing

    • Walking: Individuals reach the top faster (lower personal latency), but because walkers need more space between them to move safely, fewer people can be on the escalator at once.
    • Standing: People are closer together, so more individuals can be on the escalator at the same time, potentially increasing throughput.
  2. Impact on Throughput and Latency

    • When everyone stands:
      • Throughput increases: More people are on the escalator at once.
      • Latency per person increases: Each person spends more time on the escalator because they’re not walking.
    • When people walk on one side:
      • Throughput decreases: Walking side is underutilized if not enough people choose to walk.
      • Latency for walkers decreases: Walkers reach the top faster.
      • Latency for standers may increase: Fewer people can stand on the escalator if half of it is reserved for walkers.

The Study’s Findings


Balancing Individual and Group Benefits


Connecting to Computer Systems


Simplifying the Concepts Further



1. Web Servers and HTTP Request Handling

Scenario:

Challenges:

Design Considerations: