alepha@docs:~/docs/packages/alepha$
cat rate-limit.md | pretty1 min read
Last commit:
#Alepha - Rate Limit
#Installation
Part of the alepha package. Import from alepha/rate/limit.
npm install alepha
#Overview
Transport-agnostic, fail-closed rate limiting on $actor.
Features:
$rateLimitlimiters withconsumeandrefund(ticket)- Fixed windows anchored on the first hit, saturating without writes
denyon store errors and contention by default- Topology from the actor provider: Memory (one instance), Redis (several), Durable Objects (workerd)
#API Reference
#Primitives
$rateLimit- Declare a transport-agnostic, fail-closed rate limiter.