Show HN: RaspChat a chat system that can handle thousands of users on basic RPi
beta.raspchat.com
beta.raspchat.com
.
.
.
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...
Go runtime, GC, random userspace bits this is on top of
50MB!
I find it hard to believe a Pi can handle thousands of concurrent users though. How does it handle that?
150MB - 100MB
------------------- = 50KB/user
2k users - 1k users
no?Variable Cost: 50KB/user
50 + 1000 * (0.05) => 100 MB
50 + 2000 * (0.05) => 150 MB
Pretty straightforward?