No. 26 · Distributed infrastructure
Limit simultaneous streams per account
OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES
Further reading
Vetted reading covers part of the design or the underlying paper, not the whole problem. Links go to other sites; we credit and describe them rather than copy them.
No complete public walkthrough of this question was found. The resources below cover the underlying pieces (short leases renewed by heartbeat, atomic counting, fencing), and our worked approach puts them together.
- Recurring License Renewals for Concurrency Detection and Enforcement
The closest thing to a primary source: a short paper on enforcing per-account stream limits with short DRM licenses renewed by heartbeat, plus how to degrade gracefully during server outages. Does not cover the counting store.
Link checked 2026-12-06
- Concurrent Stream Limiting (CSL)
Vendor docs for a real concurrent-stream limit built on license renewals: slots free themselves when renewals stop, so there are no hanging sessions. Product configuration, not architecture.
Link checked 2026-12-06
- Scaling your API with rate limiters
Read the concurrent-requests limiter section: it is the same "how many are in flight right now" problem, solved with Redis. Background, since it limits API calls rather than streams.
Link checked 2026-12-06
- Redis sorted sets
Sorted sets scored by expiry time give you a per-account set of active sessions: add on play, trim expired members by score, count what remains. Docs only; atomicity across those steps is up to you.
Link checked 2026-12-06
- How to do distributed locking
Explains why leases and expiry clocks can be wrong under pauses and how fencing tokens guard against a stale holder. Helps with the race where two devices press play at once.
Link checked 2026-12-06
- Netflix says account is already in use
Netflix's user-facing description of the limit, including that a slot can take 5 to 10 minutes to free after stopping. A concrete product requirement to design against; says nothing about implementation.
Link checked 2026-12-06
COMPANY EVIDENCE · NOT A FREQUENCY CLAIM
Where it has been reported
Unknown. The reference catalog only says “Some FAANG”, which is too vague to attribute. No public candidate report found yet.
KEEP GOING