reboottime / WebDevelopment

Some notes, thoughts and articles aggregated here about UI/UX and web development.
6 stars 0 forks source link

[ByteByteGo Daily] Rate Limiting Fundamentals #145

Open reboottime opened 1 year ago

reboottime commented 1 year ago

Overview

This is a note extracted from Rate Limiting Fundamentals, By Alex Xu.

Reference:

  1. Rate limiting by Alex Xu
  2. Wikipedia, priority queue and its implementation
reboottime commented 1 year ago

Rate Limiting Definition and Examples

Rate limiting controls the rate at which users or services can access a resources, like an API, a service, or a network. It plays a critical role in protecting system resources and ensuring fair use among all users.

When the rate of requests exceeds the threshold defined by the rate limiter, the requests are throttled or blocked. Some real world examples can be as following:

(Please notice there is a difference on throttling and blocking)

example of rate limiting

reboottime commented 1 year ago

Benefits of Rate Limiting

Rate limiting is an integral part of modern large-scale applications.

reboottime commented 1 year ago

Applications of Rate Limiting

example

The applications of rate limiting can be applied at

reboottime commented 1 year ago

Core Concepts of Rate Limiting

Most rate limiting implementations share three core concepts. They are the

Rate limit core concepts


After surpassing the rate limit, the action (limiting response) can be three catetgories

three limiting responses

reboottime commented 1 year ago

Common Rate Limiting Algorithms

This article introduced algorithms

The algorithms explaination content are unavailable for unpaid user ):