Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Persistence Best Practices for Java Applications
  • Table Of Contents Toc
  • Feedback & Rating feedback
Persistence Best Practices for Java Applications

Persistence Best Practices for Java Applications

By : Otavio Santana, Karina Varela
4.9 (9)
close
close
Persistence Best Practices for Java Applications

Persistence Best Practices for Java Applications

4.9 (9)
By: Otavio Santana, Karina Varela

Overview of this book

Having a solid software architecture breathes life into tech solutions. In the early stages of an application’s development, critical decisions need to be made, such as whether to go for microservices, a monolithic architecture, the event-driven approach, or containerization. In Java contexts, frameworks and runtimes also need to be defi ned. But one aspect is often overlooked – the persistence layer – which plays a vital role similar to that of data stores in modern cloud-native solutions. To optimize applications and data stores, a holistic understanding of best practices, technologies, and existing approaches is crucial. This book presents well-established patterns and standards that can be used in Java solutions, with valuable insights into the pros and cons of trending technologies and frameworks used in cloud-native microservices, alongside good Java coding practices. As you progress, you’ll confront the challenges of cloud adoption head-on, particularly those tied to the growing need for cost reduction through stack modernization. Within these pages, you’ll discover application modernization strategies and learn how enterprise data integration patterns and event-driven architectures enable smooth modernization processes with low-to-zero impact on the existing legacy stack.
Table of Contents (18 chapters)
close
close
1
Part 1: Persistence in Cloud Computing – Storing and Managing Data in Modern Software Architecture
6
Part 2: Jakarta EE, MicroProfile, Modern Persistence Technologies, and Their Trade-Offs
9
Chapter 7: The Missing Guide for jOOQ Adoption
11
Part 3: Architectural Perspective over Persistence

Using in-memory data storage with Jakarta EE and MicroProfile

Thanks to the engines in the MicroProfile and Jakarta EE specifications, we can very easily choose which one best fits the application’s goal. In Chapter 5, we discussed both specifications and why they are essential for the Java community:

  1. To get started, you can access the MicroProfile website (https://start.microprofile.io/) and the starter project. It works just like the Spring initializer, for Spring-based applications.
  2. Once on the page, confirm that MicroProfile version 3.3 is available, and choose one of the options. Make sure to check the Config checkbox in order to save some time and get some auto-generated basic files.
  3. For this example, we’ll use the Helidon runtime.
Figure 8.3 – MicroProfile starter website

Figure 8.3 – MicroProfile starter website

  1. Next, all we must do is add the Eclipse Store dependency to the pom.xml application, as the Eclipse MicroProfile implementation already...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY