I see the matrix is more popular than xmpp, but why?
more popular
That’s not true at all. There are a ton of business applications for XMPP from IoT messaging, to Nintendo’s user presence, to being a 90% chance your favorite online game’s chat back-end. Behind Jitsi & Zoom & WhatsApp is an XMPP server. Matrix by design will never scale to these demands if history needs to live forever & all servers need to duplicate data.
More trendy would be a more appropriate phrase since Matrix wants to chase after proprietary Slack & Discord, where as XMPP is extensible & more generalized for all sorts of applications. Even with all of these proprietary applications, there are plenty of open communities hosted for MUCs & also blog/community thru Movim/Libervia & as an alternative back-end for UnifiedPush, etc. With the server resource usage being much lower, it’s cheaper & easier to maintain an XMPP server alongside another application in a VPS or even on a home network with dynamic DNS. If you are inclined, set one up & test it out.
I have never used matrix but why would anyone design something that won’t scale by design?
I understand scalability not being a priority but designing something to be poorly scalable by design seems odd.
If you want the messaging to be resilient, this makes sense as a server can go down but anyone else connected has the whole history on their server.
But I think that is better suited for a forum where copying Slack/Discord’s lead & trying to preserve all history in a chat isn’t worth it as I see this sort of thing as better tasked for ephemeral communication. However, there is something communal & intuitive about chat apps that make folks interact pretty well so they can make decisions. This is a ‘good thing’ where forums don’t get the same engagement—but at the cost of you had to be there or worse, you need an account to see the discussion for that decision.
It’s faster and it’s not Synapse. I could serve hundreds of people on a single Pi while I would need to order a VPS with 4GB RAM to serve the same amount of people. I know there’s better server software out there, but it’s nowhere near Synapse. XMPP simply doesn’t care, clients and servers are well built and almost every client uses OMEMO and honestly I had a lot of decryption errors on Matrix and if you used something else than matrix.org you’d be screwed. It’s simply just better, because it’s faster and has a bigger ecosystem. The only thing that’s not cool about XMPP is that the federated userbase is kinda small. The biggest non-federated XMPP server is WhatsApp and that’s kinda sad. Also the protocol is nice, because most clients keep a socket open to listen for new messages and this is especially nice in the college WiFi environment some of my friends are in where a timer is set after bedtime which would wait until all sockets are closed which doesn’t include XMPP so messaging with my friends after bedtime is still possible.
Just the other day I got downvoted for posting that it’s stupid that 8GB of RAM in laptops is not enough. Software like Synapse, trying to lift the load that it does in Python, is exactly the kind of thing I’m talking about.
the college WiFi environment some of my friends are in where a timer is set after bedtime which would wait until all sockets are closed which doesn’t include XMPP so messaging with my friends after bedtime is still possible.
The college tries to just shut off the WiFi at night??
On a related note is anybody able to tell me why Matrix hosting is so darn expensive? It seems you need to self host to have bridges?
There are quite a few stories of communities shutting down their servers since the costs of duplicating all messages & attachments for all rooms for all DMs for all users on the server. Add to the mix that the implementation server in Python consumes a lot more resources, it’s not a big surprise. As such, everything centralizes around Matrix.org where they get an unreasonable amount of the network’s metadata.
I think it’s just more difficult to set up than most self-hosted services?
But like, if you learn to do that yourself any old VPS will work.
You don’t have to self host to have bridges. Some instances provide them, I know pikaviestin.fi does, but they only accept Finnish citizens.
Im self hosting conduit and it was surprisingly easy to setup, and at this point just my mom and I are using it so ressource usage is OK. Otherwise I read that CPU can be tough in big chat rooms, and I assume a lot of things are copied on disk for federation which can also be costly. You can always de-federate to avoid these problems but at this point I don’t see much reason to self host if you’re only going to chat (signals does that just fine)
cant u just run a docker environment on a cheap hosting service or something ? (i am new to this)
Hosted my own xmpp server back when you could talk to facebook messenger and google chat users via federation. But when they closed their walled garden there were nobody to talk to so i stopped it.
Now with matrix i have again a homeserver. Bridged to messenger, google what the new thing is called, slack, and a few others.
Wait a minute… xmpp is federated? Like I can self host and then still message others?
Other xmpp servers that want to yes. But i have nobody that uses xmpp again.
I thought that was why matrix was made. Because it’s federated… What’s the got damn point of matrix?