Canva's S3-Based Session Revocation: Scaling to Hundreds of Millions of Sessions (2026)

Canva's recent architectural overhaul for session revocation management is a fascinating glimpse into the world of large-scale web engineering. Personally, I find it intriguing how they've tackled the challenge of handling hundreds of millions of active sessions without relying on traditional database lookups for authentication. This approach not only improves deployment speed but also reduces the strain on their database infrastructure, a win-win situation in my opinion.

One of the key innovations is their use of Amazon S3 as a durable storage solution for revocation data. By dividing the 12-hour revocation window into 30-minute objects and storing them as immutable records, Canva has created a system that is both efficient and reliable. The use of sorted arrays further enhances this efficiency, reducing the memory footprint by a significant 87.5%.

What many people don't realize is that this design also simplifies recovery and deployment processes. Gateways can easily reconstruct their local revocation state by downloading relevant S3 chunks, eliminating the need for a complex database rebuild. This level of flexibility and resilience is a testament to Canva's engineering prowess.

However, it's not without its critics. Some have suggested using a refresh token scheme, arguing that it would reduce the need for constant database checks. But Canva's engineers have defended their choice, citing potential issues with database availability during refresh operations. This highlights the delicate balance between performance and reliability that engineers must navigate.

The impact of this new architecture is evident in Canva's reduced database load and improved deployment speed. By optimizing their session revocation process, Canva has not only enhanced their system's performance but also made it more scalable and predictable. This is a prime example of how innovative thinking and a deep understanding of one's infrastructure can lead to significant improvements.

In conclusion, Canva's session revocation architecture is a prime example of how creative solutions can be derived from a deep understanding of one's system. It showcases the importance of considering all aspects of a problem, from performance to reliability, and finding innovative ways to address them. This approach not only improves the system's efficiency but also its overall resilience and scalability.

Canva's S3-Based Session Revocation: Scaling to Hundreds of Millions of Sessions (2026)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 5356

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.