Full Reactive Stack with Spring Boot, WebFlux and MongoDB
$4.99
Minimum price
$9.99
Suggested price

Full Reactive Stack with Spring Boot, WebFlux and MongoDB

About the Book

Backend

You will learn how to develop Reactive Web endpoints using Spring Reactor and Spring WebFlux, the alternative to MVC. To make it full-reactive, you will use MongoDB since it provides a reactive driver integrated with Spring Data.

Frontend

This book shows how to build a simple Angular application (since the book focuses more on the backend) that uses RxJS and EventSource to connect to the reactive flow provided by the backend (supported by WebSockets).

Docker

To make easier the build and deploy of the application, the source code includes docker-compose files that you can use to run the complete reactive stack.

Benchmark and WebFlux vs. MVC analysis

The last chapter is focused on comparing MVC with WebFlux in a practical way, and analysing what are the pros/cons depending on your use case.

Source Code

All the source code related to this book is available on GitHub.

Note: This mini-book is based on the posts Full Reactive Stack Guide, but their format has been adapted so it's easier to read as a complete guide.

About the Author

Moisés Macero
Moisés Macero

I'm developing software since I was a kid, when my parents bought me a Spectrum ZX (in which I also played great videogames...). I've worked at startups, where a developer is a real full-stack developer (from frontend to backend, from building to maintaining, from the cave to customer-facing meetings) and also at big companies, where stability and keeping high product quality standards is a must. Along my career I have been involved usually in development, design and architecture, for small and huge projects. Worked in waterfall and agile environments.

Now I'm working at a Dutch company as Solutions Architect for a project based on microservices. I like keeping ways of working as practical as possible but, at the same time, producing proper documentation and sharing knowledge.

I'm the author of the blog about software development The Practical Developer: https://thepracticaldeveloper.com and the book Learn Microservices with Spring Boot.

Table of Contents

  • Chapter 1: The Reactive Web
    • Reactive Web Patterns
    • WebFlux and Project Reactor
    • Reactive Web: Advantages
    • Is Non-Blocking the same as Reactive?
    • The application
  • Chapter 2: Full Reactive Stack Backend
    • Project Reactor – Main Features
    • WebFlux – Main Features
    • Creating the application
    • Repository Layer
    • The Reactive Controller
    • The Blocking Controller and Repository
    • Loading data into MongoDB with an ApplicationRunner
    • Running the backend
    • Playing with Reactive and Classic endpoints
  • Chapter 3: Connecting Angular with the WebFlux Backend
    • Goal
    • Why Angular?
    • Creating the Angular application
    • UI Application Overview
    • The Angular Reactive service
    • The Angular Components – Quick Overview
    • Running the frontend
  • Chapter 4: Conclusions
    • WebFlux vs. Blocking (MVC): user experience
    • WebFlux vs. Blocking (MVC): performance
    • WebFlux vs. Blocking (MVC): ease of development
    • Suitability
    • Testing
    • Conclusions
  • Appendix: Running the application in Docker
    • Generate the build artifacts
    • Build and run the Spring Boot app in Docker
    • Build the Angular app and run it in Docker
    • Putting everything together with Docker Compose

Authors have earned$9,681,050writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub