Raw capture โ€” raw/session-revocations-at-scale.md


url: https://www.canva.dev/blog/engineering/session-revocations-at-scale/ title: Session revocations at scale author: Llew Vallis date_fetched: 2026-08-01 date_published: 2026-07-22 site: Canva Engineering Blog


Session revocations at scale

How Canva keeps hundreds of millions of user sessions fast and secure

Llew Vallis, Canva Engineering Blog, Jul 22, 2026


Canva manages sessions for hundreds of millions of users, with every backend request needing to identify the logged-in user โ€” answered hundreds of thousands of times per second. Canva uses encrypted browser cookies containing user identity, permissions, and roles, allowing gateways to trust cookie details without a networked datastore lookup on every request. When users are logged out or permissions change, revocations must propagate in near real time.

Pre-existing Architecture

Optimizing the In-Memory Cache

Keeping Chunks Up to Date

Downloading the Chunks

Outcome and Learnings

Acknowledgments

Thanks to Joeby Neil (collaborator), Martin Doms (support), plus Dennis Kao, Michael Yates, Zac Sims, Stu Liston, Min Coombes, and Simon Newton for feedback.