Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Micro-service request response viewing method and system based on nginx

A request-response and micro-service technology, applied in the direction of instrumentation, electrical digital data processing, computing, etc., can solve the problems of heavy workload for troubleshooting and locating specific URL requests, affecting program operation, and large amount of data, so as to improve development and diagnosis Efficiency, strong applicability, and convenient data query effect

Pending Publication Date: 2021-06-18
BEIJING CHANGYANG TECH CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. It is necessary to apply http input and output modules in microservices, print requests and return JSON data, which seriously affects the operation of the program;
[0005] 2. If you use tcpdump packet capture analysis on the API gateway machine, because the amount of requested data is large, the workload of troubleshooting and locating specific URL requests is huge

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 request response viewing method and system based on nginx
  • Micro-service request response viewing method and system based on nginx
  • Micro-service request response viewing method and system based on nginx

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0040] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0041] figure 1 An exemplary system architecture 100 of an nginx-based microservice request response checking method according to an embodiment of the present application is shown.

[0042] Such as figure 1 As shown, the system architecture 100 may include terminal devices...

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 provides a microservice request response viewing method and system based on nginx. The microservice request response viewing method comprises the steps that the format of an nginx log is self-defined through log_format of the nginx, lua is embedded into the nginx through lua-nginx-module, and configuration for obtaining response data returned by a back-end server is written in a coroutine of the lua; receiving the request data and the response data by the nginx, outputting the request data and the response data by utilizing the access_log of the nginx to generate the nginx log, and outputting the nginx log to a back-end server; the configuration supporting the syslog being written in nginx.conf of the nginx, and then outputting the nginx log to a syslog server; and storing the nginx log in the syslog server in the ElasticSearch, and checking the nginx log in the ElasticSearch. The method does not affect normal operation of online micro-service applications, facilitates data query, is high in applicability, is highly decoupled from back-end applications, and is easy for later maintenance and expansion. Developers can be helped to quickly analyze and diagnose the performance bottleneck under the distributed application architecture, and the development and diagnosis efficiency under the micro-service age is improved.

Description

technical field [0001] The invention relates to the technical field of industrial control, in particular to an nginx-based microservice request response checking method and system. Background technique [0002] With the continuous development of science and technology, B / S architecture has replaced C / S architecture as the mainstream model of software architecture. Management systems in various industries have begun to use B / S-based software architecture models for development. The application architecture is gradually transformed into a microservice architecture. API gateway is an architectural model that rises with microservices. It is used to solve the problem that microservices are too scattered and there is no unified entrance and exit for ingress traffic management. [0003] The existing microservice data viewing methods have the following disadvantages: [0004] 1. It is necessary to apply http input and output modules in microservices, print requests and return JSON ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3644G06F11/366
Inventor 邢红瑞
Owner BEIJING CHANGYANG TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products