From 0 to 1.000.000: How to build a serverless raffle service for hyperscale
How do you build a serverless app for one million users? Discover why synchronous patterns fail and how an asynchronous architecture can easily handle massive traffic bursts.
#1about 3 minutes
Understanding the challenge of hyperscale serverless applications
Hyperscale applications must handle sudden traffic bursts of millions of users and hundreds of thousands of requests per second, a common scenario for raffles or voting systems.
#2about 7 minutes
Identifying bottlenecks in a standard serverless architecture
A typical synchronous architecture using API Gateway, Lambda, and DynamoDB fails at hyperscale due to Lambda's burst concurrency limits and the inefficiency of single-request processing.
#3about 4 minutes
Building a decoupled architecture with SQS for scalability
Decoupling the architecture by using an SQS queue between API Gateway and Lambda allows the system to buffer incoming requests and process them asynchronously in batches.
#4about 10 minutes
Demonstrating the architecture with a live load test
A live demo using the Artillery load testing framework and audience participation successfully subjects the asynchronous architecture to over 100,000 requests per second.
#5about 2 minutes
Summarizing key takeaways for building hyperscale systems
Building for hyperscale requires understanding service limits, leveraging asynchronous patterns, writing efficient code, pre-warming databases, and performing rigorous load testing.
#6about 4 minutes
Answering audience questions on serverless architecture
The speakers address when to use queues versus synchronous calls, how to handle requests needing immediate validation, and best practices for throttling with exponential backoff.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
02:39 MIN
The high-level serverless architecture for the application
How we built an AI-powered code reviewer in 80 hours
02:30 MIN
Scaling AWS Lambda to handle high traffic spikes
Reliable scalability: How Amazon.com scales on AWS
25:09 MIN
Audience Q&A on serverless IoT development
Building your way to a serverless powered IOT Buzzwire game
02:31 MIN
Achieving massive scale on AWS for Prime Day
Reliable scalability: How Amazon.com scales on AWS
02:23 MIN
Exploring the benefits of a serverless architecture
Building Reliable Serverless Applications with AWS CDK and Testing
02:48 MIN
The evolution of architecture towards serverless models
Serverless on Cloud
05:34 MIN
The power of cloud functions and serverless architecture
All the videos of Halfstack London 2024!Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
Chris Heilmann
Processing 175 WeAreDeveloper World Congress talk videos in 5 hours - with PHP?Every year after the WeAreDevelopers World Congress is over, we have a ton of video footage to edit and release. Most of it is in raw format and needs editing by hand, but a lot of our sessions are also streamed live on YouTube and thus easier to re-...
Benedikt Bischof
Why You Shouldn’t Build a Microservice ArchitectureWelcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Michael Eisenbart who talks about the pros and cons of microservice architecture.About the speaker:Michael has been working for Bosch as a sof...
Chris Heilmann
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...
From learning to earning
Jobs that call for the skills explored in this talk.