Glossary
ShedLock
A Java library providing distributed locking on top of databases or Redis. RateStack uses it to ensure scheduled jobs run once across all replicas.
The retention runner, the lock expiry sweeper, and the outbox publisher are all ShedLock-guarded. Scaling to N replicas does not produce N runs of the same job.