Sizing a server
Short, honest version: a small VM carries a friend group comfortably, and nobody has published a number for where it stops. Here is where the cost actually is, how to measure your own case, and the situations where a different product is the right answer.
Where the load goes
- Gateway fanout. One WebSocket per client. Every message is written once and pushed to the members of that space who are online. This is the part that grows with people.
- SQLite, single writer. One process, one writer, WAL mode, an 8-connection pool and a 5-second busy timeout. Reads scale fine; heavy parallel writes queue, which is irrelevant at friend-group scale and is the first wall a large community hits.
- History reads. Paged, oldest first, capped at 100 rows per request, so a busy channel does not turn into one giant query.
- Voice: nothing. Audio and screen frames go peer-to-peer over WebRTC; the server only relays call setup. Eight people per channel is a full mesh, so the cost of a call is on the participants' connections, not on your CPU.
- Uploads and link previews. The only work that touches the disk in bulk and fetches from the outside world.
Measure it yourself
The binary ships a seeding command, so you can fill a throwaway database and watch the server behave with realistic history instead of three messages:
yap-server seed-bench --db sqlite:///bench.db --user bench --password test1234 \
--channels 20 --messages 5000
Run it against a scratch database, point a couple of clients at it, and watch with docker stats or top. That is more useful than any table on this page, including the memory figures for the desktop app, which measure the client and not the server.
What to expect, roughly
| Group size | What this project would tell you |
|---|---|
| A handful of friends, a few channels | Anything that runs Docker. The 1 OCPU / 6 GB free VM in the deploy notes is more than enough; it is chosen for price, not for headroom. |
| A few dozen online at once | Same box is plausible, but measure it: fanout and history reads are the variables, and message volume matters more than member count. |
| Hundreds online at once | Uncharted. Expect to think about the single-writer SQLite design before you think about CPU. |
| Thousands, or a public community | Not what this is built for. Compaction, sharding and moderation tooling at that scale are a different project. |
Disk is the quieter limit: messages are rows in the same file, and the whole database is what you back up. Archive or prune long-dead channels before the file becomes the thing you cannot copy in one go.
When Yap is the wrong choice
- You need federation. Yap is one server per group by design; there is no bridge to Matrix or anything else.
- You need email or SMS. Sign-up asks for a username only, and there is no password reset by email. Losing both the authenticator and the recovery codes locks an account out, on purpose.
- You need push notifications on iOS. Not something a self-hosted box can promise today; the mobile client is Android.
- You need retention, eDiscovery or audit guarantees. The audit log is per-space and small; this is not a compliance product.
- You need a public directory of communities. There is deliberately no in-app server directory.
- You cannot run a box, and do not want the hosted one. Then this is not the tool for you yet — and that is a fair conclusion to reach on this page rather than after a migration.
Updated . Part of hosting and self-hosting.