Skip to Content
Modern API Development with Spring 6 and Spring Boot 3 - Second Edition
book

Modern API Development with Spring 6 and Spring Boot 3 - Second Edition

by Sourabh Sharma
September 2023
Intermediate to advanced
494 pages
11h 33m
English
Packt Publishing
Content preview from Modern API Development with Spring 6 and Spring Boot 3 - Second Edition

5

Asynchronous API Design

So far, we have developed RESTful web services based on the imperative model, where calls are synchronous. What if you want to make code async and non-blocking? This is what we are going to do in this chapter. You’ll learn about asynchronous API design in this chapter, where calls are asynchronous and non-blocking. We’ll develop these APIs using Spring WebFlux, which is based on Project Reactor (https://projectreactor.io). Reactor is a library for building non-blocking apps on a Java virtual machine (JVM).

First, we’ll walk through the reactive programming fundamentals, and then we’ll migrate the existing e-commerce REST API (which we learned about in Chapter 4, Writing Business Logic for APIs) to an asynchronous (reactive) ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full Stack Development with Spring Boot 3 and React - Fourth Edition

Full Stack Development with Spring Boot 3 and React - Fourth Edition

Juha Hinkula

Publisher Resources

ISBN: 9781804613276Supplemental Content