Let’s Handle 1 Million Requests per Second, It’s Scarier Than You Think!
Show description
Let's see what it's like to handle 1 million HTTP requests per second! In this video, we will set up a powerful infrastructure on AWS and handle more than a million requests per second. We will deal with Node.js, C++, PostgreSQL and Redis. Understanding Node.js Core Concepts Course: https://www.cododev.ca/uncc ------------------------------- SOURCE CODES: ------------------------------- Node.js Source Code: https://github.com/agile8118/node-1m-rps C++ Source Code: https://github.com/agile8118/cpp-1m-rps Tester Source Code: https://github.com/agile8118/1m-rps-tester ------------------------------- CHAPTERS: ------------------------------- Introduction 00:00 CPU Utilization & Threads 8:23 Getting Started 16:32 More on AutoCannon 20:30 Utilizing More CPU with Clustering 24:01 Moving to AWS 34:24 Adding a Storage-Based Database 1:01:50 Speeding Up with a Memory-Based Database 1:24:10 Redis Cluster Mode 1:36:18 C++ with Drogon and RapidJSON 1:51:52 The Final Colossal Tests 2:09:01 Outro 2:35:18 ------------------------------- LINKS: ------------------------------- AutoCannon: https://www.npmjs.com/package/autocannon Fastify: https://www.npmjs.com/package/fastify Cpeak: https://www.npmjs.com/package/cpeak AWS IAM 10th Anniversary: https://aws.amazon.com/blogs/apn/iam-10th-anniversary-top-recommendations-for-working-with-iam-from-our-aws-heroes-part-1/ AWS EC2 Price Calculator: https://calculator.aws/#/createCalculator/ec2-enhancement AWS RDS Price Calculator: https://calculator.aws/#/createCalculator/RDSPostgreSQL AWS Load Balancer LCU Calculator: https://exampleloadbalancer.com/ondemand_capacity_reservation_calculator.html www.cododev.ca ------------------------------- PVCFVTSY1BWZE4HP
Have questions about this video?
Sign up to chat with AI and get deeper insights.
Sign up — 5 free creditsIn this video, the host simulates handling over 1 million HTTP requests per second, exploring the challenges and strategies involved in achieving such high scalability using various technologies including C++, Redis, and AWS.
In-depth coverage of complex topics and real-world applications provides significant learning value for the target audience.
Developers and engineers looking to understand scalable system design and performance optimization.
Beginners or those looking for basic programming tutorials on introductory topics.
The video offers in-depth technical insights with a real-world application focus, though some segments could be simplified for broader accessibility.
- Understanding algorithms is crucial in high-stakes environments.
- Minor coding mistakes can lead to significant financial losses.
- Using in-memory databases like Redis can vastly improve performance.
- Efficient coding frameworks are essential for handling extreme request loads.
- Testing under simulated loads is necessary to understand system limits.
- AWS offers powerful infrastructure for scaling applications.
- Multi-threading and CPU utilization are critical for maximizing performance.
- 1Experiment with setting up load tests using autocannon.
- 2Explore different database solutions to find performance bottlenecks.
- 3Implement Redis for in-memory data storage.
- 4Refine code and algorithms to improve efficiency in high-traffic scenarios.
- Basic understanding of software engineering principles.
- Familiarity with backend development and HTTP requests.
- Knowledge of cloud computing and server management.
Discussed as the cloud service provider used for the tests.
Used to illustrate in-memory data handling.
C++ web framework mentioned for high-performance handling.
A lightweight framework developed in the video for request handling.
Tool used for load testing the servers under high traffic.
tutorial
positive
intermediate
technical
Software engineers and developers interested in scalability and high-performance applications.