Collection commands statistics with Hystrix

Now, we want to monitor our Hystrix commands. There are several commands in our microservices and probably the most used will be the OAuth token requester, because we always need to have a token to call any microservice in our system. Our Turbine server and Hystrix UI were configured at the beginning of this chapter and we will use these services right now.

Remember, we are using spring-cloud-netflix-hystrix-stream as an implementation to send Hystrix data to the Turbine server, as it performs better than HTTP and also brings some asynchronous characteristics.

Asynchronous calls can make the microservice more resilient. In this case, we will not use HTTP calls (synchronous calls) to register Hystrix ...

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.