0PricingLogin
WebSockets & Real-Time Systems with Spring · Lesson

Sending and Receiving STOMP Messages

Implement message producers and consumers using STOMP, including topic and user-specific destinations.

Intro to STOMP Messaging

In this lesson, we'll learn how to send messages from a client to our Spring server and how the server can then send messages back, either to a general topic or a specific user.

STOMP provides a clear, structured way to route these real-time messages, making our applications more predictable and easier to manage.

Producers and Consumers

Think of messaging in terms of producers and consumers:

  • Producers send messages (e.g., a chat client sending a message).
  • Consumers receive messages (e.g., another chat client displaying the message).

In a real-time app, clients often act as both!

All lessons in this course

  1. Introducing STOMP Protocol
  2. Configuring STOMP with Spring
  3. Sending and Receiving STOMP Messages
  4. Securing STOMP Endpoints with Spring Security
← Back to WebSockets & Real-Time Systems with Spring