Skip to content

Add rate limiter utility snippet #249

@iluwatar

Description

@iluwatar

Description:

A token bucket rate limiter is an algorithm used to control how often actions can occur, typically used in APIs, background jobs, or other systems to avoid overuse or abuse.

Implement a simple token bucket–style rate limiter. It should allow only a certain number of operations per second.

Acceptance Criteria:

  • A new rate limiter snippet has been added
  • Test example demonstrates throttling effect

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions