Skip to content
javaguru
All engineering blogs

Canva Featured

Session revocations at scale

How Canva keeps hundreds of millions of sessions fast and secure: in-memory revocation checks, refreshed from 30-minute objects in Amazon S3 instead of MySQL on every gateway start.

Distributed SystemsSecuritySystem Design
Read Original Article Opens on canva.dev. The full article stays with its publisher.

Why it's worth reading

A concrete look at the cache warm-up stampede every large gateway fleet eventually hits — and a distribution design that takes MySQL off the startup path.

Key takeaways

  1. 01 An in-memory revocation check avoids a network round-trip to the database on every authenticated request.
  2. 02 Partitioning revocations into 30-minute S3 objects turns a deployment stampede into a cheap file download.
  3. 03 A compact binary encoding matters when hundreds of pods each pull tens of megabytes at once.

Related reading

All engineering blogs
Canva

Worker Backpressure (Part 1)

Canva's queue workers now slow themselves down when downstream dependencies fail, then ramp back up on their own instead of flooding a dead letter queue.

ReliabilityBackend EngineeringDistributed Systems
Netflix

Single-tenant Titus: VM-level isolation on a multi-tenant container platform

How Netflix added a single-tenant mode to Titus, giving a task its own VM while keeping the same API and deployment path as its multi-tenant containers.

InfrastructureSecuritySystem Design
26 min read
Airbnb

Flexible Authentication: Reimagining authentication for millions of users at Airbnb

How Airbnb rebuilt authentication around “identify first, then challenge”, choosing the easiest verification method for each guest, host and market.

SecuritySystem DesignBackend Engineering