Full Reactive Stack with Spring Boot, WebFlux and MongoDB
$7.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

The Leanpub 60 Day 100% Happiness Guarantee

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

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

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) and EPUB (for phones, tablets and 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. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub