Accelerating Authentication Architecture: Taking Passwordless to the Next Level
A slow-loading widget was crippling their passwordless login. See how a new architecture using materialized views cut load times from 500ms down to a blazing-fast 14ms.
An overview of the core concepts behind passwordless authentication, including FIDO2, WebAuthn, and Passkeys.
#2about 3 minutes
How the initial passwordless solution worked
A high-level look at the original architecture where a user interacts with a widget that triggers a multi-step authentication process involving a customer's user database.
#3about 2 minutes
Identifying the widget's performance bottleneck
The authentication widget loaded with a noticeable delay or sometimes not at all, creating a poor user experience that undermined the speed of passwordless login.
#4about 2 minutes
Analyzing the legacy loading architecture
The previous solution suffered from high latency and request dependencies by loading an SDK, translations, and dynamic configurations in separate network calls.
#5about 2 minutes
Applying design patterns for performance optimization
The materialized view and server-side composition patterns provide a theoretical framework for pre-calculating data and bundling resources to reduce requests.
#6about 4 minutes
Building the new high-performance architecture
A new architecture was designed using a "baking server" microservice to pre-compose all necessary resources into a single file stored in Redis for fast retrieval.
#7about 5 minutes
Scaling the solution with a CDN and request collapsing
AWS CloudFront was placed in front of the baking server to handle massive scale, using request collapsing to prevent the origin from being overwhelmed during traffic spikes.
#8about 5 minutes
Solving the Redis hotkey bottleneck at scale
High traffic to a single Redis key caused network allowance issues, which was solved by sharding the key, adding an in-memory cache, and using CloudFront's Origin Shield.
#9about 3 minutes
Keeping cached data fresh with CDN invalidation
A Redis pub/sub mechanism triggers programmatic CDN invalidations whenever customer configurations change, ensuring users see updates within minutes.
#10about 5 minutes
Reviewing results and key architectural takeaways
The new architecture reduced widget load time from over half a second to 14 milliseconds by leveraging existing components, using observability, and adapting design patterns.
#11about 11 minutes
Q&A on career path and the future of passwordless
A discussion on transitioning into a DevOps role, the industry-wide shift towards passwordless authentication, and balancing user convenience with security.
#12about 6 minutes
Q&A on business drivers and implementation
An exploration of the business motivation for passwordless adoption, such as increasing conversion rates, and the technical challenges of ensuring a secure and seamless user experience.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
03:23 MIN
The impact of Passkeys on passwordless adoption
Passwordless future: WebAuthn and Passkeys in practice
03:01 MIN
Exploring the user experience flaws in web authentication
SSO with Ethereum and Next JS
03:04 MIN
Introducing passkeys for secure passwordless authentication
Passwordless Web 1.5
02:54 MIN
Current adoption and developer implementation challenges
Passwordless Web 1.5
25:09 MIN
Audience Q&A on serverless IoT development
Building your way to a serverless powered IOT Buzzwire game
02:41 MIN
Introducing Passkeys to solve WebAuthn's usability issues
Passwordless future: WebAuthn and Passkeys in practice
03:48 MIN
How Passkeys improve the user experience
Passwordless future: WebAuthn and Passkeys in practice
15:12 MIN
Q&A on speed, team adoption, and common mistakes
DevSecOps: Injecting Security into Mobile CI/CD Pipelines
Dev Digest 109 -Egg-citing things…As we are heading into the Easter break, here are some things to spend some time on. There's resources on improving the performance of your code and you hear from the winners of CODE100 Amsterdam what it was like to be on stage. Also, hang tight as t...
Chris Heilmann
Dev Digest 134 - Where pixels sing?News and ArticlesWeAreDevelopers LIVE Data and Security Day is on Wednesday, 25/09/2024. Learn about OPC UA Updates, Best Practices for Using GitHub Secrets, Passwordless Web 1.5, Emerging AI Security Risks, Data Privacy in LLMs and get a chance to t...
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take partStarting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
Chris Heilmann
Dev Digest 138 - Are you secure about this?Hello there! This is the 2nd "out of the can" edition of 3 as I am on vacation in Greece eating lovely things on the beach. So, fewer news, but lots of great resources. Many around the topic of security. Enjoy! News and ArticlesGoogle Pixel phones t...
From learning to earning
Jobs that call for the skills explored in this talk.