Using MicroProfile features in Stock Trader
Let's start with a view of which Stock Trader microservices use which MicroProfile features. Note that there are two ways a microservice can benefit from a given MicroProfile feature – implicitly or explicitly:
- In the implicit case, just listing the feature in your
server.xml
file gives you value; for example, you can obtain default implementations for readiness and liveness probes just by enabling thempHealth-3.1
feature. - In the explicit case, you directly code to the APIs offered by the feature, such as implementing your own custom logic for whether your microservice is healthy by coding to classes in the
org.eclipse.microprofile.health
package from within your own Java classes.
In the following table, we can see which microservices use which feature, with the not sign meaning not at all, the dash meaning implicit usage, and the checkmark meaning explicit usage: