Any idea what kind of server we’d need to handle 40M users if it’s just text chat (no files or audio)?
Modern messaging: Running your own XMPP server
11–20 of 156 posts
Re: Modern messaging: Running your own XMPP server
#12the only problem, as usual, is the network effect
what about - single point of failure of rooms (server creating the chat room) - media access via 3rd party servers - gossiping encrypted message access across multiple devices - encrypted audio-visual (group) communication - good clients for iOS - reliable server-side storage of messages (of all(!) chats) - realistic verification concept for e2ee with multiple devices
As others have pointed out, for iOS Monal is good.
Re: Modern messaging: Running your own XMPP server
#13the only problem, as usual, is the network effect
Maybe for friends and family? But then, if their phone might be compromised by the state... And telling friends and family they need to setup a Jabber connection to talk you will make you "That guy/girl who...". And if the idea spreads, then talking to n people requires n accounts on n servers. At least Pidgin (last time I used it, which was last decade) supports such a configuration. I wonder if the mobile apps can…
No, it doesn't.
XMPP is like E-Mail and Matrix a protocol which supports federation, i.e. a protocol which specifies how many service providers can cooperate, specifically forward messages to other service providers to reach their users.
Re: Modern messaging: Running your own XMPP server
#14Re: Modern messaging: Running your own XMPP server
#15Any idea what kind of server we’d need to handle 40M users if it’s just text chat (no files or audio)?
If you’re running a single machine, you’ll be limited by the number of available ports. It’s a TCP limitation and nothing to do with XMPP. You’d need a cluster of XMPP servers to handle 40M users. Even for just text. Port limits are port limits.
Re: Modern messaging: Running your own XMPP server
#16Any idea what kind of server we’d need to handle 40M users if it’s just text chat (no files or audio)?
If you’re running a single machine, you’ll be limited by the number of available ports. It’s a TCP limitation and nothing to do with XMPP. You’d need a cluster of XMPP servers to handle 40M users. Even for just text. Port limits are port limits.
The real limits are going to be on hardware. If we want 40M concurrent connections, the server will need a few hundred to a few thousand gigabytes of memory.
Re: Modern messaging: Running your own XMPP server
#17There is an nginx-xmpp to proxy it, but it is archived. https://github.com/robn/nginx-xmpp
For that reason http based protocol just seems much easier on the network or something that can be easily reverse proxied without extensions will be easier to self-host and have wilder internet connection accessibility.
Re: Modern messaging: Running your own XMPP server
#18Any idea what kind of server we’d need to handle 40M users if it’s just text chat (no files or audio)?
I'm not necessarily endorsing this, just giving it to you as some first stabs at answers and some ways to follow up.
If there's anyone reading this from the ejabberd project, note that the link to this on your front page under "Massively Scalable" is completely broken; that links to "blog.process-one.net" but that domain is completely dead, so it doesn't redirect to the link I gave above. (It's also part of why I posted this; my post here is not a "just read these docs" because I had to do non-trivial work to find them.) I had to pull that out of archive.org. Should probably check for any other links to that domain too.
Re: Modern messaging: Running your own XMPP server
#19the only problem, as usual, is the network effect
Maybe for friends and family? But then, if their phone might be compromised by the state... And telling friends and family they need to setup a Jabber connection to talk you will make you "That guy/girl who...". And if the idea spreads, then talking to n people requires n accounts on n servers. At least Pidgin (last time I used it, which was last decade) supports such a configuration. I wonder if the mobile apps can…
Re: Modern messaging: Running your own XMPP server
#20Last time I tried this I couldn’t even find an iOS client that supported reactions. Hate on the complexity of Matrix all you like, but at least when you ask your family to use it, they get a modern experience and don’t feel like they’re giving up everything vs every other messenger they are used to.
There's also some weird behavior with how E2EE works, which is causing me problems in group chats. Initially it worked, but now people are unable to read some messages with errors like "this message was not encrypted for this device"
FWIW, everything works great on Android with the Conversations app, and also I admit I haven't really RTFM'd too much so it may be my fault as a lazy admin.
Edit: this is with ejabberd btw