WEBSOCKET: Websocket protocol is one of the ways to make your application handle real-time messages.
STOMP: Stomp is an acronym for Simple Text Oriented Messaging Protocol, for interacting with any STOMP message broker. It defines a handful of frame types that are mapped onto WebSockets frames, e.g., CONNECT, SUBSCRIBE, UNSUBSCRIBE, ACK, or SEND. On one hand, these commands are very handy to manage communication while, on the other, they allow us to implement solutions with more sophisticated features like message acknowledgment.
- Java - 11
- Maven - 3.x.x
- Spring Boot Cloud and Dependencies
- Eureka Server running on http://localhost:9888/
- Gateway Service running on http://localhost:9990/
- Chat Service running on http://localhost:9889/
1. STEP ONE: Clone the application
git clone https://github.com/joenan/chat-app.git
2. Build and run the app using maven
STEP TWO: Start the Eureka server
cd chat-app/server
mvn spring-boot:run
STEP THREE: Start the Gateway Service
cd chat-app/gateway-service
mvn spring-boot:run
STEP FOUR: Start the Chat Service
cd chat-app/chat-service
mvn spring-boot:run