This project contains source code to implement a Real Time Chat application using Spring Boot Websockets and DragonflyDB for Pub/Sub Architecture.
- Spring Boot with Websockets
- DragonflyDB for Pub/Sub Pattern
- Start DragonflyDB by running the below command
docker compose up -d
- Run 2 of the Chat application by running below command
mvn spring-boot:run -Dspring-boot.run.profiles=instance1
mvn spring-boot:run -Dspring-boot.run.profiles=instance2
- Open Multiple Browser windows, some with http://localhost:8080 and http://localhost:8081
- Enter your username and send messages, the chat messages will be broadcasted to all the users