Spring Boot 3. 0 Cookbook Proven Recipes for Building Modern and Robust Java Web Applications with Spring Boot

Tackle the complexities of modern web applications by understanding the uses of Spring Boot's cloud design patterns to build scalable and resilient applications Key Features Discover practical recipes for real cloud-scale application challenges Explore what Spring Boot offers to make your appli...

Full description

Bibliographic Details
Other Authors: Puig, Felip Miguel, author (author)
Format: eBook
Language:Inglés
Published: Birmingham, England : Packt Publishing [2024]
Edition:First edition
Subjects:
See on Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009840468606719
Table of Contents:
  • Cover
  • Title Page
  • Copyright and Credits
  • Dedications
  • Contributors
  • Table of Contents
  • Preface
  • Part 1: Web Applications and Microservices
  • Chapter 1: Building RESTful APIs
  • Technical requirements
  • Creating a RESTful API
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Defining responses and the data model exposed by the API
  • Getting ready
  • How to do it...
  • How it works...
  • Managing errors in a RESTful API
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Testing a RESTful API
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using OpenAPI to document our RESTful API
  • Getting ready
  • How to do it...
  • How it works...
  • Consuming a RESTful API from another Spring Boot application using FeignClient
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Consuming a RESTful API from another Spring Boot application using RestClient
  • Getting ready
  • How to do it...
  • How it works...
  • Mocking a RESTful API
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Chapter 2: Securing Spring Boot Applications with OAuth2 and Single Sign-On
  • Technical requirements
  • Setting up Spring Authorization Server
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Protecting a RESTful API using OAuth2
  • Getting ready
  • How to do it…
  • How it works…
  • Protecting a RESTful API using OAuth2 with different scopes
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Configuring an MVC application with OpenID authentication
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Logging in with Google Accounts
  • Getting ready
  • How to do it…
  • How it works…
  • See also.
  • Integrating a RESTful API with a cloud IdP
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Chapter 3: Observability, Monitoring, and Application Management
  • Technical requirements
  • Adding Actuator to your application
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • See also
  • Creating a custom Actuator endpoint
  • Getting ready
  • How to do it…
  • How it works…
  • Using probes and creating a custom health check
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Implementing distributed tracing
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Accessing standard metrics
  • Getting ready
  • How to do it…
  • How it works…
  • See also
  • Creating your own metrics
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Integrating your application with Prometheus and Grafana
  • Getting ready
  • How to do it…
  • How it works…
  • Changing the settings of a running application
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Chapter 4: Microservices with Spring Cloud
  • Technical requirements
  • Setting up Eureka Server
  • Getting ready
  • How to do it...
  • How it works...
  • Integrating an application in Eureka Server
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Scaling out the RESTful API
  • Getting ready
  • How to do it...
  • How it works...
  • Setting up Spring Cloud Gateway
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Testing Spring Cloud Gateway
  • Getting ready
  • How to do it...
  • How it works...
  • Setting up Spring Cloud Config
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Integrating distributed tracing with Spring Cloud
  • Getting ready
  • How to do it...
  • How it works...
  • Deploying Spring Boot Admin
  • Getting ready.
  • How to do it...
  • How it works...
  • Protecting Spring Cloud Gateway
  • Getting ready
  • How to do it...
  • How it works...
  • Part 2: Database Technologies
  • Chapter 5: Data Persistence and Relational Database Integration with Spring Data
  • Technical requirements
  • Connecting your application to PostgreSQL
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Using JdbcClient to access the database
  • Getting ready
  • How to do it...
  • How it works...
  • Using an ORM to access the database
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Creating the database schema from our code
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • PostgreSQL integration tests with Testcontainers
  • Getting ready
  • How to do it...
  • How it works...
  • Versioning and upgrading database schema
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using JPQL
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Using Native Queries
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Updating Operations
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Using Dynamic Queries
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using Transactions
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 6: Data Persistence and NoSQL Database Integration with Spring Data
  • Technical requirements
  • Connecting your application to MongoDB
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Using Testcontainers with MongoDB
  • Getting ready
  • How to do it...
  • How it works...
  • Data indexing and sharding in MongoDB
  • Getting ready
  • How to do it.
  • How it works...
  • There's more...
  • Using transactions in MongoDB
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Deploying a MongoDB cluster in Testcontainers
  • Getting ready
  • How to do it...
  • How it works...
  • Managing concurrency with MongoDB
  • Getting ready
  • How to do it...
  • How it works...
  • Connecting your application to Apache Cassandra
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Using Testcontainers with Cassandra
  • Getting ready
  • How to do it...
  • How it works...
  • Using Apache Cassandra templates
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Managing concurrency with Apache Cassandra
  • Getting ready
  • How to do it...
  • How it works...
  • Part 3: Application Optimization
  • Chapter 7: Finding Bottlenecks and Optimizing Your Application
  • Technical requirements
  • Tuning the database connection pool
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Caching dependencies
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Using shared cache
  • Getting ready
  • How to do it…
  • How it works…
  • Using Testcontainers with Redis cache
  • Getting ready
  • How to do it…
  • How it works…
  • Creating a native image using Spring Boot
  • Getting ready
  • How to do it…
  • How it works…
  • Using GraalVM Tracing Agent to configure the native application
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Creating a native executable using Spring Boot
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Creating a native executable from a JAR
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 8: Spring Reactive and Spring Cloud Stream
  • Technical requirements
  • Creating a reactive RESTful API
  • Getting ready
  • How to do it...
  • How it works...
  • There's more.
  • Using a reactive API client
  • Getting ready
  • How to do it...
  • How it works...
  • Testing reactive applications
  • Getting ready
  • How to do it...
  • How it works...
  • Connecting to PostgreSQL using Spring Data R2DBC
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Event-driven applications with Spring Cloud Stream and RabbitMQ
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Routing messages with Spring Cloud Stream and RabbitMQ
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Error handling with Spring Cloud Stream
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Part 4: Upgrading to Spring Boot 3 from Previous Versions
  • Chapter 9: Upgrading from Spring Boot 2.x to Spring Boot 3.0
  • Technical requirements
  • Preparing the application
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Preparing Spring Security
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Detecting property changes
  • Getting ready
  • How to do it...
  • How it works...
  • Upgrade the project to Spring Boot 3
  • Getting ready
  • How to do it
  • How it works...
  • Upgrading Spring Data
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Managing Actuator changes
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Managing web application changes
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using OpenRewrite for migration automation
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Index
  • Other Books You May Enjoy.