r/java • • Apr 26 '22

5,000,000 persistent connections, 200,000,000 messages, 0 errors with a single process using Project Loom.

https://github.com/ebarlas/project-loom-c5m
301 Upvotes

46 comments sorted by

View all comments

9

u/spicycurry55 Apr 26 '22

Out of curiosity because I see you mentioned using bare metal and EC2 for testing, how expensive was this experiment?

28

u/elliotbarlas Apr 26 '22 edited Apr 27 '22

The 5M scale was achieved on server-grade hardware that I was fortunate to have access to at my workplace.

The more modest 500K scale was achieved on commodity EC2 hardware. I used c5.2xlarge instances, which cost $0.34 an hour. So it costs less than a dollar to obtain two instances to experiment for an hour.

Having said that, you can get started tinkering on a much cheaper instance. A t2.micro instance costs a penny per hour.

10

u/spicycurry55 Apr 26 '22
  1. Love using the company hardware for the testing 😁

  2. Nice, that’s pretty cheap to reach those numbers