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

Call method and device for background service in micro-service architecture

A background service and service call technology, applied in the computer field, can solve the problems of resource investment cost and maintenance complexity, which cannot be accepted by development and testing personnel, and achieve the effect of reducing complexity

Active Publication Date: 2017-12-05
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The two development and testing methods of the application system of the microservice application architecture have the following defects: the first development and testing method needs to prepare a set of full deployment environment for each project. With more and more applications, the subsequent resource investment cost and Maintenance complexity makes it increasingly unacceptable for development testers
Although the second development and testing method can alleviate the technical problems of the first development and testing method, since the request is routed to the public (stable) environment, it cannot be rerouted back to the project environment, so the entire link needs to be deployed in the project environment apps, even if they haven't changed

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
  • Call method and device for background service in micro-service architecture
  • Call method and device for background service in micro-service architecture
  • Call method and device for background service in micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] image 3 It is a schematic flowchart of a method for invoking background services in a microservice architecture provided by an embodiment of the present invention. The method can be executed by a device for invoking background services in a microservice architecture. The device can be implemented by software and / or hardware, and generally can be It is integrated into the server used to complete the call function of the background service in the microservice architecture. like image 3 As shown, the method includes:

[0026] S101. Obtain a microservice invocation request of a microservice caller.

[0027] In this embodiment, the microservice architecture includes two roles: a microservice caller and a microservice callee, where the microservice callee is also called a microservice provider. Each microservice in the microservice architecture can be either a microservice caller or a microservice callee. Exemplarily, microservices A, B, and C are included in a certain ...

Embodiment 2

[0036] Figure 4 It is a schematic flowchart of a background service calling method in a microservice architecture provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments, adding a step: when the service address information of the service provider corresponding to the state identifier search of the microservice architecture is not found, obtain the service provider corresponding to the public identifier The provider's service address information; calling the background service in the microservice architecture corresponding to the service address information of the corresponding service provider with the public identifier. Correspondingly, the method in this embodiment specifically includes:

[0037] S201. Obtain a microservice invocation request of a microservice caller.

[0038] S202. If the running state of the microservice architecture corresponding to the microservice call request is a test state, search for s...

Embodiment 3

[0048] Figure 5 It is a schematic flowchart of a method for invoking a background service in a microservice architecture provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above embodiments. In this embodiment, before searching for the service address information of the corresponding service provider according to the status identifier of the microservice architecture, a step is added: judging the service call request Whether the state identifier is included in the service call request; when the service call request contains the state identifier, extract the state identifier from the service call request; when the service call request does not contain the state When an identifier is used, the state identifier is extracted from the configuration file of the microservice architecture. Correspondingly, the method in this embodiment specifically includes:

[0049] S301. Obtain a microservice invocation request of a microservice ca...

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 discloses a call method and device for a background service in a micro-service architecture. The method comprises the steps: obtaining a micro-service call request of a micro-service call side; searching service address information corresponding to a service provider according to a state identifier of the micro-service architecture if the operation state of the micro-service architecture corresponding to the micro-service call request; and calling the background server in the micro-service architecture corresponding to the searched service address information. According to the technical scheme of the invention, the method can reduce the resource investment cost during the development and testing of the micro-service architecture, and reduces the maintenance complexity of a project environment in the micro-service architecture.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a method and device for invoking background services in a microservice architecture. Background technique [0002] With the continuous development of the business, various problems of the monolithic application architecture will gradually be exposed. At this time, a service-oriented framework is generally introduced to transform the application system into a service-oriented transformation, and the monolithic application architecture will gradually evolve into a micro-service application. architecture. figure 1 It is a schematic diagram of the microservice architecture. like figure 1 As shown, the main function of the service-oriented architecture is to organically integrate various services at various layers such as the web layer, composite service layer, basic service layer, and resource layer, so that users feel as if they are using a single a...

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): H04L29/08
CPCH04L67/34
Inventor 康彬龚晓晖彭明明
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD
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