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...