Preface¶
When Spring introduced its reactive stack in the Spring 5 era, I followed it closely and published a long article — Reactive Programming with Spring 5 — to introduce the new reactive features (see the original article). This site gathers example projects and step-by-step guides that have since been updated for Spring Framework 7 and Spring Boot 4. Example code is available at https://github.com/hantsy/spring-reactive-sample.
Over time, parts of the original article became outdated and the example code needed refreshing to match the latest Spring and Boot releases. To address this, the material has been restructured into a short, hands-on book while the examples were updated in parallel.
Audience¶
This is a hands-on guide to the Spring Reactive Web stack (Spring WebFlux).
It is not a comprehensive reference for the entire Spring framework. If you are new to Spring, consider reading Spring in Action or Pro Spring first.
I assume you have some experience developing Spring applications and are comfortable with modern Java (Java 17 or 21 preferred).
Example Codes¶
When introducing new concepts, I believe that one example exceeds one thousand words. For reactive features across Spring and its ecosystem — including Spring Data, Spring Security, Spring Session, and more — the book uses simple, runnable examples to demonstrate each idea.
All example codes used in this book are available in the Github repository: hantsy/spring-reactive-sample. In the README file, I listed all examples clearly with a simple description, you can select any of them and practice yourself.
Contribution¶
Any form of contribution is welcome.
Please file an issue if there is an error found in the sample codes or some content of the book itself, or send a request for that is missing in the book.
If my work is helpful, please help me to spread it out to your circles or buy me a coffee.:)
About Me¶
I am a self-employed freelancer from China with about 20 years of software engineering experience. If you need some development and technical consulting service, please drop me an email, my email address is hantsy@gmail.com.
Enjoy reading!