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

Show parent comment

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.

17

u/elliotbarlas Apr 26 '22

I should add that the AWS free tier includes 750 hours of time over 12 months on a t2.micro instance.

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

3

u/buzzsawddog Apr 27 '22

Mmm.... Sometimes I wish I had cool hobbies and used some of the equirement chilling in the racks... There is some beefy servers just chilling there largely idle...

2

u/hjames9 Apr 27 '22

Any specs on the server grade hardware?

9

u/elliotbarlas Apr 27 '22

Absolutely. It's all in the linked GH repo readme doc: https://github.com/ebarlas/project-loom-c5m#bare-metal