February 2018
Intermediate to advanced
356 pages
9h 10m
English
The Hystrix Dashboard will help us to organize the Turbine stream information. As we saw in the previous section, the Turbine server sends information via SSE. It is done using JSON objects.
The Hystrix stream provides a dashboard for us. Let's create our Hystrix Dashboard microservice. The application is a standard Spring Boot Application annotated with @EnableHystrixDashboard. Let's add the dependency to enable it:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId></dependency>
Good, now we can create the main class for our application. The main class should look like this:
package springfive.airline.hystrix.ui;import org.springframework.boot.SpringApplication ...