Book description
This book is a collection of developer code recipes and best practices for persisting data using Spring, particularly Spring Boot. The book is structured around practical recipes, where each recipe discusses a performance case or performance-related case, and almost every recipe has one or more applications. Mainly, when we try to accomplish something (e.g., read some data from the database), there are several approaches to do it, and, in order to choose the best way, you have to know the implied trades-off from a performance perspective. You’ll see that in the end, all these penalties slow down the application. Besides presenting the arguments that favor a certain choice, the application is written in Spring Boot style which is quite different than plain Hibernate. Persistence is an important set of techniques and technologies for accessing and using data, and this book demonstrates that data is mobile regardless of specific applications and contexts. In Java development, persistence is a key factor in enterprise, ecommerce, cloud and other transaction-oriented applications.After reading and using this book, you'll have the fundamentals to apply these persistence solutions into your own mission-critical enterprise Java applications that you build using Spring.
What You Will Learn
- Shape *-to-many associations for best performances
- Effectively exploit Spring Projections (DTO)
- Learn best practices for batching inserts, updates and deletes
- Effectively fetch parent and association in a single SELECT
- Learn how to inspect Persistent Context content
- Dissect pagination techniques (offset and keyset)
- Handle queries, locking, schemas, Hibernate types, and more
Who This Book Is For
Any Spring and Spring Boot developer that wants to squeeze the persistencelayer performances.
Table of contents
- Cover
- Front Matter
- 1. Associations
- 2. Entities
- 3. Fetching
- 4. Batching
- 5. Collections
- 6. Connections and Transactions
- 7. Identifiers
- 8. Calculating Properties
- 9. Monitoring
- 10. Configuring DataSource and Connection Pool
- 11. Audit
- 12. Schemas
- 13. Pagination
- 14. Queries
- 15. Inheritance
- 16. Types and Hibernate Types
- Back Matter
Product information
- Title: Spring Boot Persistence Best Practices: Optimize Java Persistence Performance in Spring Boot Applications
- Author(s):
- Release date: April 2020
- Publisher(s): Apress
- ISBN: 9781484256268
You might also like
book
Java Persistence with Spring Data and Hibernate
Master Java persistence using the industry-leading tools Spring Data and Hibernate. In Java Persistence with Spring …
book
Practical Microservices Architectural Patterns: Event-Based Java Microservices with Spring Boot and Spring Cloud
Take your distributed applications to the next level and see what the reference architectures associated with …
video
Master Java Web Services and REST API with Spring Boot
This video course offers a comprehensive overview of developing both SOAP and RESTful web services using …
book
Spring Boot in Practice
Go beyond the basics with Spring Boot! This practical guide presents dozens of relevant scenarios in …