Question bank

No. 26 · Distributed infrastructure

Limit simultaneous streams per account

Expert40 minConcurrency control · Consistency models · Failure detection · Idempotency · Replication & consensus · Sharding & partitioning

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Partial 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.

  1. Recurring License Renewals for Concurrency Detection and Enforcement

    W3C public-html-media mailing listPaperBackgroundFreeVetted

    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

  2. Concurrent Stream Limiting (CSL)

    Axinom DRM documentationDocsBackgroundFreeVetted

    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

  3. Scaling your API with rate limiters

    StripeEngineering blogPartialFreeVetted

    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

  4. Redis sorted sets

    Redis DocumentationDocsBackgroundFreeVetted

    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

  5. How to do distributed locking

    Martin Kleppmann's blog · Martin KleppmannArticleBackgroundFreeVetted

    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

  6. Netflix says account is already in use

    Netflix Help CenterDocsBackgroundFreeVetted

    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

Report a bad or misleading link

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.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions