A data centralized processing method, device and medium for microservice architecture

By introducing a data-centralized processing method into the microservice architecture and using the message bus and broadcast system for service management, the problem of traditional microservice architecture's dependence on central services is solved, stability and efficiency are improved, and operation and maintenance costs are reduced.

CN113568913BActive Publication Date: 2024-10-11INSPUR ZHUOSHU BIG DATA IND DEV CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110857826.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-28
Publication Date
2024-10-11
Estimated Expiration
2041-07-28

AI Technical Summary

Technical Problem

The traditional microservice architecture relies too much on central services, leading to performance bottlenecks, reduced efficiency, and stability issues. Especially in high-concurrency environments, central services are prone to crashes, resulting in software unavailability.

Method used

By introducing a data-centralized processing method into the microservice architecture, using the message bus and broadcast system for service management, multi-copy management and call rule deployment are achieved, including average calls and random calls, to reduce the negative impact of central services.

Benefits of technology

It improves the overall stability of the software, reduces service deployment and operation and maintenance costs, improves data transmission efficiency, and avoids the problem of central services becoming a performance bottleneck.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113568913B_ABST
    Figure CN113568913B_ABST
Patent Text Reader

Abstract

The present application discloses a data centralized processing method, device and medium of a microservice architecture, the method comprising: determining multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receiving a data message of any one of the multiple services through a message bus, the content of the data message at least including: service name, service network address, call interface list; parsing the data message, and classifying and storing the data message according to the parsing result; deploying and preloading the corresponding service according to the service corresponding to the classified and stored data message and the preset call rules, the call rules at least including: average call, random call. The overall management of services through bus broadcast and multi-copy management can greatly reduce the negative impact of central services, improve the overall stability of the software, and reduce the cost of service deployment and operation and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of microservice architecture technology, and specifically to a data centralized processing method, device and medium for a microservice architecture. Background Art

[0002] With the rapid development of various businesses, traditional monolithic software applications have become increasingly bloated and difficult to maintain. To solve this problem, microservice architecture technology has been proposed. The core idea of ​​microservice architecture technology is to split the original complex monolithic application into many single-function microservices, and link these microservices through corresponding architectural ideas and principles. It also facilitates developers to flexibly add or delete a service without affecting the user experience, while avoiding a major impact on the overall software.

[0003] However, microservice architecture technology also has some problems. For example, since the overall stability of the software is too dependent on various central services, when the central service crashes, the entire software will become unavailable; the interaction between services needs to go through the central proxy service, which will reduce the efficiency of data transmission; in a high-concurrency environment, the central service can easily become a performance bottleneck. Summary of the invention

[0004] In order to solve the above problems, that is, to solve the problem that the traditional microservice architecture is too dependent on central services, and its performance, efficiency and usage status are deeply affected by central services, this application proposes a data centralization processing method, device and medium of a microservice architecture, including:

[0005] On the one hand, the present application proposes a data centralized processing method for a microservice architecture, including: determining multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receiving data messages of any one of the multiple services through a message bus, wherein the content of the data message includes at least: service name, service network address, and call interface list; parsing the data message, and classifying and storing the data message according to the parsing result; allocating and preloading the corresponding service according to the service corresponding to the classified and stored data message and preset calling rules, wherein the calling rules include at least: average calling and random calling.

[0006] In one example, the data message is parsed, and according to the parsing result, the data message is classified and stored, specifically including: parsing the data message to obtain the service name and service network address contained in the data message; querying in the local copy list according to the service name to obtain the query result; if the query result shows that it does not exist, the data message is stored in the local copy list; if the query result shows that it exists, the service network address corresponding to the data message is compared with the service network address corresponding to the existing service name; if the comparison results are consistent, the data message corresponding to the existing service name is updated; if the comparison results are inconsistent, the data message and the data message corresponding to the existing service name are grouped together.

[0007] In one example, the corresponding services are deployed and preloaded according to the services corresponding to the classified and stored message data and preset calling rules, specifically including: obtaining the services corresponding to the classified and stored data messages, and obtaining a calling interface list corresponding to the services; for multiple services, respectively obtaining historical calling frequencies of the services, and determining multiple first services whose historical calling frequencies are greater than a preset threshold and multiple second services whose historical calling frequencies are not greater than the preset threshold; according to the corresponding calling interface list, the first services are called evenly and preloaded, and the second services are called randomly and preloaded.

[0008] In one example, multiple services in a microservice architecture are determined, and based on a broadcast system preset in the multiple services, before receiving a data message of any one of the multiple services through a message bus, the method also includes: receiving an instruction, and selecting content that complies with the instruction from multiple pre-stored contents according to the instruction, and adding it to the data message, wherein the pre-stored content includes at least: service name, service network address, call interface list, supported protocols, and fuse return value.

[0009] In one example, after parsing the data message and classifying and storing the data message based on the parsing result, the method further includes: obtaining all data messages stored in the local copy list, and obtaining the service name corresponding to the data message; obtaining the historical reception time of the service name, and determining that the historical reception time has exceeded a preset time from the current time; and clearing the data message corresponding to the service name from the local copy list.

[0010] In one example, before allocating and preloading the corresponding services according to the services corresponding to the classified and stored data messages and preset calling rules, the method also includes: obtaining a calling interface list corresponding to the classified and stored data messages; trying to call the services corresponding to the classified and stored data messages through the calling interface list; if the trial call fails within a preset number of times, clearing the classified and stored data messages.

[0011] In one example, after allocating and preloading the corresponding service according to the service corresponding to the classified and stored data message and the preset calling rules, the method further includes: receiving a service instance calling instruction, and selecting and uploading the data message corresponding to the calling instruction from the classified and stored data message according to the service calling instruction.

[0012] In one example, the method further includes: receiving a translation instruction, and translating the data message through a pre-stored multi-language control according to the translation instruction.

[0013] On the other hand, the present application provides a data centralized processing device for a microservice architecture, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions: determine multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receive data messages of any one of the multiple services through a message bus, wherein the content of the data message includes at least: service name, service network address, and call interface list; parse the data message, and classify and store the data message according to the parsing result; allocate and preload the corresponding service according to the service corresponding to the classified and stored data message, and preset calling rules, wherein the calling rules include at least: average call and random call.

[0014] On the other hand, the present application provides a non-volatile computer storage medium for centralized processing of data in a microservice architecture, storing computer executable instructions, wherein the computer executable instructions are configured to: determine multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receive data messages of any one of the multiple services through a message bus, wherein the content of the data message includes at least: a service name, a service network address, and a call interface list; parse the data message, and classify and store the data message based on the parsing result; allocate and preload the corresponding service based on the service corresponding to the classified and stored data message and preset calling rules, wherein the calling rules include at least: average calling and random calling.

[0015] The data centralized processing method, device and medium of a microservice architecture proposed in this application can bring the following beneficial effects: by managing the overall service through bus broadcasting and multi-copy management, the negative impact of the central service can be greatly reduced, the overall stability of the software can be improved, and the cost of service deployment and operation and maintenance can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A schematic diagram of a process flow of a data centralization processing method of a microservice architecture in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a data centralized processing system of a microservice architecture in an embodiment of the present application;

[0019] Figure 3 This is a schematic diagram of a data centralized processing device of a microservice architecture in an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0021] First of all, it should be noted that the data centralized processing method of a microservice architecture recorded in the embodiment of the present application is stored in the corresponding system or server, and the user can log in to the system or server through the corresponding terminal, which can be a mobile phone, tablet computer, personal computer and other hardware devices with corresponding functions. The system can be pre-installed in the above terminal, and the user can also log in to the system or server through APP, WEB page, etc. to realize data centralized processing.

[0022] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0023] like Figure 1 As shown, the embodiment of the present application provides a data centralized processing method for a microservice architecture, including:

[0024] S101: Determine multiple services in a microservice architecture, and based on a broadcast system preset in the multiple services, receive a data message of any one of the multiple services through a message bus, wherein the data message content includes at least: a service name, a service network address, and a call interface list.

[0025] First of all, it should be noted that in the microservice architecture concept, functions such as the registration center, configuration center, and load balancing are crucial because they define the relationship and calling method between microservices. The registration center can make microservices unaware of each other's existence, and all services calling other services are completed by the registration center. Its advantages are very obvious. The deployment and calling costs of services are low, and developers only need to focus on their own business. With the load balancing function, the scalability and stability of the service can reach a higher level. The configuration center can make the different configurations of services in different environments more concise and clear, and with the automated operation and maintenance system, it can greatly improve the efficiency of deployment.

[0026] The centralized management concept in the microservice architecture also has the following problems: (1) The overall stability of the software is too dependent on the central services. The crash of the central service will cause the entire software to become unavailable; (2) The interaction between services needs to be proxied by the central service, which will reduce the efficiency of data transmission; (3) In a high-concurrency environment, the central service can easily become a performance bottleneck.

[0027] In summary, the microservice architecture manages all services in a centralized manner through a centralized concept. Although it reduces the cost of service development and maintenance, its centralized concept has also become a bottleneck for software performance. Referring to the decentralized concept in blockchain governance, this case proposes a microservice architecture that is compatible with (integrated with) multiple languages. Through the message bus broadcast mechanism, each service maintains a complete service list locally, so as to achieve the purpose of decentralization, making the microservice itself more independent. The call between any two services can be completed in the form of a direct connection, which improves the efficiency of data transmission and solves the performance bottleneck problem caused by the central service to the overall software.

[0028] Specifically, there are multiple services in the microservice architecture, such as Figure 2 As shown, this application takes four services A, B, C, and D as examples. Each service has a built-in broadcast system, and related messages can be sent out through the broadcast system.

[0029] The system also has a message bus, through which the system can receive data messages from any of the multiple services. After each service is started, it will broadcast its own data message through the message bus. The content of the data message includes at least: supported protocol (HTTP protocol or TPC protocol), service name, service network address, service call interface list, service call frequency within unit time, etc.

[0030] The system can receive a data message at a certain interval according to relevant settings. The interval time can be flexibly set according to the actual application scenario. For example, in a highly interactive scenario such as instant messaging, the interval time can be set to 0.1s.

[0031] In addition, the system can also set the content contained in the data message. The system has multiple pre-stored contents, which at least include: service name, supported protocol (HTTP protocol or TPC protocol), service network address, service call interface list, service call frequency per unit time, fuse return value, service degradation processing mark, etc. It can receive relevant instructions, and select the content that meets the instructions from the pre-stored content according to the relevant instructions and add it to the data message, so as to realize the flexible setting of the content of the data message according to the actual situation.

[0032] S102: Parse the data message, and classify and store the data message according to the parsing result.

[0033] Specifically, the data message is parsed to obtain the service name and service network address contained in the data message.

[0034] Further, a query is performed in the pre-stored local copy list according to the service name to obtain a query result. It should be noted that a large number of data messages are stored in the local copy list, and the data message should also contain at least two items: the service name and the service network address. By querying, it can be determined whether the service name corresponding to the data message exists in the local copy list.

[0035] Furthermore, if the query result shows that it does not exist, the data message is stored in the local copy list, so that when a service with the same service name needs to be called later, it can be directly called according to the local copy list.

[0036] If the query result shows that it exists, the service network address corresponding to the data message is compared with the service network address corresponding to the existing service name. If the comparison result is consistent, it means that the same network device has used the same service in this system before. At this time, the data message corresponding to the existing service name can be updated to record the service usage status of the network device.

[0037] If the comparison results are inconsistent, it means that other network devices are using the service in this system. At this time, the data message and the data message corresponding to the existing service name can be grouped together to increase the number of samples, making it easier for other network devices to call, further saving system resources and calling time.

[0038] S103: Allocate and preload the corresponding services according to the services corresponding to the classified and stored data messages and preset calling rules, wherein the calling rules at least include: average calling and random calling.

[0039] Specifically, the system obtains the services corresponding to the classified and stored data messages, and obtains a call interface list corresponding to the services.

[0040] For multiple services, historical call frequencies of the services are respectively obtained, and multiple first services whose historical frequencies are greater than a preset threshold and multiple second services whose historical frequencies are not greater than the preset threshold are determined.

[0041] If the historical call frequency is greater than the preset threshold, it means that the call frequency of the first service is high, and the first service needs to be averaged and preloaded.

[0042] If the historical calling frequency is not greater than the preset threshold, it indicates that the calling frequency of the second service is sufficient, and only random calling and loading of the second service is required.

[0043] Through the above technical solution, the internal resources of the system are further saved without affecting the service calling efficiency.

[0044] In one embodiment, after parsing the data message and classifying and storing the data message according to the parsing result, the system can also obtain all the data messages stored in the local copy list and obtain the service name corresponding to the data message.

[0045] Furthermore, the historical reception time of the service name is obtained, and it is determined that the historical reception time has exceeded the preset time from the current time. At this time, it means that the service call frequency corresponding to the service name is very low, and there is no need to store it in the local copy list, and there is no need to call and preload it. Therefore, for this data message, it can be cleared from the local copy list to save storage space.

[0046] In one embodiment, before allocating and preloading the corresponding services according to the services corresponding to the classified and stored data messages and the preset calling rules, the system can also obtain a calling interface list corresponding to the classified and stored data messages.

[0047] Furthermore, the service corresponding to the classified and stored data message is tried to be called by calling the interface list to determine whether the calling interface is correct.

[0048] Furthermore, if the calling attempt fails within a preset number of times, it means that there is an error in the calling interface. At this time, the classified and stored data message can be cleared to further save internal storage space.

[0049] In one embodiment, after allocating and preloading the corresponding services according to the services corresponding to the classified and stored data messages and preset calling rules, the system can also receive service instance calling instructions, and select and upload the data messages corresponding to the calling instructions from the classified and stored data messages according to the service calling instructions.

[0050] The call here can be implemented according to the preset call rules, and the call rules include but are not limited to: random call, call frequency load, average call and the like.

[0051] In one embodiment, the system in the present application may also be internally provided with a multi-language control, and the system may receive a translation instruction and, according to the translation instruction, translate the data message through a pre-stored multi-language control.

[0052] In one embodiment, Figure 3 As shown, the present application also provides a data centralized processing device of a microservice architecture, including:

[0053] at least one processor; and,

[0054] a memory communicatively connected to the at least one processor; wherein,

[0055] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions:

[0056] Determine multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receive a data message of any one of the multiple services through a message bus, wherein the content of the data message includes at least: a service name, a service network address, and a call interface list;

[0057] Parsing the data message, and classifying and storing the data message according to the parsing result;

[0058] The corresponding services are deployed and preloaded according to the services corresponding to the classified and stored data messages and preset calling rules, wherein the calling rules at least include: average calling and random calling.

[0059] In one embodiment, the present application further provides a non-volatile computer storage medium for centralized processing of data in a microservice architecture, storing computer executable instructions, wherein the computer executable instructions are configured to:

[0060] Determine multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receive a data message of any one of the multiple services through a message bus, wherein the content of the data message includes at least: a service name, a service network address, and a call interface list;

[0061] Parsing the data message, and classifying and storing the data message according to the parsing result;

[0062] The corresponding services are deployed and preloaded according to the services corresponding to the classified and stored data messages and preset calling rules, wherein the calling rules at least include: average calling and random calling.

[0063] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0064] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0065] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0066] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0067] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0068] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0069] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0070] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0071] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0072] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0073] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A data-centralized processing method for microservice architecture, It is characterized in that include: Determine multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receive a data message of any one of the multiple services through a message bus, wherein the content of the data message includes at least: a service name, a service network address, and a call interface list; Parsing the data message, and classifying and storing the data message according to the parsing result; According to the services corresponding to the classified and stored data messages and preset calling rules, the corresponding services are deployed and preloaded, and the calling rules at least include: average calling and random calling; Parsing the data message, and classifying and storing the data message according to the parsing result, specifically includes: Parsing the data message to obtain the service name and service network address contained in the data message; Search the local copy list according to the service name to obtain the query result; If the query result shows that it does not exist, storing the data message in the local copy list; If the query result shows existence, then comparing the service network address corresponding to the data message with the service network address corresponding to the existing service name; If the comparison result is consistent, the data message corresponding to the existing service name is updated; If the comparison result is inconsistent, the data message and the data message corresponding to the existing service name are grouped into the same group; According to the services corresponding to the classified and stored message data and the preset calling rules, the corresponding services are deployed and preloaded, specifically including: Obtain the services corresponding to the classified and stored data messages, and obtain a call interface list corresponding to the services; For the plurality of services, respectively obtain historical call frequencies of the services, and determine a plurality of first services whose historical call frequencies are greater than a preset threshold and a plurality of second services whose historical call frequencies are not greater than the preset threshold; According to the corresponding calling interface list, the first service is called and preloaded evenly, and the second service is called and preloaded randomly.

2. According to the data centralization processing method of the microservice architecture according to claim 1, It is characterized in that Before determining a plurality of services in the microservice architecture and receiving a data message of any one of the plurality of services through a message bus based on a broadcast system preset in the plurality of services, the method further includes: Receive instructions, and select content that meets the instructions from multiple pre-stored contents according to the instructions, and add them to the data message. The pre-stored content at least includes: service name, service network address, call interface list, supported protocols, and fuse return value.

3. According to the data centralization processing method of a microservice architecture according to claim 1, It is characterized in that After parsing the data message and classifying and storing the data message according to the parsing result, the method further includes: Obtain all data messages stored in the local copy list, and obtain the service names corresponding to the data messages; Obtain the historical reception time of the service name, and determine whether the historical reception time has exceeded a preset time from the current time; The data message corresponding to the service name is cleared from the local copy list.

