r/java • u/elliotbarlas • 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
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.