1 option
Spring Boot 3. 0 Cookbook : Proven Recipes for Building Modern and Robust Java Web Applications with Spring Boot / Felip Miguel Puig.
- Format:
- Book
- Author/Creator:
- Puig, Felip Miguel, author.
- Language:
- English
- Subjects (All):
- Spring (Software framework).
- Application software--Development.
- Application software.
- Cloud computing.
- Physical Description:
- 1 online resource (426 pages)
- Edition:
- First edition.
- Place of Publication:
- Birmingham, England : Packt Publishing, [2024]
- Biography/History:
- Puig Felip Miguel: Felip works as a Principal Software Engineer and Cloud Expert at Dynatrace, integrating major cloud providers with Dynatrace. He is a former Microsoft FastTrack Engineer, Kubernetes, and Cloud Native specialist. As a subject matter expert in Java on Azure, he works closely with different product groups to provide the best experience in Azure for Java workloads. Before working in engineering, he spent more than 15 years in Microsoft Consulting Services, working closely with customers in various industries, providing real-world vision and pragmatism.
- Summary:
- 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 application production ready Monitor applications, identify bottlenecks, and optimize performance Purchase of the print or Kindle book includes a free PDF eBook Book Description In today's dynamic landscape, crafting robust and scalable Java web applications presents formidable challenges. Spring Boot emerges as the leading framework for web and microservices development, featuring a dynamic ecosystem and seamless integrations to address a spectrum of scenarios, from scaling apps on the cloud to deploying them to production. In this book, you'll explore its streamlined, convention-over-configuration approach, simplifying application development. You'll start by covering recipes showcasing Spring Boot's features. As you progress, you'll understand how it helps streamline application development while staying ahead of technology trends. The book helps you grasp concepts effectively, explores basic REST APIs, shows you how to escalate to advanced scenarios, and tackle common cloud application challenges like security, scalability, performance optimization, and automated deployments. Dedicated sections are designed to help you stay ahead of the curve with recipes that delve into the latest trends such as containers, observability, native images, DevOps, test automation, and microservices, ensuring your applications align with evolving industry standards. By the end of this book, you'll be able to build and automate the deployment of a scalable and high-performing distributed solution using Spring Boot 3. What you will learn Develop production-grade distributed applications Use various data repositories, including relational and NoSQL databases Implement modern testing techniques across different levels of application development Leveraging Testcontainers to validate all integration scenarios Integrate with services like Redis, PostgreSQL, MongoDB, and RabbitMQ Authenticate through OpenID providers Facilitate smooth migration from earlier Spring Boot versions Who this book is for This book is for Java developers who want to gain expertise in modern web development, architects designing complex systems, experienced Spring Boot developers and technology enthusiasts looking to stay up to date with the latest trends, and software engineers in need of practical solutions for everyday challenges. Hands-on experience with Java or Kotlin is required. Prior development experience on the cloud will be useful, but not necessary.
- 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
- Managing errors in a RESTful API
- Testing a RESTful API
- Using OpenAPI to document our RESTful API
- Consuming a RESTful API from another Spring Boot application using FeignClient
- Consuming a RESTful API from another Spring Boot application using RestClient
- Mocking a RESTful API
- Chapter 2: Securing Spring Boot Applications with OAuth2 and Single Sign-On
- Setting up Spring Authorization Server
- How to do it…
- How it works…
- There's more…
- Protecting a RESTful API using OAuth2
- Protecting a RESTful API using OAuth2 with different scopes
- Configuring an MVC application with OpenID authentication
- Logging in with Google Accounts
- See also.
- Integrating a RESTful API with a cloud IdP
- Chapter 3: Observability, Monitoring, and Application Management
- Adding Actuator to your application
- Creating a custom Actuator endpoint
- Using probes and creating a custom health check
- Implementing distributed tracing
- Accessing standard metrics
- Creating your own metrics
- Integrating your application with Prometheus and Grafana
- Changing the settings of a running application
- Chapter 4: Microservices with Spring Cloud
- Setting up Eureka Server
- Integrating an application in Eureka Server
- Scaling out the RESTful API
- Setting up Spring Cloud Gateway
- Testing Spring Cloud Gateway
- Setting up Spring Cloud Config
- Integrating distributed tracing with Spring Cloud
- Deploying Spring Boot Admin
- Getting ready.
- How to do it...
- Protecting Spring Cloud Gateway
- Part 2: Database Technologies
- Chapter 5: Data Persistence and Relational Database Integration with Spring Data
- Connecting your application to PostgreSQL
- Using JdbcClient to access the database
- Using an ORM to access the database
- Creating the database schema from our code
- PostgreSQL integration tests with Testcontainers
- Versioning and upgrading database schema
- Using JPQL
- Using Native Queries
- Updating Operations
- Using Dynamic Queries
- Using Transactions
- Chapter 6: Data Persistence and NoSQL Database Integration with Spring Data
- Connecting your application to MongoDB
- Using Testcontainers with MongoDB
- Data indexing and sharding in MongoDB
- How to do it.
- How it works...
- Using transactions in MongoDB
- Deploying a MongoDB cluster in Testcontainers
- Managing concurrency with MongoDB
- Connecting your application to Apache Cassandra
- Using Testcontainers with Cassandra
- Using Apache Cassandra templates
- Managing concurrency with Apache Cassandra
- Part 3: Application Optimization
- Chapter 7: Finding Bottlenecks and Optimizing Your Application
- Tuning the database connection pool
- Caching dependencies
- Using shared cache
- Using Testcontainers with Redis cache
- Creating a native image using Spring Boot
- Using GraalVM Tracing Agent to configure the native application
- Creating a native executable using Spring Boot
- Creating a native executable from a JAR
- Chapter 8: Spring Reactive and Spring Cloud Stream
- Creating a reactive RESTful API
- There's more.
- Using a reactive API client
- Testing reactive applications
- Connecting to PostgreSQL using Spring Data R2DBC
- Event-driven applications with Spring Cloud Stream and RabbitMQ
- Routing messages with Spring Cloud Stream and RabbitMQ
- Error handling with Spring Cloud Stream
- Part 4: Upgrading to Spring Boot 3 from Previous Versions
- Chapter 9: Upgrading from Spring Boot 2.x to Spring Boot 3.0
- Preparing the application
- Preparing Spring Security
- Detecting property changes
- Upgrade the project to Spring Boot 3
- How to do it
- Upgrading Spring Data
- Managing Actuator changes
- Managing web application changes
- Using OpenRewrite for migration automation
- Index
- Other Books You May Enjoy.
- Notes:
- Includes index.
- Description based on publisher supplied metadata and other sources.
- Description based on print version record.
- Other Format:
- Print version: Puig, Felip Miguel Spring Boot 3. 0 Cookbook
- ISBN:
- 9781835084908
- OCLC:
- 1440216019
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.