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: Sen. Emmett Berge

Last Updated:

Views: 6403

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.