Live data from Hacker News

Show HN: 2M fully loaded concurrent WebSockets

oatpp.io

1–10 of 32 posts

Re: Show HN: 2M fully loaded concurrent WebSockets

#3

Reminds me of the good old days when an IBM 360 running CICS could support 13,000+ terminals with just 16 MB of RAM. I thought shoehorning was a microcomputer thing until I found out about that!

I Agree, It could be less than 15Gb for 2M WebSockets. But it's the first benchmark, and I decided to make it without much of optimizations - just to have a starting point. There is still much space for optimizations like reducing internal buffers and so on, but I will leave it for future tests.

Re: Show HN: 2M fully loaded concurrent WebSockets

#8

I'm confused. If there are 20M clients and the server is sending 9M messages per minute, doesn't that mean that each client is sending less than 1 message per minute?

Not 20M, but 2M fully loaded sockets... about 1 message per 13sec per Connection

Re: Show HN: 2M fully loaded concurrent WebSockets

#10
post #9

The memory seems high actually, I've seen other C / C++ / Go implementation using less than a 1GB for 1m connections. Pretty cool nonetheless! https://github.com/uNetworking/uWebSockets https://speakerdeck.com/eranyanay/going-infinite-handling-1m...

Thanks, In this benchmark I decided to go without much of the framework tuning. Mostly took it as is in order to see what I can get. In any case oatpp is general purpose web framework, it is understood that dedicated libraries like uWebSockets may be more optimized. Nevertheless I beleve it's still much space for tunning and optimizing of oatpp.
Post reply on HN