Catalogue / classdojo-2015-push-rate-limiter

ClassDojo rate-limited push notifications with one Redis sorted set per user in a MULTI block, after finding token buckets open to races

ClassDojo, 2015. Rate limiter for the push notification infrastructure.

Organisation
ClassDojo
Evidence
Reported from production
Source
Better Rate Limiting With Redis Sorted Sets

ClassDojo Engineering, published 2015-02-06

Records

Decision#d1

Keep a Redis sorted set of action timestamps per user, trimmed and read in one MULTI transaction, instead of a token bucket

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.