Hands-On Enterprise Java Microservices with Eclipse MicroProfile
by Cesar Saavedra, Heiko W. Rupp, Jeff Mesnil, Pavol Loffay, Antoine Sabot-Durand, Scott Stark
Summary
In this chapter, we learned how to use MicroProfile Config to configure MicroProfile applications and MicroProfile Fault Tolerance to make them more resilient.
In MicroProfile Config, the sources of the configuration can be many; some values come from properties files and others from system properties or environment variables, but they are all accessed consistently from the Java application. The values will likely differ according to the deployment environment (for example, testing and production) but that is transparent in the application code.
MicroProfile Fault Tolerance helps to prevent failure in applications by applying specific policies in the code. It comes with default behavior but can be configured thanks to MicroProfile ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access