Alert System | library | peer-to-peer application framework

I am going to encode a project for pets, where some of the functions depend on the notification from one machine to another.

The workflow is as follows:

  • Person A writes some content
  • Person A presses a button or says something: “I am done”
  • Person B instantly receives an update

So, my first thought was to create a server and client and what it is! And this is what I am going to do, but I thought there must be something for this.

I know about XMPP, but I think it will be overkill (I don’t know, actually) I also heard about pubsubhubbub, which looks exactly what I need, but I'm not sure, as it is a peer-to-peer application.

I just need an easy way to get another peer “Hey, I'm done here” ... what is it, ping or something else.

Is there any peer-to-peer notification library | plugin | framework here?

+4
source share
1 answer

PubSubHubbub is especially suitable for communication between heterogeneous objects (different companies, different web applications ... etc.), but it should also work for what you are trying to build.

XMPP will also work very well for this use case, but I think it depends on the environment you want to use. If this is a web application, then XMPP can be quite difficult to solve (via BOSH or through websites).

If this is a simple web application that you want to create, you should probably look at a javascript based solution.

+1
source

Source: https://habr.com/ru/post/1399546/


All Articles