Hi:
I'
m looking for some insight/advice on synchronizing data over XMPP. I've never developed anything for XMPP before so excuse me if some of my questions seem ridiculous.
Basically, what I have is a decentralized social network. Each person has it's own Web site (or server) with a unique URI (one domain could host many servers). Each of these servers can have many clients. E.g., a desktop application, mobile application, etc.
What I would like to accomplish is near real-time synchronization/communication between client and server, e.g., I update something on my desktop application, I see it change on my Web site.
My server and client code is Python. So, I would like to make use of SleekXMPP if possible (it's license seems to have changed to MIT).
I was thinking, and here is where I need advice, that each server would register an account at a dedicated XMPP server, e.g.,
[email protected]. and then I could use different resources for clients
[email protected]/client1,
[email protected]/client2, etc. If anyone can register any username, then maybe I also need some intermediate service (since it's decentralized, i'
m not sure how to control registrations). Another option, I guess, is that each server runs it's own xmpp server.
Assuming, that was all worked out, if I want to broadcast messages to all my resources (except the sending one), how do I do that? Do I have to subscribe to myself?
This also seems like a good candidate for publish-subscribe, let me know if you think that could work and what the design/flow of that process would be.
thanks :)