Tickets

Loading…

Mourjo Sen

@mourjosen

Congestion control in web services

Submitted Oct 29, 2024

TCP achieves reliable communication over an unreliable network (IP). It does so by abstracting the underlying network and observing only the sender and the receiver. This is a cornerstone for the internet’s success and is called the “end-to-end principle”.

As a corollary, it is then possible to impress global behavior by making local measurements and choices regarding reliability - and that is exactly what TCP’s congestion control does - no central repository of metrics, no distributed tracing or structured logging - simple local measurements and decisions made on one machine - converging eventually to make the global inter-network congestion free.

Congestion can happen in webservers too - think about too many requests from the end-user or a degraded downstream dependency causing all requests to pile up, eventually making the service non-responsive to any new request.

So how can we leverage the end-to-end principle in avoiding congestion in our web servers? In this talk I take inspiration from TCP’s congestion control and explain how that can help us build more resilient web services.

There are two important questions I will answer: How can we detect congestion? What can we do to recover from it once we detect it? I will answer both questions using local measurements in web applications that scale globally to a fleet of web servers, just like TCP’s congestion control.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hybrid Access Ticket

Hosted by

We care about site reliability, cloud costs, security and data privacy

Supported by

Platinum Sponsor

Nutanix is a global leader in cloud software, offering organizations a single platform for running apps and data across clouds.

Platinum Sponsor

PhonePe was founded in December 2015 and has emerged as India’s largest payments app, enabling digital inclusion for consumers and merchants alike.

Silver Sponsor

The next-gen analytics engine for heavy workloads.

Sponsor

Community sponsor

Peak XV Partners (formerly Sequoia Capital India & SEA) is a leading venture capital firm investing across India, Southeast Asia and beyond.

Venue host - Rootconf workshops

Thoughtworks is a pioneering global technology consultancy, leading the charge in custom software development and technology innovation.

Community Partner

FOSS United is a non-profit foundation that aims at promoting and strengthening the Free and Open Source Software (FOSS) ecosystem in India. more

Community Partner

A community of Rust language contributors and end-users from Bangalore. We have presence on the following telegram channels https://t.me/RustIndia https://t.me/fpncr LinkedIn: https://www.linkedin.com/company/rust-india/ Twitter (not updated frequently): https://twitter.com/rustlangin more