Advertisement

© 2020

Spring Boot Persistence Best Practices

Optimize Java Persistence Performance in Spring Boot Applications

Book

Table of contents

  1. Front Matter
    Pages i-xxx
  2. Anghel Leonard
    Pages 1-90
  3. Anghel Leonard
    Pages 91-133
  4. Anghel Leonard
    Pages 135-295
  5. Anghel Leonard
    Pages 297-355
  6. Anghel Leonard
    Pages 357-381
  7. Anghel Leonard
    Pages 383-432
  8. Anghel Leonard
    Pages 433-522
  9. Anghel Leonard
    Pages 523-539
  10. Anghel Leonard
    Pages 541-559
  11. Anghel Leonard
    Pages 561-573
  12. Anghel Leonard
    Pages 575-600
  13. Anghel Leonard
    Pages 601-608
  14. Anghel Leonard
    Pages 609-666
  15. Anghel Leonard
    Pages 667-852
  16. Anghel Leonard
    Pages 853-901
  17. Anghel Leonard
    Pages 903-924
  18. Back Matter
    Pages 925-1027

About this book

Introduction

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.

You will:

  • 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

Keywords

Spring Java persistence Hibernate ORM data access recipes cookbook developer recipes best practices code source

Authors and affiliations

  1. 1.BanestiRomania

About the authors

Anghel Leonard is a Chief Technology Strategist with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.

Bibliographic information

Industry Sectors
IT & Software
Telecommunications
Aerospace
Engineering
Finance, Business & Banking
Electronics