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

Microservice architecture calling method and device, electronic equipment and storage medium

A technology of electronic equipment and micro-services, applied in the direction of electrical digital data processing, instruments, etc., can solve problems such as poor system reliability, high maintenance costs, and complex docking of multiple interfaces

Pending Publication Date: 2022-03-25
LINKDOC TECH BEIJING CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, with the gradual increase in the complexity of business logic, a single service can no longer meet the needs. It is often necessary to combine business logic and call multiple interfaces at the same time. Due to the increasing number of protocols, the connection between multiple interfaces is becoming more and more complicated. , the maintenance cost increases, and the reliability of the system deteriorates

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
  • Microservice architecture calling method and device, electronic equipment and storage medium
  • Microservice architecture calling method and device, electronic equipment and storage medium
  • Microservice architecture calling method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] figure 1 is a schematic flow diagram of the calling method of the microservice architecture provided by the embodiment of the present application, such as figure 1 As shown, the method includes:

[0056] S1, receiving protocol request information from external microservices;

[0057] S2. Obtain interface data according to the protocol request information;

[0058] S3, integrate the interface data according to the protocol request information, and obtain the initial response result;

[0059] S4, filtering the initial response result to obtain a response result;

[0060] S5, sending the response result to the external microservice.

[0061]Taking this embodiment as an example, by integrating the interface data, the interface data of multiple interfaces can be combined together, avoiding the complex procedures of multiple interface calls and combinations, reducing maintenance costs, and reducing the number of multiple interface combinations. The computing space requir...

Embodiment 2

[0089] In order to implement the method corresponding to the above-mentioned embodiment 1 to achieve corresponding functions and technical effects, a microservice architecture invocation device is provided below, such as figure 2 As shown, the device includes:

[0090] The receiving module 1 is used to receive protocol request information of external microservices;

[0091] A processing module 2, configured to obtain interface data according to the protocol request information;

[0092] The integration module 3 is used to integrate the interface data according to the protocol request information to obtain the initial response result;

[0093] The filtering module 4 is configured to filter the initial response result to obtain the response result;

[0094] The sending module 5 is used to send the response result to the external microservice.

[0095] In the above implementation process, by integrating the interface data, the interface data of multiple interfaces can be comb...

Embodiment 3

[0113] An embodiment of the present application provides an electronic device, including a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the calling method of the microservice architecture in Embodiment 1.

[0114] Optionally, the above-mentioned electronic device may be a server.

[0115] See image 3 , image 3It is a schematic diagram of the structure and composition of the electronic device provided in the embodiment of the present application. The electronic device may include a processor 31 , a communication interface 32 , a memory 33 and at least one communication bus 34 . Wherein, the communication bus 34 is used to realize the direct connection and communication of these components. Wherein, the communication interface 32 of the device in the embodiment of the present application is used for signaling or data communication with other node devices. The p...

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 embodiment of the invention provides a micro-service architecture calling method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving protocol request information of an external micro-service; obtaining interface data according to the protocol request information; integrating the interface data according to the protocol request information to obtain an initial response result; filtering the initial response result to obtain a response result; and sending a response result to the external micro-service. By implementing the embodiment of the invention, a plurality of interfaces with single functions can be freely combined together for calling, so that the calling of multiple interfaces is simplified, and the maintenance cost is reduced.

Description

technical field [0001] The present application relates to the technical field of interface invocation, in particular, to a microservice architecture invocation method, device, electronic equipment, and computer-readable storage medium. Background technique [0002] Under the background of frequent business changes and rapid development, the microservice architecture is a good solution. Its agility, flexibility, precision and elasticity bring convenience to business development. What follows is the more and more obvious disadvantages brought by the microservice architecture. Since the connection between microservices is mostly realized through service interface calls, the purpose is to decouple each module so that each service can be realized as much as possible. A single business to ensure its versatility and reusability. [0003] However, with the gradual increase in the complexity of business logic, a single service can no longer meet the needs. It is often necessary to c...

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): G06F13/10G06F13/12G06F13/42
CPCG06F13/102G06F13/124G06F13/42
Inventor 罗立刚常涛
Owner LINKDOC TECH BEIJING 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