4. According to the data centralization processing method of a microservice architecture according to claim 1, It is characterized in that Before allocating and preloading the corresponding services according to the services corresponding to the classified and stored data messages and the preset calling rules, the method further includes: Get the call interface list corresponding to the classified and stored data messages; Trial calling the service corresponding to the classified and stored data message through the calling interface list; If the call fails within a preset number of times, the classified and stored data messages will be cleared.

5. According to the data centralization processing method of a microservice architecture according to claim 1, It is characterized in that After allocating and preloading the corresponding services according to the services corresponding to the classified and stored data messages and the preset calling rules, the method further includes: A service instance calling instruction is received, and according to the service calling instruction, a data message corresponding to the calling instruction is selected from the classified and stored data messages and uploaded.

6. According to the data centralization processing method of a microservice architecture according to claim 1, It is characterized in that The method further comprises: A translation instruction is received, and according to the translation instruction, the data message is translated through a pre-stored multi-language control.

7. A data-centralized processing device with a microservice architecture, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions: Determine multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receive a data message of any one of the multiple services through a message bus, wherein the content of the data message includes at least: a service name, a service network address, and a call interface list; Parsing the data message, and classifying and storing the data message according to the parsing result; According to the services corresponding to the classified and stored data messages and preset calling rules, the corresponding services are deployed and preloaded, and the calling rules at least include: average calling and random calling; Parsing the data message, and classifying and storing the data message according to the parsing result, specifically includes: Parsing the data message to obtain the service name and service network address contained in the data message; Search the local copy list according to the service name to obtain the query result; If the query result shows that it does not exist, storing the data message in the local copy list; If the query result shows existence, then comparing the service network address corresponding to the data message with the service network address corresponding to the existing service name; If the comparison result is consistent, the data message corresponding to the existing service name is updated; If the comparison result is inconsistent, the data message and the data message corresponding to the existing service name are grouped into the same group; According to the services corresponding to the classified and stored message data and the preset calling rules, the corresponding services are deployed and preloaded, specifically including: Obtain the services corresponding to the classified and stored data messages, and obtain a call interface list corresponding to the services; For the plurality of services, respectively obtain historical call frequencies of the services, and determine a plurality of first services whose historical call frequencies are greater than a preset threshold and a plurality of second services whose historical call frequencies are not greater than the preset threshold; According to the corresponding calling interface list, the first service is called and preloaded evenly, and the second service is called and preloaded randomly.

8. A non-volatile computer storage medium for centralized processing of data in a microservice architecture, storing computer executable instructions, It is characterized in that The computer executable instructions are configured to: Determine multiple services in the microservice architecture, and based on a broadcast system preset in the multiple services, receive a data message of any one of the multiple services through a message bus, wherein the content of the data message includes at least: a service name, a service network address, and a call interface list; Parsing the data message, and classifying and storing the data message according to the parsing result; According to the services corresponding to the classified and stored data messages and preset calling rules, the corresponding services are deployed and preloaded, and the calling rules at least include: average calling and random calling; Parsing the data message, and classifying and storing the data message according to the parsing result, specifically includes: Parsing the data message to obtain the service name and service network address contained in the data message; Search the local copy list according to the service name to obtain the query result; If the query result shows that it does not exist, storing the data message in the local copy list; If the query result shows existence, then comparing the service network address corresponding to the data message with the service network address corresponding to the existing service name; If the comparison result is consistent, the data message corresponding to the existing service name is updated; If the comparison result is inconsistent, the data message and the data message corresponding to the existing service name are grouped into the same group; According to the services corresponding to the classified and stored message data and the preset calling rules, the corresponding services are deployed and preloaded, specifically including: Obtain the services corresponding to the classified and stored data messages, and obtain a call interface list corresponding to the services; For the plurality of services, respectively obtain historical call frequencies of the services, and determine a plurality of first services whose historical call frequencies are greater than a preset threshold and a plurality of second services whose historical call frequencies are not greater than the preset threshold; According to the corresponding calling interface list, the first service is called and preloaded evenly, and the second service is called and preloaded randomly.

Citation Information

Patent Citations

  • Distributed micro-service registration and calling method based on broadcast

    CN111615066A

  • Message classification processing method and device and computer equipment

    CN111711561A

  • Server pushing method and device based on blockchain technology, and medium

    CN111756803A

  • Micro-service unified management method and device for multiple registration centers, equipment and medium

    CN112286503A

  • Method, system and computer program product for a client application programming interface (API) in a service oriented architecture

    US20120210335A1