Micro Spring Cloud Services Development: Getting Started, Advanced and source code analysis - 10.3 Spring Cloud Sleuth and Zipkin

10.3 Spring Cloud Sleuth 与 Zipkin

Zipkin is an open source distributed tracking system by Twitter Open Source company, it is committed to regular data collection services, in order to solve the delay problem micro-service architecture, including data collection, storage, search and show.

Zipkin Twitter is based on Google's distributed monitoring system Dapper (thesis) of open source to achieve, Zipkin application for tracking data link between the distributed services, analysis and processing delays, improve performance and help us locate the fault of the system.

Zipkin flowchart in FIG. 10-5:

Figure 10-5

Zipkin component to send data to the application referred Reporter. By one of several transmission (HTTP request, RabbitMQ, ActiveMQ, gRPC, Kafka, etc.) to send trace data to Zipkin collector, the collector will save the trace data to store. Later, API will provide data to the storage Zipkin UI to check the way.

Each service report to zipkin timing data, zipkin UI will generate a dependency diagram according to Zipkin by calling relations, showing how much each service tracking request through the system so that developers can easily through a Web front-end data collection and analysis, for example, each user service request processing times, etc., can be easily monitored bottlenecks present in the system.

Providing Zipkin pluggable data storage: In-Memory, MySql, Cassandra and Elasticsearch. The following example is stored as convenient and direct manner using In-Memory, production recommended Elasticsearch.

10.3.1 Zipkin deployment

Currently on the Internet in many blog wrote Spring Cloud Integration Zip

Guess you like

Origin blog.csdn.net/meteor_93/article/details/104674459