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

A microservice processing method and device

A processing method and micro-service technology, applied in the field of micro-service processing methods and equipment, can solve problems such as differences in failure scenarios, large upgrades and monitoring, and large-scale host clusters for micro-services

Active Publication Date: 2021-05-18
HUAWEI TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The problem with the existing microservice fault isolation technology is that since the microservice of the same business may contain multiple operations, for example, the order microservice includes: order creation, order query, order modification and deletion, etc., and the importance of different operations may also be different. Different, the failure scenarios faced are also different
Because a microservice usually has dozens of operations, this deployment method of the existing technology will cause the host cluster of the microservice to be large in scale, the cost is too high, and the operation and maintenance costs (such as deployment, upgrade and monitoring, etc.) are also very large

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
  • A microservice processing method and device
  • A microservice processing method and device
  • A microservice processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] The embodiment of the present application provides a microservice processing method, which is executed by a server that provides microservices. For the specific process of the microservice processing method, refer to Figure 5 shown, including:

[0072] In step 501, the terminal sends a message to call the microservice to the server.

[0073] Wherein, the message includes the service identifier of the target microservice requested to be invoked and the operation type identifier corresponding to the operation type of the target microservice. For example, a game center application is installed on the mobile phone side, and when the mobile phone detects that the user acts on the download and purchase control of the dazzling dance mobile game (a fee-paying application) in the game center application, an order is generated (the order is to download and purchase the Xuanwu mobile game). Dance Mobile Game) message, the service ID of the target microservice in the message is t...

Embodiment 2

[0105] The embodiment of the present application also provides a microservice scheduling method, which is executed by a terminal consuming the microservice. For the specific process of the microservice processing method, refer to Image 6 shown, including:

[0106] Step 601, the terminal determines the target thread pool corresponding to the service ID and interface ID of the target microservice.

[0107] Step 602, the terminal sends a request for invoking the microservice to the server providing the microservice through the target thread pool.

[0108]Wherein, the request includes the service ID and the interface ID of the target microservice that is requested to be invoked.

[0109] Such as Figure 7 As shown, before executing step 601, the terminal may first execute step 701, subscribe to the registration information in the registry server, and then execute step 702, query the thread pool configuration parameters corresponding to the service ID and interface ID of the mic...

Embodiment 3

[0116] The embodiment of the present application also provides a microservice processing method, which is executed by the registration center server. For the specific process of the microservice processing method, refer to Figure 9 shown, including:

[0117] Step 801, the registration center server receives registration information from the server.

[0118] Wherein, the registration information includes thread pool configuration parameters corresponding to the service identifier and interface identifier of the microservice, address information of the microservice, and the like.

[0119] Step 802, the registration center server saves the registration information.

[0120] For example, the registration center server persists the registration information in a storage system (such as disk, DB, etc.), such as saving it in a thread pool configuration parameter cache table.

[0121] Wherein, after the server starts successfully, it automatically synchronizes the thread pool config...

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 present application provides a microservice processing method and device, which are applied to a server providing microservices. The method includes: the server receives a message for invoking a microservice from a terminal consuming the microservice, wherein the message includes the service identifier of the target microservice and Interface ID; then the server determines the corresponding target thread pool according to the service ID and interface ID of the target microservice, and finally calls the worker thread in the target thread pool to execute the message. This method can limit the scope of the fault to the thread In the pool, avoid spreading to the entire microservice process, this method has low hardware and operation and maintenance costs.

Description

technical field [0001] The present application relates to the field of terminal technology, and in particular to a microservice processing method and device. Background technique [0002] Microservices is a software architectural style based on small functional blocks that focus on a single responsibility and function, and use a modular approach to combine complex large-scale applications. Each small functional block communicates with each other using a language-independent application programming interface (application programming interface, API) (API is also called an operation). [0003] At present, the servitization of business has become the mainstream trend. Taking customer relationship management (CRM) account opening business as an example, an account opening process in a business hall will involve dozens of microservices such as number card resource query, identity verification, and package query. call. In order to ensure the high-quality operation of core 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54G06F9/455A63F13/792
CPCA63F2300/5513A63F13/792G06F9/45558G06F9/546G06F9/547G06F2209/541G06F2209/548
Inventor 李林锋刘连喜
Owner HUAWEI 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