Reputation: 11
I want to build a chat application using Pub/Sub where messages are exchanged asynchronously between two users in real-time, similar to messaging applications like WhatsApp.
One solution is to use WebSockets to push messages to the client in real-time as soon as they are pulled from the subscription. However, I want a solution that does not rely on WebSockets.
For example, if a user in the messaging app is offline, messages should only be pulled and delivered when the user comes online. Can you suggest an alternative approach to achieve this functionality?
I am using the spring boot so give solution according to that
i am expecting the solution other than websockets and give me all the details for implementation of that solution.
Upvotes: 0
Views: 22