This is an example project of how to use Spring WebSocket integrated with Message Broker Active MQ to deal with the scenario where you scale out your Microservice and keep the WebSocket communication working between different Clients connected to your backend service.
Github:
Jump to the subject:
05:31 Starting codding
14:00 Adding WebSocket Support to the Project
25:00 First connecting test using WebSocket
36:00 WebSocket communication between two clients
39:00 Configuring to run a second instance to the WebService
41:00 Explaining the problem of not having a message broker configured
43:00 Starting configuring the Message Broker
49:00 Testing the WebSocket communication with two Microservice running and Message Broker configured
54:15 Detect connection and disconnection
Watch video Creating a Multi Service Spring WebSocket with Active MQ Message Broker online without registration, duration 01 hours 01 minute 57 second in high hd quality. This video was added by user Edu Costa Dev 17 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8 thousand once and liked it 203 people.