Adding the first cloud-native feature – resilience
Adding resilience to your system is not very challenging from a technical point of view. The real challenge lies in deciding where to add resilience to your code and what type of resilience to add. To add resilience to our code, we will use MicroProfile as it complements a Jakarta EE application very nicely.
You can add MicroProfile by adding the following entry to your pom.xml
file:
<dependency> <groupId>org.eclipse.microprofile</groupId> <artifactId>microprofile</artifactId> <version>5.0</version> <type>pom</type> <scope>provided</scope> </dependency>
By adding this xml to your pom.xml
file, you can start using MicroProfile in your application.
Next, perform the standard steps for building and starting your application. They should not be a surprise to...