Live data from Hacker News

Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

beta.raspchat.com

1–10 of 22 posts

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#5
post #2

That's pretty slick looking. I realy like the interface. I find it hard to believe a Pi can handle thousands of concurrent users though. How does it handle that?

Good to hear you like it. Server is written to be lightweight and keeping things simple helped a lot. NodeJS totally sucked memory, Golang helped a lot in that perspective.

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#6
post #5
post #2

That's pretty slick looking. I realy like the interface. I find it hard to believe a Pi can handle thousands of concurrent users though. How does it handle that?

Good to hear you like it. Server is written to be lightweight and keeping things simple helped a lot. NodeJS totally sucked memory, Golang helped a lot in that perspective.

Got server load averages? how much ram is used?

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#7
post #6
post #5

Earlier quoted context omitted.

Good to hear you like it. Server is written to be lightweight and keeping things simple helped a lot. NodeJS totally sucked memory, Golang helped a lot in that perspective.

Got server load averages? how much ram is used?

1K parallel connections were handled under 100MB of memory. 2K were around 150MB

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#10
WARNING: yes, i am going to be THAT guy...

.

.

.

It amazes me that "thousands" of users sending simple messages is considered impressive nowadays on a machine with a xxxxMHz CPU and at least xxxMB ram.

This was being done decades ago on xxMB ram and xxxMHz.

sister comment says 100MB/1K connections, 150MB for 2K, so 50KB/connection and 50MB fixed cost?!!?

-

Dump Javascript/Go/$RANDOM_LATEST_BUZZWORD_7 and learn how to program [in C] if you actually want an impressive number of users per MHz/per MB

This is doable on a Cortex-M4 and an ethernet MAC...

Post reply on HN