Get the latest tech news

How many HTTP requests/second can a Single Machine handle?


When designing systems and deciding on the architecture, I often hear justifying the use of microservices and other complex solutions because of the predicted performance and scalability needs. Out of curiosity then, let's test the limits of an extremely simple approach, the simplest possible one.

When designing systems and deciding on the architecture, I often hear justifying the use of microservices and other complex solutions because of the predicted performance and scalability needs. Java 21-based REST API built with Spring Boot 3 and using Virtual Threads PostgreSQL as a database, loaded with over one million rows of data External volume for the database - it does not write to the local file system (we use DigitalOcean Block Storage) Realistic load characteristics: tests consist primarily of read requests with approximately 20% of writes. Nevertheless, remember these results the next time someone tries to persuade you into implementing a complex solution, architecture and infrastructure, for a system expected to handle at most 5 requests per second.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of second

second

Photo of HTTP

HTTP

Photo of HTTP requests

HTTP requests

Related news:

News photo

China's Ultra High Voltage "Electricity Highway" project: one second of power transmission over 1500km away is enough to sustain a household for two years

News photo

Vanguard hits new 'bans-per-second' record

News photo

Show HN: Sping – An HTTP/TCP latency tool that's easy on the eye