Close

Description

This book is a complete guide to designing and implementing scalable, secure, and modern APIs in a microservices architecture. Covering both synchronous communication via REST, GraphQL, and gRPC, as well as asynchronous communication with Kafka, it equips you with the tools to build efficient, reliable, and observable APIs.

Learn best practices for designing REST APIs, including HTTP verb usage and the API-first approach. Explore Spring Boot technologies like WebFlux and virtual threads to build scalable REST APIs. The book also demonstrates how to use Spring Cloud Stream for broker-agnostic asynchronous communication to build robust event-driven architectures.

To ensure observability, you will implement logging, monitoring, and tracing with Grafana, Prometheus, and Tempo. Security is key, and the book covers OAuth2 and OpenID Connect using Spring Security and Keycloak for centralized authentication. Finally, discover how to deploy microservices with Docker and Kubernetes, mastering containerization and orchestration.

Key Features

? Design scalable and observable APIs for cloud-native microservices.

? Master REST, GraphQL, gRPC, and event-driven API best practices.

? Secure APIs with OAuth2, OpenID Connect, and Spring Security.

What you will learn

? Design scalable, secure REST APIs with Spring Boot, WebFlux, and virtual threads.

? Implement GraphQL and gRPC for modern APIs.

? Master asynchronous communication with Kafka and Spring Cloud Stream.

? Achieve observability with logging, metrics, and distributed tracing.

? Deploy microservices on Docker and Kubernetes with ease.

Who this book is for

This book is for software developers and architects aiming to design scalable, secure, and modern APIs in a microservices architecture. Prior knowledge of Java and Spring Framework is recommended.

Table of Contents

1. Introduction to REST Architecture and API-first Approach

2. Reactive REST APIs with Spring WebFlux

3. Easily Scalable APIs with Virtual Threads

4. GraphQL with Spring Boot

5. Designing APIs with gRPC

6. Asynchronous APIs with Spring Cloud Stream and Apache Kafka

7. Centralized Security with Spring Cloud Gateway

8. Observability and Monitoring

9. Deploying Applications on Kubernetes with Kind

Spring Boot 3 API Mastery

QRcode

Write scalable, reactive, and secure APIs for microservices with Spring Boot 3 and Java 21 (English Edition)

DescriptionThis book is a complete guide to designing and implementing scalable, secure, and modern APIs in a microservices architecture. Covering both synchronous communication via REST, GraphQL, and gRPC, as well as asynchronous communication with Kafka, it equips you with the tools to build effic

See all description...

Author(s): Racca, Vincenzo

Publisher: BPB Publications

Pub. Date: 2025

pages: 402

Language: lang_en

ISBN: 978-93-6589-808-8

DescriptionThis book is a complete guide to designing and implementing scalable, secure, and modern APIs in a microservices architecture. Covering both synchronous communication via REST, GraphQL, and gRPC, as well as asynchronous communication with Kafka, it equips you with the tools to build effic

Description

This book is a complete guide to designing and implementing scalable, secure, and modern APIs in a microservices architecture. Covering both synchronous communication via REST, GraphQL, and gRPC, as well as asynchronous communication with Kafka, it equips you with the tools to build efficient, reliable, and observable APIs.

Learn best practices for designing REST APIs, including HTTP verb usage and the API-first approach. Explore Spring Boot technologies like WebFlux and virtual threads to build scalable REST APIs. The book also demonstrates how to use Spring Cloud Stream for broker-agnostic asynchronous communication to build robust event-driven architectures.

To ensure observability, you will implement logging, monitoring, and tracing with Grafana, Prometheus, and Tempo. Security is key, and the book covers OAuth2 and OpenID Connect using Spring Security and Keycloak for centralized authentication. Finally, discover how to deploy microservices with Docker and Kubernetes, mastering containerization and orchestration.

Key Features

? Design scalable and observable APIs for cloud-native microservices.

? Master REST, GraphQL, gRPC, and event-driven API best practices.

? Secure APIs with OAuth2, OpenID Connect, and Spring Security.

What you will learn

? Design scalable, secure REST APIs with Spring Boot, WebFlux, and virtual threads.

? Implement GraphQL and gRPC for modern APIs.

? Master asynchronous communication with Kafka and Spring Cloud Stream.

? Achieve observability with logging, metrics, and distributed tracing.

? Deploy microservices on Docker and Kubernetes with ease.

Who this book is for

This book is for software developers and architects aiming to design scalable, secure, and modern APIs in a microservices architecture. Prior knowledge of Java and Spring Framework is recommended.

Table of Contents

1. Introduction to REST Architecture and API-first Approach

2. Reactive REST APIs with Spring WebFlux

3. Easily Scalable APIs with Virtual Threads

4. GraphQL with Spring Boot

5. Designing APIs with gRPC

6. Asynchronous APIs with Spring Cloud Stream and Apache Kafka

7. Centralized Security with Spring Cloud Gateway

8. Observability and Monitoring

9. Deploying Applications on Kubernetes with Kind

See all description...