Making a cloud application resilient using MicroProfile Fault tolerance
Why do you need to care about resilience? For mission-critical applications, a very brief downtime might cause you a huge penalty. Besides, your customer satisfaction will decrease if your applications are too fragile and aren't resilient. Therefore, you should consider building resilient applications, which means they will function under all kinds of situations with zero downtime. MicroProfile Fault Tolerance (source code at https://github.com/eclipse/microprofile-fault-tolerance) introduces several resilience policies that can help you build a resilient application. These policies can be applied to CDI beans. It also provides a way to execute method invocations asynchronously via the annotation @Asynchronous
.
@Asynchronous
The annotation @Asynchronous
can be placed on a CDI bean class or the methods of a CDI bean class. If placed on a class, it means all of the methods declared on this class will...