this post was submitted on 06 Mar 2025
225 points (97.1% liked)
Technology
64074 readers
5876 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Start making your plans for a replacement because it will be going to shit soon.
Now is the time for Matrix to improve usability and whatnot, because I think that's the most credible replacement.
I really wish Matrix had been more successful, but it has some pretty core problems that prevented it from gaining more traction.
It fell into the same trap as XMPP, though perhaps even worse, with a focus more on its protocol and specification than a single unified product vision. The reference server implementation is slow, and using a language not optimal for its purpose, with alternative server implementations left incomplete and unsupported. It took a long time for them to figure out voice and video and for it to work well, and the "user flow" still isn't at Discord levels.
I've rooted for Matrix for a long time, but as a former XMPP evangelist, to me the writing on the wall says it isn't suited for success either. I'd love to be wrong, but I don't see a way through.
What do you think the main problems are?
In terms of performance, there's Rust in the synapse repo already, and both Conduit (Rust) and Dendrite (Go) seem viable. If one of those projects reaches parity with Synapse, do you think that'll "fix" matrix?
If not, are there other issues core to matrix design? I'm not that familiar with matrix except as an occasional user that follows a few tech rooms, but I'd love to help out if I'm pointed in the right direction. I'm comfortable with Rust and Go (and do Python at my day job), so if backend performance is a bottleneck, I could make help out.
But if the problems are fundamental to how it's designed or how the project operates, I'd rather work on other things.
I do think the other home server implementations gaining parity (production-ready) with the reference home server would go a long way. I haven't run a home server but I've heard from those that have that it really has a hard time scaling. (Though this serves as impetus to give it a try over spring break)
Which brings me to the caveats of the protocol, I personally don't think the design is ideal, it's more described as a distributed message bus, what I've read of the spec it's over engineered, it made good decisions wrt using modern web technologies (JSON, WebRTC), but it didn't scope itself to the particular task.
That said, I haven't written a federated protocol, and they have. But if I was going to, I'd really want to look at Discord and see how to copy a lot of that model, but break parts of it out to facilitate federation:
I originally wrote a huge hypothetical design here that I speculated would fare better, but honestly the specifics become less relevant, point is that the shared state of rooms is a real challenge, and one out of scope for just a federated instant messaging system, and I'm no longer certain it's viable.
I'm personally more interested in P2P protocols than federated, so that's the stuff I build in my spare time.
So instead of something like Lemmy or Matrix, I'd have something like BitTorrent or Tor, so nodes just add capacity instead of hosting specific content. You could configure your node(s) to pin specific content (e.g. for backups or latency), but your data would also be distributed to other peoples' computers.
This provides data redundancy, permanency of the service (no centralization whatsoever), and ease of scaling (every client could store and seed data), but comes with complexity. I think it's workable though.
Matrix is probably something worth looking at, at least from an intellectual standpoint, for you. It uses shared message state and a DAG, plus some fancy perfect forward secrecy (using Signal's Double Ratchet algorithm), which is at least interesting. There's also Tox (chat/protocol) if you want totally distributed chat.
Personally, I really like distributed models from a theoretical standpoint; but for end-user applications they pose very difficult constraints, we live in a world with ⪅50% publicly routed IP for one, they fundamentally require immense data replication, latency in peer-finding, bandwidth constraints, and ultimately sub-par UX. I thought IPFS with a way to pay nodes to pin content was a really neat idea, but hasn't caught on, for example. Not to discourage you, if you think it's workable then have at it, but I think it at least explains the current state of things.
Yeah, I'll have to look into Matrix's design. I know some of the basics, but the devil is in the details.
STUN servers bring access up dramatically, and there's always TURN for the stragglers. Things seem to be getting better with more and more people getting IPv6. I still don't have it though, and I'm also behind CGNAT, so I know the pain.
But I don't think bandwidth is really a problem. You should use similar bandwidth to a centralized service, provided the application does appropriate caching and there's some form of cooperative querying to reduce wire transfer.
I'm following Iroh development (started as a faster replacement for IPFS), and this video was particularly instructive for reducing wire overhead (fancy bloom filter application). I'm trying to build something like Lemmy with it, and I'm interested to see if a similar approach could work for something like Discord.
But yeah, given how much I'm struggling with it certainly explains why it's not very popular. I could build my project as a centralized service in much less time because synchronizing between clients is very straightforward, and something I do every day at work. But we already have that, and the Fediverse just takes that idea and connects nodes together, so I wouldn't be adding anything. However, I think longer term, something like this (probably not my specific project) is going to be really important, and I think it'll be "fast enough."
Yeah, I don't think that's going to work, because you'd have to pay a sufficient number of nodes such that one node losing interest won't screw you. And then you need some form of contract (smart contracts on a blockchain?) to ensure you are getting what you're paying for instead of just getting screwed by someone tossing the data and never telling you.
I'm trying to design my system such that everyone participates in some small way in supporting the network. If you're on a phone, you store a lot less than if you're on a PC, but more than if you're in a web browser. Maybe we could have a distributed fund for rewarding people for supplying more resources than necessary, idk, but I'm honestly not interested in the money part, I just want to build something cool that can't be taken down because someone got bought out, lost interest, or their government disconnected from the internet. In fact, my system should "just work" if you have people traveling w/ data between isolated networks, provided they have a list of relays within each network that they can connect to peers with.
RevoltChat?
Revolt Chat GitHub
Revolt Self-Hosted
Revolt Wiki
r/revoltchat
Although, I'm honestly surprised that there isn't a Fediverse equivalent/Alternative to Discord.
IK that platforms like Matrix exist, but what I'm talking about is a federated platform that's a clone of Discord.
interesting; is revolt self hosted too or is it just purely a discord alternative? it looks almost identical from screenshots.
I tried revolt a year or so ago and it was pretty rough