Guides
Getting Started
This guide explains how to get started the async-limiter gem for controlling concurrency and rate limiting in Ruby applications.
Generic Limiter
This guide explains the class, which provides unlimited concurrency by default and serves as the base implementation for all other limiters. It's ideal when you need timing constraints without concurrency limits, or when building custom limiter implementations.
Limited Limiter
This guide explains the class, which provides semaphore-style concurrency control, enforcing a maximum number of concurrent operations. It's perfect for controlling concurrency when you have limited capacity or want to prevent system overload.
Queued Limiter
This guide explains the class, which provides priority-based task scheduling with optional resource management. Its key feature is priority-based acquisition where higher priority tasks get access first, with optional support for distributing specific resources from a pre-populated queue.
Timing Strategies
This guide explains how to use timing strategies to provide rate limiting and timing constraints that can be combined with any limiter. They control when operations can execute, while limiters control how many can execute concurrently.
Token Usage
This guide explains how to use tokens for advanced resource management with async-limiter. Tokens provide sophisticated resource handling with support for re-acquisition and automatic cleanup.