Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Tuwunel vs Synapse: CPU, RAM and Disk Costs of a Self-Hosted Matrix Alternative to Slack or Discord in Docker

For most small groups leaving Slack or Discord, Tuwunel is the better starting point. It is one Rust binary with an embedded RocksDB database, so you run one container, not a homeserver plus PostgreSQL plus Redis and workers. Synapse is still the safer choice once you need enterprise single sign-on, a mature admin API or room to grow past a few hundred active users. The hardware gap between the…

Tuwunel and Synapse are both Matrix homeservers, meaning they store messages, rooms and accounts for user groups and communicate with other servers through federation. Users connect with clients like Element just as they would with Slack or Discord apps. When deciding between the two, consider that the homeserver is what you run, pay for, and maintain, which impacts hardware costs and administrative effort.

Tuwunel is a Rust-written server with an embedded RocksDB database, requiring only one container. It's well-suited for small groups of 5 to 15 users, or homelab users with devices like Raspberry Pi 5 or N100 boxes, as its RAM usage remains low. On the other hand, Synapse is the reference implementation of the Matrix homeserver, written in Python with some Rust components.

It demands a PostgreSQL database and scales by distributing work across worker processes coordinated via Redis. Synapse is better for larger communities of 20 to 60 users or larger companies needing enterprise features like SSO integrations and mature admin tools.

RAM usage varies between the two servers. Tuwunel runs as a single container, while Synapse needs at least two processes: the Python homeserver and PostgreSQL. Both servers fill their caches over time, which can cause memory spikes, but this is normal and doesn't necessarily indicate a leak. Cap the caches to prevent out-of-memory issues, especially when running on devices with limited memory.

Rewritten by urgent.news; may contain errors — check the original.

Read the original at dev.to →

Report a problem with this story

More in Tech

Build Better Engineers, Not Just Better Software

I once worked on a coding project where I was effectively the junior. I had picked up a fix, worked through it and opened a pull request. I was pumped about it.

  • Lead DevOps consultants guide junior engineers.
  • Psychological safety crucial for team growth.
  • Constructive feedback encourages independent problem-solving.

A trash cleanup that deleted records a day early, and how I tested it in 2 minutes

Twenty, the open-source CRM, keeps deleted records in the trash for 14 days before deleting them for good. At least, that's what it says.

  • CRM Twenty retains deleted records for 14 days before permanent deletion.
  • Bug caused record deleted at 23:59 UTC to be permanently deleted at 00:10 UTC.
  • ChronoStack allows testing of time-based features in two minutes.

More from Saturday 21 November →