SShortSingh.
Back to feed

Explaining rate limiter designs: token bucket, sliding window and multi-server limits

0
·1 views

A rate limiter checks on each request whether a client key, such as an IP, user, API key or tenant, has remaining allowance. Token bucket is the common default because it permits short bursts while enforcing a long-run rate, and a sliding window counter approximates a maximum count over any rolling window. In distributed setups, the shared state sits in a central store, and each check must run as one atomic operation to prevent concurrent requests from exceeding the limit. Over-limit clients receive HTTP 429 with a Retry-After header, and clients are advised to back off exponentially with jitter. The IETF RateLimit header fields remain an Internet-Draft as of November 2026.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Blender 5.3 Released With Gaussian Splat Support

Blender 5.3 has been released, according to the official Blender website. The update adds support for Gaussian Splats, a technique for representing and rendering 3D scenes. The announcement drew attention on Hacker News, where it received 16 points and one comment. The source material provides only the release announcement and discussion metadata, so further details about the feature's capabilities are not available here.

0
ProgrammingHacker News ·

Microsoft Announces .NET 11 Release

Microsoft has announced .NET 11, the next version of its open-source developer platform. The announcement was published on the company's .NET developer blog. The post was shared on Hacker News, where it drew 23 points and two comments. The source material provided is limited to the headline and link, so further details about the release's features and timing are not covered here.

0
ProgrammingHacker News ·

Palantir Hires Former Democratic Senator Amid Congressional Scrutiny

Palantir has hired a former Democratic senator as the data analytics company faces increased scrutiny from the new Congress. The hire comes at a time when lawmakers are examining the company's government contracts and business practices. The source article, published by NPR, provides further details on the appointment and the political pressures surrounding Palantir. The only information available here is the headline and metadata, so the full context of the hire and the specific concerns raised by lawmakers cannot be confirmed.