Live data from Hacker News

Ask HN: XMPP/Jabber self hosting

news.ycombinator.com

41–48 of 48 posts

Re: Ask HN: XMPP/Jabber self hosting

#41

I have also been researching this topic for a while. I was using Google hangouts for a while but lately it seems to be dropping messages. Tried Skype next but it will only keep message history on the cloud for 30 days. Next evaluated Facebook. It works quite well but I want to host my own on a VPS. The top three alternatives seem to be prosody, ejabberd and openfire. I was planning to use ejabberd but the issue I hav…

There's really no good way around this for iOS - it's really a limitation of how push notifications work vs. how XMPP is designed. You'll find that things like IRC clients have the exact same problems on iOS (similar problem space, similar protocol that expects constant connections).

If you want to do this for real, what you end up doing is implementing your own server backend that receives XMPP messages and then sends out push notifications to a mobile client. Generally a pain in the rear, but do-able. Getting your own iOS developer key & dealing with app store approval for stuff like this is probably the hardest part (for shops that aren't already doing mobile development). There are 3rd-party services that help bridge this gap: examples are https://pushover.net/ or https://boxcar.io/

If you're okay with a hosted solution and don't really want to deal with development or deploying a XMPP solution yourself, many of our clients have had good success with Slack (https://slack.com/)

Re: Ask HN: XMPP/Jabber self hosting

#45
And how do you solve the problem of reliably delivering messages over XMPP?

For ex, if I switch from 3G to Wifi on my mobile (or just loose connectivity) the server still thinks I'm online and will send messages over the TCP socket (that hasn't timeouted yet).

Re: Ask HN: XMPP/Jabber self hosting

#46
I would say you go with MoongooseIM. Its a much optimized fork of ejabberd with some things done in a much nicer way ... It support redis session backend , encrypted password, xmmp over websockets to name a few.

Disclaimer:- I personally work on chat server and personally prefer moongooseim to be one of the best available right now.

Re: Ask HN: XMPP/Jabber self hosting

#47
I've been thinking about hosting my own XMPP server as well. Does anyone have any recommendations on the most cost-effective place to host it? Since it's for a small group of friends I'd imagine it wouldn't need anything too resource intensive. Perhaps something like Linode or DO?

Re: Ask HN: XMPP/Jabber self hosting

#48
Depends on what you are looking for in terms of features. If you want to build a global cluster, give ejabberd or its forks a shot. I was running it in the past and it was just running without any problems.

I picked it because of its clustering features and ldap support.

Post reply on HN