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

A microservice adjustment method, device, server and computer storage medium

An adjustment method and micro-service technology, applied in transmission systems, electrical components, etc., can solve the problems of stable operation of the processing center, high business pressure, unstable services, etc., to improve business stability, reduce load, and develop flexible solutions. Effect

Active Publication Date: 2022-05-31
中移动信息技术有限公司 +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] As the concentration of users becomes higher and higher, various problems will arise during business integration. For example, when the business of the group is integrated with the business of the provincial company under the group, there will be heavy business pressure and unsatisfactory services. Problems such as stability, business code confusion, and inability to flexibly handle new businesses
[0003] At present, it is mainly to centralize the deployment of various services in the business. However, this deployment method will cause a series of problems. First, when the call load of a single service is too large, it will affect the stable operation of the processing center. Secondly, each service cannot be rapidly expanded, and cannot meet the requirements of Internet-based marketing activities to go online quickly. Moreover, the codes of each service are mixed together, and the code volume is too large and not flexible enough. Any code modification will make the entire application program need to be restarted. Construction, service coupling is serious, in addition, as long as there is a problem with one service, the whole service will have problems, and all developers must use the same development language and development tools, making development inflexible

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 adjustment method, device, server and computer storage medium
  • A microservice adjustment method, device, server and computer storage medium
  • A microservice adjustment method, device, server and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0092] An embodiment of the present invention provides a communication method, the method is applied to a sub-server, Figure 4 A schematic diagram of a microservice adjustment method provided by an embodiment of the present invention, as shown in Figure 4 As shown, the method mainly includes the following steps:

[0093] Step 401, receiving a service request sent by the main server; wherein, the service request includes a parameter indicating the type of the service request;

[0094] Step 402, calling the microservice corresponding to the service request according to the service request;

[0095] Step 403, obtaining the first attribute and the second attribute of the called microservice;

[0096] Step 404, determine whether the called microservice is normal according to the first attribute and the second attribute;

[0097] Step 405, corresponding to determining that the called microservice is abnormal, generate a microservice extension instruction; wherein, the microserv...

Embodiment 2

[0130] An embodiment of the present invention provides a communication method, the method is applied to the main server, Figure 5 A schematic diagram of a microservice adjustment method provided by an embodiment of the present invention, as shown in Figure 5 As shown, the method mainly includes the following steps:

[0131] Step 501. Receive a service request; wherein, the service request includes parameters indicating the type of service request;

[0132] Step 502. Determine the type of the service request according to the service request;

[0133]Step 503. According to the type of the service request, forward the service request to a sub-server having a microservice corresponding to the type of the service request;

[0134] Step 504, receiving the microservice extension instruction sent by the sub-server; wherein, the microservice extension instruction includes the number of microservices to be extended and the type of microservice to be extended;

[0135] Step 505, acc...

Embodiment 3

[0149] An embodiment of the present invention provides a microservice adjustment method, Figure 7A A schematic diagram of a microservice adjustment method provided by an embodiment of the present invention, as shown in Figure 7A As shown, the method mainly includes the following steps:

[0150] Step 701, the main server acquires a service request; wherein, the service request includes a parameter for indicating the type of the service request.

[0151] It should be noted that the service request is a request sent by a user through a PC or a mobile phone APP, wherein the service request includes a parameter for indicating a service request type. For example, when a user needs to log in via SMS, he can click the login button on the PC or mobile APP and send a random SMS code, then the user sends a SMS login service request through the PC or mobile APP, and the background server of the PC or mobile APP sends the SMS The login service request is encapsulated and sent to the ma...

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 present invention relates to software development technology, and discloses a microservice adjustment method, device, server, and computer storage medium. The method includes: receiving a service request sent by the main server; wherein, the service request includes parameters for indicating the type of service request ; According to the service request, call the microservice corresponding to the service request; obtain the first attribute and the second attribute of the called microservice; determine whether the called microservice is normal according to the first attribute and the second attribute; The called microservice is abnormal, and generates a microservice extension instruction; wherein, the microservice extension instruction includes the number of microservices that need to be expanded and the type of microservice that needs to be extended; receives the opening instruction sent by the main server; wherein, the opening instruction is used for Instruct to start the microservice that needs to be expanded; according to the start instruction, start the microservice that needs to be expanded.

Description

technical field [0001] Embodiments of the present invention relate to software development, and in particular to a microservice adjustment method, device, server, and computer storage medium. Background technique [0002] As the concentration of users becomes higher and higher, various problems will arise during business integration. For example, when the business of the group is integrated with the business of the provincial company under the group, there will be heavy business pressure and insufficient service. Stability, business code confusion, and inability to flexibly handle new businesses. [0003] At present, it is mainly to centralize the deployment of various services in the business. However, this deployment method will cause a series of problems. First, when the call load of a single service is too large, it will affect the stable operation of the processing center. Secondly, each service cannot be rapidly expanded, and cannot meet the requirements of Internet-b...

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): H04L67/60H04L67/1014
CPCH04L67/1014H04L67/60
Inventor 吴朝国
Owner 中移动信息技术有限公司
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