Hasty Briefsbeta

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

10 days ago
  • #scalability
  • #http-requests
  • #performance-testing
  • The article explores the HTTP requests per second a single machine can handle, testing different machine sizes (small, medium, large).
  • Test setup includes a Java 21-based REST API with Spring Boot 3, PostgreSQL database with over one million rows, and realistic load characteristics (80% reads, 20% writes).
  • Small machine (1 CPU, 2GB RAM) handles 200-300 RPS sustained load, with 1000 RPS for short bursts.
  • Medium machine (2 CPUs, 4GB RAM) sustains 500-1000 RPS, handling 1000 RPS with minimal latency.
  • Large machine (4 CPUs, 8GB RAM) sustains 2000-3000 RPS, handling 4000 RPS for short periods with some degradation.
  • Performance metrics (latency, timeouts) are provided for each machine size under different loads.
  • The article emphasizes simplicity, showing that a single machine can handle significant loads before needing complex architectures.
  • Includes links to a related YouTube video and GitHub repository for further exploration.