Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Micro-service full-link tracking method and micro-service architecture

A micro-service and full-link technology, applied in the field of micro-service architecture, can solve the problems of strong intrusion of link logs, return of traceId without link tracking, inconvenient expansion, etc., to reduce development and operation and maintenance costs, improve The effect of software service quality and improvement of development efficiency

Inactive Publication Date: 2019-07-30
必成汇(成都)科技有限公司
View PDF8 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a micro-service full-link tracking method, which solves the problem that the existing full-link tracking method starts link tracking from the inside of the micro-service and does not return the traceId of the link tracking to the request source, which makes it difficult to track the link from the request source. Accurately identify the corresponding link log problems and problems that are highly intrusive, require manual burial, and are limited to the http protocol and are not easy to expand from the massive link monitoring logs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Micro-service full-link tracking method and micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0020] Microservice full link tracking method, such as figure 1 As shown, the specific steps are as follows:

[0021] Step S1: Initiate a request, and the request source generates a traceId identifier. If it is the HTTP protocol, store the traceId in the Header part of the message header, and if it is the TCP protocol, put it in the Body part.

[0022] Step S2, thread 1 of microservice application A or other threads process this request, and judge whether the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a micro-service full-link tracking method and a micro-service architecture, and the method comprises the steps: firstly, enabling a request source to generate a trace Id identifier and initiate a request, and storing the trace Id identifier according to an adopted communication protocol; enabling the destination micro-service application receiving the request source to process the request, analyze and judge whether a traceId identifier exists in the message, and if not, regenerating the traceId identifier by adopting a snowflake algorithm and storing the traceId identifier in the current thread application context; when the target micro-service application outputs a log, obtaining a trace Id identifier through a thread context and outputting the trace Id identifierto the log, and then sending the log to a log memory; and finally, enabling the target micro-service application to return the trace Id identifier to the request source according to the request transmission path. The problems that at present, it is difficult to accurately find out corresponding link logs from mass link monitoring logs, invasiveness is high, manual point burying is needed, and expansion is inconvenient are solved.

Description

technical field [0001] The invention belongs to the field of communications, and relates to a microservice full-link tracking method, a microservice full-link tracking method, and a microservice architecture. Background technique [0002] In the microservice architecture, service monitoring and problem tracking and positioning are realized through full-link tracking combined with business logs. In the existing microservice full-link monitoring, the first internal service that receives an external request generates a globally unique tag, that is, traceId, and passes it between subsequent service calls. When each service prints a log, it outputs traceId and stores it , to track and view the stored logs. This implementation has the following flaws: the entire link monitoring, the external client does not have any participation, making it difficult to accurately find the corresponding link log from the massive link monitoring logs; between service calls, different technology st...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/54G06F11/30H04L29/06H04L29/08
CPCG06F9/547G06F11/3055G06F2209/544H04L67/02H04L69/16
Inventor 吴华段勇
Owner 必成汇(成都)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products