Sitemap
Bartłomiej Żyliński

Bartłomiej Żyliński

💻 Senior Software Engineer @Box ✍️ Blogger @PaskSoftware 🌐 Distributed Systems 🧠 System Design 🛠 Advocate for Simple and Robust Systems 🤝 Let's Connect

Member-only story

Spring Boot WebSocket — Building Multichannel Chat In Java

In this text I will build Spring Boot WebSocket chat with multichannel support. A lot of Spring Web Flux and reactive programming included.

7 min readAug 11, 2025

--

As you may have already guessed from the title the, topic for today will be Spring Boot WebSockets. Some time ago I provided an example of WebSocket chat based on Akka toolkit libraries. However, this chat will have somewhat more features, and a quite different design.

Press enter or click to view image in full size

I will skip some parts so as not to duplicate too much content from the previous article. Here you can find a more in depth intro into WebSockets. Please note that all the code that’s used in this article is also available in the GitHub repository.

Spring Boot WebSocket — Tools Used

Let’s start the technical part of this text with a description of tools that will be further used to implement the whole application. As I cannot fully grasp how to build real WebSocket API with classic Spring — STOMP overlay. I decided to go for Spring WebFlux and make everything reactive.

  • Spring Boot — no modern Java app based on Spring can exist without Spring Boot, all the autoconfiguration is priceless.

--

--

Bartłomiej Żyliński
Bartłomiej Żyliński

Written by Bartłomiej Żyliński

💻 Senior Software Engineer @Box ✍️ Blogger @PaskSoftware 🌐 Distributed Systems 🧠 System Design 🛠 Advocate for Simple and Robust Systems 🤝 Let's Connect