Marco Plaul & Martin Sakowski

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.

From 0 to 1.000.000: How to build a serverless raffle service for hyperscale
#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.

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
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...
All the videos of Halfstack London 2024!
BB
Benedikt Bischof
Why You Shouldn’t Build a Microservice Architecture
Welcome 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...
Why You Shouldn’t Build a Microservice Architecture
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos

From learning to earning

Jobs that call for the skills explored in this talk.

AWS Cloud Architekt

AWS Cloud Architekt

samecon GmbH & Co. KG
Eschborn, Germany

Remote
C++
Java
Python
Amazon Web Services (AWS)