feat(builder): rate limit per identity instead of per process
The limiter was a module-level singleton, so one busy caller throttled every other caller on the box and a shared daily budget was trivially exhausted. Buckets are now keyed by authenticated identity, and keyed centrally so reconnecting does not hand back a clean bucket.
This commit is contained in:
BIN
packages/builder/test/rate-limiter.test.ts
Normal file
BIN
packages/builder/test/rate-limiter.test.ts
Normal file
Binary file not shown.
Reference in New Issue
Block a user