Guaranteed Free WebSocket Delivery

I have some kind of system that constantly sends messages from the Java frontend to the web frontend. I am using Openfire with XMPP as the transport system. But XMPP is just a transport protocol, it does not guarantee delivery if the Internet connection does not work. Therefore, at first I decided to switch to a lighter transport protocol - WebSocket. And again, WebSocket is just a transport protocol. Is there a ready-made and free message delivery system based on WebSockets that support guaranteed message delivery. You just send a message with clientId and this infrastructure will do the rest. If the user is disconnected or the Internet connection is not working. I mean, the structure will take care of the delivery.

+5
source share
1 answer

I would take responsibility for ensuring the delivery of messages from your choice of transport and to some message queuing system such as rabbitMQ or the like - this is what their set of functions depends on:

"Queues can be mirrored on multiple computers in a cluster, ensuring that even in the event of a hardware failure, your messages will be safe."

0
source

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


All Articles