Applying Bulkheads and Backpressure Using MicroProfile (Video)
Check out this video to learn more about MicroProfile fault tolerance.
Join the DZone community and get the full member experience.Join For Free
I’ve recorded a video on how to implement bulkheads and backpressure using MicroProfile Fault Tolerance. The idea behind bulkheads is to split applications into several execution units that isolate functionality. In enterprise Java applications, this typically means defining multiple thread pools.
Applying backpressure to clients results in either adding information about the current pressure on the system to the client so that they will react to it, or to explicitly deny the request with a temporary error response.
In this video, I’ll demonstrate how MicroProfile Fault Tolerance enables us to apply the same principles, with even less configuration, by combining JAX-RS asynchronous resources, completable futures,
You’ll find the code in the GitHub project and further explanation in the MicroProfile Fault Tolerance specification. To read more on the topic of how to craft resilient enterprise applications, also have a look at the following article.
Published at DZone with permission of Sebastian Daschner, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.