r/programming • u/llewvallis • Jul 23 '26
How Canva uses S3 for logged-in session management
https://www.canva.dev/blog/engineering/session-revocations-at-scale/I put together a writeup about the interesting technical challenges that led to redesigning Canva's session revocation pipeline that keeps hundreds of millions of user sessions fast and secure. Hopefully some people find the content interesting!
141
Upvotes
53
u/tossed_ Jul 24 '26
This seems wildly unnecessary? Just use a refresh token scheme, keep access token lifetimes short and keep refresh tokens in a database instead, no need to check each session against a million cached revocations. Think about how much overhead is introduced on every single call just to check cookies compared to a stateless session approach.
11
u/flo850 Jul 23 '26
Nice writeup, I learned a lot
0
u/jesseschalken Jul 24 '26
👋
0
u/ChemTechGuy Jul 26 '26
Great write up. I don't have a ton of experience with session management, but i love to see these clever distributed systems that can achieve so much with just some blob storage, conditional writes, and some good data design
0
u/[deleted] Jul 24 '26
[deleted] — view deleted comment
0
u/[deleted] Jul 24 '26
[deleted] — view deleted comment