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

Heartbeat detection method and system based on micro-service system, storage medium and electronic equipment

A heartbeat detection and storage medium technology, applied in transmission systems, electrical components, network data retrieval, etc., can solve problems such as network request waste, heartbeat detection on client and server sides, etc., to alleviate network resource consumption, reduce The effect of the number of heartbeat requests

Pending Publication Date: 2022-04-15
WUHAN FIBERHOME INFORMATION INTEGRATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This leads to the fact that the heartbeat detection between the client and the server can no longer be detected in the traditional way (traditional heartbeat detection usually only determines whether the service is available by testing whether the link of a bus is normal)
[0004] In addition, the traditional heartbeat detection mechanism often uses a timed polling thread to request background services, so that regardless of whether the network request is normal or not, this repeated timed polling mechanism will not stop, resulting in a waste of fixed network requests

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
  • Heartbeat detection method and system based on micro-service system, storage medium and electronic equipment
  • Heartbeat detection method and system based on micro-service system, storage medium and electronic equipment
  • Heartbeat detection method and system based on micro-service system, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings.

[0040] see figure 1 As shown, the embodiment of the present invention provides a heartbeat detection method, storage medium, electronic device and system based on a microservice system, which flexibly detects the functional modules of the microservice in the form of URL, and monitors the operation of each functional module at the same time , which ensures immediate feedback of abnormalities, reduces the resource consumption of heartbeat detection, and at the same time realizes the abnormality of a few functional modules in real time, and the microservices can also run normally.

[0041] In order to achieve the above-mentioned technical effects, the general idea of ​​the application is as follows:

[0042] Correspond each functional module in the microservice to at least one URL to obtain a query file, and record all functional modules that nee...

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 heartbeat detection method based on a micro-service system, a storage medium, electronic equipment and a system, and relates to the field of computer software, the method comprises the following steps: enabling each functional module in the micro-service to correspond to at least one URL to obtain a query file, and recording all functional modules needing to be detected to obtain a polling file; according to a heartbeat cycle, reading the function modules in the polling file one by one, searching the function modules in the query file and accessing the corresponding URLs; recording according to the response condition of the URL: if the normal response of the URL is obtained, recording the current access time information and non-disconnection of the URL; and if the obtained response of the URL is overtime, adding one to the number of times of reconnection, and trying to obtain the response of the URL again until the number of times of reconnection exceeds a preset number of times, and recording time information of current access of the URL and disconnection. According to the invention, the operation state of each service of the micro-service system can be fed back flexibly and timely, and front and back end request resource consumption is reduced.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a heartbeat detection method based on a microservice system, a storage medium, electronic equipment and a system. Background technique [0002] With the current development of the software industry, more and more software systems have formed a microservice system architecture. Under the new microservice system architecture of software development, the background services form independent running individuals and provide service modules with certain functions. Through microservices, functions can be implemented more flexibly, consume fewer resources, and be more efficient. [0003] However, existing microservices are replicated and deployed in separate processes, and their traditional single-point service exceptions will lead to abnormalities in the functional interfaces of this part, which in turn will lead to unavailability of software functions. However, after a single service...

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): H04L43/10G06F16/955G06F16/958H04L43/0811H04L43/0823
Inventor 刘言军
Owner WUHAN FIBERHOME INFORMATION INTEGRATION 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