Information processing method, device, system, medium, chip and program product

By performing routing control on the data request sending end and receiving end in the Dubbo framework, and using the identifier of the second device to perform full-link grayscale routing control, the problem of insufficient routing control capabilities on the service provider side is solved, and grayscale publishing is improved. stability and efficiency.

CN115516840BActive Publication Date: 2024-10-08SHENZHEN HEYTAP TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080100504.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-04
Publication Date
2024-10-08
Estimated Expiration
2040-06-04

AI Technical Summary

Technical Problem

During the grayscale release process of the Dubbo framework, the service provider has high requirements for routing control capabilities and poor stability, making it difficult to achieve full-link grayscale routing control.

Method used

By performing routing control on the sending end and receiving end of the data request respectively, and using the first device to route the data request based on the identity of the second device, full-link grayscale routing control is achieved, which reduces the dependence on the container IP address and improves routing efficiency. Control stability.

Benefits of technology

It achieves the stability and robustness of grayscale publishing, ensures routing control of data requests at both ends, and improves the efficiency and reliability of grayscale publishing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115516840B_ABST
    Figure CN115516840B_ABST
Patent Text Reader

Abstract

An information processing method, device, system, medium, chip and program. The information processing method applied to a first device includes: when the data request is detected, obtaining a first grayscale rule; wherein the first grayscale rule is used to represent a rule for executing routing control when the data request is grayscale released (201); based on the first grayscale rule and the data request, determining a first identifier; wherein the first identifier represents an identifier of a second device that processes the data request (202); based on the first identifier, sending the data request to a second device; wherein the second device is used to execute routing control when the data request is grayscale released (203).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to an information processing method, device, system, medium, chip and program. Background Art

[0002] Dubbo is a high-performance, lightweight, open source Java Remote Procedure Call (RPC) framework. In the grayscale release of related technologies, the Dubbo framework is implemented by the service provider to control the routing of data requests. However, the solution of simply controlling the routing of data requests on the service provider side has high requirements on the routing control capability of the service provider side, and the stability of routing control is poor. Summary of the invention

[0003] The embodiments of the present application are intended to provide an information processing method, device, system, medium, chip, and program.

[0004] An information processing method, applied to a first device, comprising:

[0005] When a data request is detected, a first grayscale rule is obtained; wherein the first grayscale rule is used to represent a rule for executing routing control when grayscale publishing is performed on the data request;

[0006] Based on the first grayscale rule and the data request, determine a first identifier; wherein the first identifier represents an identifier of a second device that processes the data request;

[0007] Based on the first identifier, the data request is sent to a second device; wherein the second device is used to perform routing control when the data request is released in grayscale.

[0008] An information processing method, applied to a second device, comprising:

[0009] receiving the data request sent by the first device based on the first identifier; wherein the first identifier represents the identifier of the second device that processes the data request; the first identifier is determined by the first device based on the first grayscale rule and the data request; the first grayscale rule is used to represent a rule for executing routing control when the first device performs grayscale release on the data request;

[0010] The data request is routed and controlled during the grayscale release.

[0011] A second device, the second device is used to process a data request, the second device comprises a receiving module and a second processing module,

[0012] The receiving module is used to receive the data request sent by the first device based on the first identifier; the first identifier includes: an identifier for indicating the second device that processes the data request; the first identifier is determined by the first device based on the first grayscale rule and the data request; the first grayscale rule is used to indicate a rule for executing routing control when the first device performs grayscale release on the data request;

[0013] The second processing module is used to perform routing control on the data request during the grayscale release.

[0014] A first device comprising a first processor and a first memory configured to store a computer program executable on the first processor;

[0015] The first processor is configured to execute the information processing method applied to the first device when running the computer program.

[0016] a second device comprising a second processor and a second memory configured to store a computer program executable on the second processor;

[0017] The second processor is configured to execute the information processing method applied to the second device as described above when running the computer program.

[0018] An information processing system comprises any of the above-mentioned first devices, any of the above-mentioned second devices and a communication bus, wherein the communication bus is used to realize data transmission between the first device and the second device.

[0019] A computer storage medium stores a computer program, which, when executed by a processor, implements the information processing method applied to a first device as described above.

[0020] A computer storage medium stores a computer program, which, when executed by a processor, implements the information processing method applied to a second device as described above.

[0021] A chip, comprising: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the steps of the information processing method applied to the first device;

[0022] Alternatively, it is used to call and run a computer program from a memory so that a device equipped with the chip executes the steps of the information processing method applied to the second device.

[0023] A computer program product, the computer program product comprising a computer storage medium, the computer storage medium storing computer program code, the computer program code comprising instructions executable by at least one processor, and when the instructions are executed by the at least one processor, the steps of the information processing method applied to the first device are implemented;

[0024] Alternatively, when the instruction is executed by the at least one processor, the steps of the information processing method applied to the second device are implemented.

[0025] It can be seen that the information processing method in the embodiment of the present application can not only perform routing control on the data request at the first device, i.e., the data request sending end, but also perform routing control on the data request at the second device, i.e., the data request receiving end, during grayscale release. On the one hand, it alleviates the high requirements for routing control on the service provider side caused by only performing routing control on the service provider side. On the other hand, it realizes routing control at both ends of the data request at the same time, i.e., it realizes full-link grayscale routing control. Moreover, the routing control of the data request at the first device is performed based on the first identifier of the second device, thereby realizing the stability of the routing conditions at the data request sending end. Therefore, the information processing method in the embodiment of the present application can promote the stable implementation of grayscale release.

[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0028] Figure 1 A connection relationship diagram of a first device and a second device involved in a grayscale release provided in an embodiment of the present application;

[0029] Figure 2 A flowchart of an information processing method applied to a first device provided in an embodiment of the present application;

[0030] Figure 3 A schematic diagram of parameter configuration for conditional routing based on application granularity information;

[0031] Figure 4 Schematic diagram of parameter configuration for conditional routing based on service granularity information;

[0032] Figure 5 This is a flowchart of an information processing method applied to a second device according to an embodiment of the present application;

[0033] Figure 6 This is a flow chart of the information processing method based on the Dubbo framework in an embodiment of the present application;

[0034] Figure 7 This is a full-link grayscale routing control structure diagram of an embodiment of the present application;

[0035] Figure 8 A flowchart of an information processing method according to an embodiment of the present application;

[0036] Fig. 9 A schematic diagram of the structure of a first device according to an embodiment of the present application;

[0037] Fig.10 A schematic diagram of the structure of a second device according to an embodiment of the present application;

[0038] Fig.11 A hardware structure diagram of a first device according to an embodiment of the present application;

[0039] Fig.12 A hardware structure diagram of a second device according to an embodiment of the present application;

[0040] Fig.13 A schematic diagram of the structure of an information processing system according to an embodiment of the present application;

[0041] Fig.14 A schematic diagram of the structure of a chip according to an embodiment of the present application. DETAILED DESCRIPTION

[0042] The present application will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the embodiments provided herein are only used to explain the present application and are not intended to limit the present application. In addition, the embodiments provided below are partial embodiments for implementing the present application, rather than providing all embodiments for implementing the present application. In the absence of conflict, the technical solutions recorded in the embodiments of the present application can be implemented in any combination.

[0043] It should be noted that, in the embodiments of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements (such as steps in a method or units in a device, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.) in the method or apparatus including the element.

[0044] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0045] For example, the information processing method provided in the embodiment of the present application includes a series of steps, but the information processing method provided in the embodiment of the present application is not limited to the recorded steps. Similarly, the device provided in the embodiment of the present application includes a series of modules, but the device provided in the embodiment of the present application is not limited to including the modules explicitly recorded, and may also include modules that need to be set up to obtain relevant information or perform processing based on information.

[0046] The information processing method provided in the embodiment of the present application can be applied to the grayscale release process. In grayscale release, the first part of users are allowed to use the first version of the software providing services, and the second part of users are allowed to use the second version of the software providing services, wherein some updates are performed in the second version. Figure 1 As shown, users participating in the grayscale release can communicate data with a second device that has a grayscale version and / or a formal version deployed through a first device. During the grayscale release process, the first part of users and the second part of users can initiate a request to at least one second device that has a first version and / or a second version deployed through at least one first device, and the at least one second device processes the user's request and returns the processing result to the at least one first device.

[0047] In actual applications, the first device can be a thin client, a thick client, a handheld or laptop device, a microprocessor-based system, a set-top box, a programmable consumer electronic product, a network personal computer, a small computer system, and other terminals. The second device can be a computer or a server. The server can be a server computer system, a small computer system, a large computer system, and a distributed cloud computing technology environment including any of the above systems, etc.

[0048] Electronic devices such as terminals and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. In general, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.

[0049] In some embodiments of the present application, an information processing method is proposed, which can be applied to a grayscale publishing process, and exemplarily, can be applied to a grayscale publishing process based on the Dubbo framework. Specifically, the information processing method can be applied to a data request sending device that performs grayscale publishing based on the Dubbo framework, and a data request processing device.

[0050] Figure 2 This is a flowchart of an information processing method according to an embodiment of the present application. The information processing method can be applied to a first device.

[0051] In one implementation, the first device may be a device such as a computer that can send a data request through a communication connection.

[0052] In one implementation, the first device may be used to represent a device that initiates a data request in the Dubbo framework, and the device may also receive a returned data request processing result.

[0053] In one implementation, the first device may be used to represent a device in a Dubbo framework for analyzing and converting data requests.

[0054] In one implementation, the first device may be used to represent a device in the Dubbo framework for monitoring, distributing, integrating data, and controlling traffic for data requests.

[0055] In one implementation, the first device may be used to represent a device for isolating a sender of a data request and a communication transmission link.

[0056] like Figure 2 As shown, the process may include the following steps:

[0057] Step 201: when a data request is detected, a first grayscale rule is obtained; wherein the first grayscale rule is used to represent a rule for executing routing control when a data request is released in grayscale.

[0058] In one embodiment, grayscale release can be used to indicate grayscale release of software versions providing services according to an update ratio, for example, release based on the Kth update ratio, where K is an integer greater than or equal to 1, and the Kth update ratio indicates an update to the capacity ratio of the software version providing services, for example, the Kth update ratio is used to indicate that a 10% update has been performed on the software version.

[0059] In one embodiment, grayscale release can be used to indicate the grayscale release of the software version providing the service according to the functions in the software version providing the service. For example, the Mth grayscale is used to indicate that the functions of the Mth part of the software version providing the service have been updated, where M is an integer greater than or equal to 1.

[0060] In one embodiment, grayscale release can be used to indicate the grayscale release of the software version providing the service according to the method call link in the software version providing the service. For example, the Nth grayscale is used to indicate that the Nth method call link of the software version providing the service has been updated, where N is an integer greater than or equal to 1.

[0061] In one embodiment, the grayscale release process may include the release of two software versions that provide services. One software version is an updated service software version, also known as a grayscale version, and the other software version is a service software version that has not been updated, also known as a formal version.

[0062] It should be noted that after different versions of service software are started, at least one service instance capable of processing data requests can be generated.

[0063] In one implementation, a data request may be used to represent a data request from any account.

[0064] In one implementation, a data request may be used to indicate a request from a specific account.

[0065] In one implementation, a data request may be used to represent a request for a grayscale version of software that provides a service.

[0066] In one implementation, a data request may be used to represent a data request initiated for a specific grayscale version of software providing a service.

[0067] In one implementation, a data request may be used to indicate a request for a formal version.

[0068] In one implementation, a data request may be used to indicate a request received by the first device from another account or device.

[0069] In one implementation, the first grayscale rule is used to represent a rule for executing routing control when grayscale release is performed on any detected data request.

[0070] In one implementation, the first grayscale rule may be used to represent a rule for executing routing control when grayscale release is performed on a specific data request.

[0071] In one implementation, the first grayscale rule may be used to represent a rule for executing routing control when grayscale release is performed on a data request from a specific source.

[0072] In one implementation, the first grayscale rule may be used to represent a rule for executing routing control when grayscale publishing a data request is performed according to a target device or target data for processing the data request.

[0073] In one implementation, the first grayscale rule may be used to represent a rule for executing routing control when grayscale publishing is performed on a data request according to the type of the data request.

[0074] In one implementation, the first grayscale rule may have been stored in the storage space of the first device before the data request is detected.

[0075] In one implementation, the first grayscale rule may be generated after a data request is detected.

[0076] Step 202: Determine a first identifier based on a first grayscale rule and a data request.

[0077] The first identifier represents the identifier of the second device that processes the data request.

[0078] In one implementation, the second device may be used to represent a device carrying a grayscale version of software that provides a service.

[0079] In one implementation, the second device may be used to represent a device carrying a formal version of software that provides a service.

[0080] In one implementation, the second device may be used to represent a device carrying a formal version and a grayscale version of software that provides a service.

[0081] In one implementation, the second device may be used to represent a device carrying grayscale versions of software providing services of different grayscales. For example, the second device carries a software version of the first grayscale and a software version of the K1th grayscale, where K1 is an integer greater than 1, and the first grayscale is different from the K1th grayscale.

[0082] In one implementation, the first identifier is used to represent a unique, unchangeable identifier of the second device, such as a product identifier set when the second device is produced.

[0083] In one implementation, the first identifier is used to identify a hardware device number of the second device, such as an International Mobile Equipment Identity (IMEI) of a mobile device.

[0084] In one implementation, the first identifier may be determined in the following manner: a data request is parsed to obtain a first parsing result, and based on a first grayscale rule, the first parsing result is processed to determine the first identifier.

[0085] In one implementation, the first identifier may be determined in the following manner: parsing the source of the data request to obtain a second parsing result, and processing the second parsing result based on the first grayscale rule to determine the first identifier.

[0086] In one implementation, the first identifier may be determined in the following manner: parsing the type of the data request to obtain a third parsing result, and processing the third parsing result based on the first grayscale rule to further determine the first identifier.

[0087] Step 203: Based on the first identifier, send a data request to the second device.

[0088] The second device is used to perform routing control when grayscale publishing is performed on data requests.

[0089] In one embodiment, the second device is further used to perform a second routing control on the data request after receiving the data request during the grayscale release of the software version providing the service.

[0090] In one embodiment, the second device carries a grayscale version and / or a formal version of the software. Accordingly, after receiving a data request, the second device can route the data request to a node carrying the corresponding grayscale version and / or formal version so that the service instance in the grayscale version and / or formal version can process the data request.

[0091] In one implementation, the second device can also return the processing result of the service instance in the gray version and / or the official version on the data request to the first device.

[0092] In the related technology, taking the Dubbo framework as an example, in the grayscale release process, Dubbo's routing implementation is usually implemented through conditional routing (Condition Router) and tag routing (Tag Router), where Router is the router defined in the Dubbo framework, which is used for traffic control, that is, routing control.

[0093] Among them, conditional routing can be controlled at the application level or service level. Figure 3 and Figure 4 As shown, Figure 3 A schematic diagram of parameter configuration for conditional routing based on application granularity; Figure 4 This is a diagram of conditional routing based on service granularity parameter configuration. Figure 3 and Figure 4 The relevant parameters and their configuration methods are described in this section.

[0094] exist Figure 3 and Figure 4 In the scope, it indicates the granularity of the routing rule. The value of scope determines the value of key. key is used to clarify which service or application the routing rule applies to. enabled indicates whether the current route is effective. force indicates whether to enforce the route when the routing result is empty. If it is not enforced, the routing rule with an empty routing result will automatically become invalid. runtime indicates whether to execute the routing rule every time it is called. Otherwise, it will only be pre-executed and cached when the provider address list changes. The routing result is directly obtained from the cache when it is called. conditions: used to define specific routing rules.

[0095] In addition to the above parameters, you can also use priority to set the priority of the routing rule in the definition of the routing rule. It is specifically used for sorting. The higher the priority, the earlier it is executed.

[0096] exist Figure 3In the example, scope is application, which indicates that the current routing rule applies to the application granularity; force is true, which indicates that the routing rule must be enforced when the routing result is empty; runtime is true, which indicates that the routing rule is executed at each call; enabled is true, which indicates that the current routing is effective; key is governance-conditionrouter-consumer, which indicates that the current routing information applies to governance-conditionrouter-consumer; there are two conditions, application=>app1=>address*.20880, which indicates that the request sent by the first application app1 can only be routed to all service instances with port 20880; application=>app1=>address*.20881, which indicates that the request sent by the second application app2 can only be routed to all service instances with port 20881.

[0097] exist Figure 4 In the example, scope is service, which indicates that the current routing rule applies to the service granularity; force is true, which indicates that the routing rule must be enforced when the routing result is empty; runtime is true, which indicates that the routing rule is executed at each call; enaled is true, which indicates that the current routing is effective; key is org.apache.dubbo.samples.governance.api.DemoService, which indicates that the current routing information applies to org.apache.dubbo.samples.governance.api.DemoService; there are two conditions, method=>sayHello=>address*.20880, which indicates that if the method for initiating a data request is the sayHello method, the data request can only be used to route to the service instance with port 20880; method=>sayHi=>address*.20881, which indicates that if the method for initiating a data request is the sayHi method, the data request can only be used to route to all service instances with port 20881.

[0098] from Figure 3 and Figure 4It can be seen from the parameter definition of conditional routing that there are abundant parameters for configuring routing conditions in conditional routing, but conditional routing depends on the Internet Protocol (IP) address of the container that hosts the service instance. Therefore, conditional routing is suitable for scenarios where the IP address of the container that hosts the service instance can be clearly determined. However, in actual applications, as the device or container where the service instance is located runs for a long time, the container is prone to needing to be restarted. Once the container is restarted, the IP address of the container will be reallocated, causing the set routing conditions to become invalid.

[0099] In the information processing method provided by the present application, the data request is sent to the second device based on the identifier of the second device, namely the first identifier, and the identifier of the second device does not change during the restart of the second device or the container it carries. Therefore, sending the data request to the second device based on the identifier of the second device, namely the first identifier, can reduce the risk of routing condition failure caused by the reliance on the container IP address in the related technology, thereby achieving the stability and robustness of the first device's control conditions for data request routing, and laying the foundation for efficient and rapid execution of grayscale releases.

[0100] In practical applications, steps 201 to 203 can be implemented using a processor in the first device, and the processor can be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor.

[0101] From the above, it can be seen that since the information processing method of the present application sends a data request based on the identification of the second device, it can reduce the instability caused by the conditional routing in the related technology relying on the container IP address, thereby achieving the effectiveness and stability of the routing control on the first device side during the grayscale release process, and then achieving the stable implementation of the grayscale release at the data request end, that is, the first device.

[0102] In one implementation, the information processing method provided in the embodiment of the present application further includes:

[0103] Based on the data request and the first grayscale rule, additional information is determined; wherein the additional information represents identification information of the target service node; the target service node represents a target node in the second device that provides services for the data request;

[0104] Based on the first identifier, the additional information is sent to the second device.

[0105] In one implementation, the target service node may be used to represent a target node in the second device that carries a service instance that provides a service for the data request.

[0106] In one implementation, the target service node may be used to represent a node in the second device that carries a container of a service instance that provides a service for the data request.

[0107] In one implementation, the target service node may be used to represent a node in the second device that carries a container of a grayscale version of a service instance that provides a service for a data request and / or a formal version of a service instance.

[0108] In one implementation, the target service node may be used to represent a service instance in a second device managed by the Dubbo framework that provides services for the data request.

[0109] In one implementation, the target service node may be used to represent a node carrying a label in a label routing definition.

[0110] Among them, label routing is to divide one or more service instances into the same group and configure the same label for the above one or more service instances, so that the routing control of data requests with different labels can be achieved through label matching operations, such as making data requests flow only in the service instance group with the specified label. Therefore, label routing can achieve the purpose of traffic isolation. In practical applications, label routing can be used as the routing basis for scenarios such as blue-green release and grayscale release.

[0111] In the Dubbo framework, labels are mainly used to label service instances on the service provider side through dynamic rule labeling and static rule labeling, so as to group service instances according to the label. Among them, dynamic rule labeling has a higher priority than static rule labeling. When the two rules exist at the same time and there is a conflict, dynamic rule labeling is usually used as the main method.

[0112] In actual applications, label routing is suitable for business scenarios where data requests directly carry service instance labels or routing rules are not too complex.

[0113] Correspondingly, the additional information can be used to represent the label information defined in the label routing described in the above embodiment.

[0114] In one implementation, the additional information is determined after parsing the source of the data request based on the first grayscale rule.

[0115] In one implementation, the additional information is determined after parsing the type of data request based on the first grayscale rule.

[0116] In one implementation, the additional information is determined after parsing the target data of the data request based on the first grayscale rule.

[0117] In one implementation, sending the additional information to the second device may include adding the additional information to a data request and sending the data request carrying the additional information to the second device.

[0118] In one embodiment, the additional information is sent to the second device by encoding, encrypting, and other processing the additional information according to a preset timing relationship after the data request is sent, and then sending the additional information to the second device based on the first identifier.

[0119] From the above, it can be seen that in the information processing method provided by the embodiment of the present application, when the first device sends a data request to the second device, it can also send additional information representing the identification information of the target service node to the second device based on the first identifier. Therefore, on the one hand, the sending operation of additional information based on the first identifier can achieve stable sending of additional information; on the other hand, the second device can also perform a second grayscale routing control of the data request receiving end based on the additional information, because it provides a conditional basis for full-link grayscale routing control.

[0120] In one implementation, obtaining the first grayscale rule may include:

[0121] Obtain a first information list; the first information list includes a first list and a second list, the first list represents an identification list of at least one second device that processes any data request during grayscale release; the second list represents an identification list of at least one service node in the second device during grayscale release; at least one service node is used to provide services for a data request sent by any first device;

[0122] Based on the first information list, a first grayscale rule is obtained.

[0123] In one implementation, the first list represents an identification list of at least one second device.

[0124] In one embodiment, at least one second device is used to process any data request from any first device during the grayscale release.

[0125] In one embodiment, at least one second device is used to process any data request from a designated first device during a grayscale release.

[0126] In one embodiment, at least one second device is used to process any data request sent by a designated first device within a set time period during a grayscale release.

[0127] In one embodiment, at least one second device is used for processing any data request sent by a specified first device by a certain account during the grayscale release.

[0128] In one implementation, the second list may be used to represent a list of identifiers of all service nodes in at least one second device during a grayscale release.

[0129] In one implementation, the second list may be used to represent a list of identifiers of specific service nodes in at least one second device during a grayscale release.

[0130] In one implementation, the second list may be used to represent a list of identifiers of service nodes of a specified type in at least one second device during a grayscale release.

[0131] In one implementation, the second list may be used to represent a list of identifiers of service instances carrying grayscale versions and / or official versions in at least one second device during a grayscale release, for example, a list of tags of service instances.

[0132] In one embodiment, the first information list includes a first list and a second list, wherein each second device identifier in the first list and the identifier of at least one service node in the second list may be mutually associated. For example, if the K2th second device carries the Pth to Lth service instances, then the identifier of the K2th second device and the identifier of the Pth to Lth service instances are mutually associated.

[0133] In one embodiment, the first information list can be obtained by the first device from the registration center of the Dubbo framework. In the Dubbo framework, any changes to the service instance, including changes to the version and configuration information, will be notified to the registration center in a timely manner, so the registration center can obtain the latest first information list; and the registration center can also publish the latest first information list to all first devices in the Dubbo framework.

[0134] In one implementation, the first grayscale rule may be obtained by screening the first list and the second list in the first information list.

[0135] In the information processing method provided in the embodiment of the present application, based on the first information list, the first grayscale rule is obtained, so that the obtained first grayscale rule corresponds to the first information list, providing a basis for stable data communication between the data sending end and the data receiving end.

[0136] In one implementation, in the information processing method provided in the embodiment of the present application, obtaining the first grayscale rule based on the first information list includes:

[0137] Determine the grayscale release configuration information;

[0138] Based on the grayscale release configuration information, determine the first grayscale control information and the second grayscale control information; wherein the first grayscale control information is used to determine whether it is necessary to parse the second list in the first information list; the second grayscale control information is used to establish an association relationship between the type of any data request and the second device identifier in the first list during grayscale release;

[0139] A first grayscale rule is acquired based on the first information list, the first grayscale control information, and the second grayscale control information.

[0140] In one implementation, the grayscale release configuration information is used to perform routing control on data requests during the grayscale release process, thereby determining corresponding target nodes for different data requests.

[0141] In one embodiment, the grayscale release configuration information is used to control the routing of data requests according to the type of data requests during the grayscale release process, thereby enabling the data requests to be routed to a specified grayscale version of the service instance or a formal version of the service instance.

[0142] In one embodiment, the grayscale release configuration information is used to control the routing of data requests according to the source of the data requests during the grayscale release process, thereby enabling the data requests to be routed to a service instance of a specified grayscale version or a service instance of a formal version.

[0143] In one embodiment, the grayscale release configuration information is used to control the routing of data requests according to the target data requested by the data requests during the grayscale release process, thereby enabling the data requests to be routed to a specified grayscale version of the service instance or a formal version of the service instance.

[0144] In one embodiment, the grayscale release configuration information is a list of a series of configuration information, which includes control information in the grayscale release process, such as routing requests initiated by users of the first category to the corresponding second devices of the first category, and routing data requests initiated by users of the Uth type to the corresponding second devices of the Uth category. U is an integer greater than 2.

[0145] In one implementation, the first grayscale control information includes a condition for resolving an identifier of at least one service node in the second list.

[0146] In one implementation, the first grayscale control information includes a condition of not resolving an identifier of at least one service node in the second list.

[0147] In one implementation, the first grayscale control information includes a method for parsing an identifier of at least one service node in the second list.

[0148] In one embodiment, the first grayscale control information includes a condition for a resolution depth when resolving an identifier of at least one service node in the second list, wherein the resolution depth includes whether encoding, encryption, and the like operations need to be performed on the identifier of at least one service node.

[0149] In one implementation, the second grayscale control information includes a condition for establishing an association relationship between the type of any data request and at least one second device identifier.

[0150] In one implementation, the second grayscale control information includes a condition that an association relationship between the type of any data request and at least one second device identifier is not established.

[0151] In one implementation, the second grayscale control information includes a method for establishing an association relationship between the type of any data request and at least one second device identifier.

[0152] Exemplarily, based on the first information list, the first grayscale control information and the second grayscale control information, the first grayscale rule is obtained. It can be based on the first grayscale control information, determining whether to parse the second list in the first information list to obtain a fourth parsing result, and then based on the second grayscale control information, for the fourth parsing result, establishing an association between the type of any data request and the second device identifier, thereby obtaining the first grayscale rule.

[0153] In the information processing method provided in the embodiment of the present application, the first grayscale rule is obtained based on the first grayscale control information, the second grayscale control information, and the first information list in the grayscale release configuration information. Therefore, the obtained first grayscale rule can comprehensively and fully reflect the requirements of grayscale release contained in the first information list and the grayscale release configuration information, thereby laying a foundation for the subsequent stable grayscale release at the first device.

[0154] In one implementation, acquiring the first grayscale rule based on the first information list, the first grayscale control information, and the second grayscale control information may include:

[0155] Based on the first grayscale control information, the first information list is parsed to obtain a second information list; wherein the second information list is the first list, or includes the first list and the second list;

[0156] Based on the second information list and the second grayscale control information, a first grayscale rule is acquired.

[0157] In one implementation, parsing the first information list based on the first grayscale control information may be determining whether to parse the second list in the first information list based on the first grayscale control information.

[0158] In one implementation, parsing the first information list based on the first grayscale control information may be to determine a condition for parsing the second list in the first information list based on the first grayscale control information, and then to parse the second list based on the condition.

[0159] In one implementation, parsing the first information list based on the first grayscale control information may be to determine how to parse the second list in the first information list based on the first grayscale control information, and then parse the second list based on the method.

[0160] Correspondingly, if the first grayscale control information defines that the second list does not need to be parsed, the obtained second information list only includes the first list.

[0161] If it is determined in the first grayscale control information that the second list needs to be parsed, the obtained second information list may include the first list and the second list.

[0162] In one implementation, whether the second list needs to be parsed is determined in the first grayscale control information based on the following situations:

[0163] When only one grayscale version and one official version are released, and the service instances corresponding to the grayscale version and the official version are respectively deployed on different second devices, the second list may not be parsed.

[0164] When at least two grayscale versions, such as a first grayscale version and a second grayscale version, and a formal version are released, and the first grayscale version is deployed on a first second device, the second grayscale version is deployed on a second second device, and the formal version is deployed on a third second device, that is, different versions are deployed on different second devices, then the second list may not be parsed.

[0165] When at least two grayscale versions are released, such as a first grayscale version and a second grayscale version, and a formal version is released, and the first grayscale version and the second grayscale version may be deployed on the same second device, the second list needs to be parsed. In this way, when the second device receives a data request, the service instance that is ultimately used to provide services for the data request can be determined based on the additional information.

[0166] When at least two grayscale versions are released, such as a first grayscale version and a second grayscale version, and a formal version is released, and at least two of the first grayscale version, the second grayscale version and the formal version may be deployed on the same second device, the second list needs to be parsed. In this way, when any second device receives a data request, the service instance that is ultimately used to provide services for the data request can be determined based on the additional information.

[0167] It should be noted that when there is no need to parse the second list, in order to facilitate the processing of the second device that receives the data request, a specific identifier can be added to the data request when sending the data request, and the data request with the specific identifier added can be sent to the second device; or, after sending the data request, a specific identifier can be sent to the second device according to a preset timing relationship. Among them, the specific identifier can be used to represent a customized identifier for grayscale release, or an existing identifier in the Dubbo framework can be used.

[0168] In addition, for the first identifier, it can be stored in the first list of the first information list, or it can be obtained through the grayscale release configuration information. When determining to grayscale release the software version providing the service, the identifier of at least one second device carrying the software version can be determined before the grayscale release, and the identifier of at least one second device can be added to the grayscale release configuration information. When it is necessary to obtain the first grayscale rule, the identifier of at least one second device can be directly obtained from the grayscale release configuration information, and added to the first grayscale rule according to the needs of grayscale routing.

[0169] In the information processing method provided in the embodiment of the present application, the first grayscale control information is used to determine whether to parse the second list in the first information list to obtain the second information list, and the second information list is parsed based on the second grayscale control information to obtain the first grayscale rule. Thus, the first grayscale rule obtained can fully reflect the specific requirements of grayscale publishing in the grayscale publishing configuration information, and realize a more targeted and flexible parsing of the first information list.

[0170] Figure 5 An information processing method applied to a second device provided in an embodiment of the present application.

[0171] In one implementation, the second device may be used to represent a device that participates in a grayscale release and is deployed with a grayscale version and / or a formal version.

[0172] In one implementation, the second device may be used to represent a device in the Dubbo framework that participates in a grayscale release and is deployed with a grayscale version and / or a formal version.

[0173] like Figure 5 As shown, the information processing method may include the following steps:

[0174] Step 501: Receive a data request sent by a first device based on a first identifier.

[0175] Among them, the first identifier represents the identifier of the second device that processes the data request; the first identifier is determined based on the first grayscale rule and the data request; the first grayscale rule is used to represent the rules for executing routing control when the first device performs grayscale release of the data request.

[0176] Step 502: Perform routing control on data requests during grayscale release.

[0177] From the above, it can be seen that during grayscale release, after the first device performs routing control on the data request when performing grayscale release, the second device performs routing control again on the data request received from the first device, thereby realizing the function of performing grayscale routing control on both the first device side and the second device side for a data request. In other words, both the sender of the data request and the receiver of the data request can perform routing control on the data request, thereby realizing full-link grayscale routing control of the data request; and, since the routing control operation performed by the first device based on the first grayscale rule is performed through the first identifier of the second device, the stability and robustness of the grayscale release are improved.

[0178] In one implementation, in the information processing method provided in the embodiment of the present application, routing control of data requests is performed during grayscale release, including:

[0179] Receiving additional information sent by the first device based on the first identifier; wherein the additional information represents identification information of the target service node; the target service node represents a target node that provides services for the data request;

[0180] Based on the additional information, data requests are routed and controlled during grayscale release.

[0181] In one implementation, the target service node may be used to indicate a target node in the second device that carries a service instance that can provide a service for the data request.

[0182] In one implementation, the target service node may be used to represent a node in the second device that carries a container of a service instance that can provide a service for the data request.

[0183] In one implementation, the target service node may be used to represent a node in the second device that carries a container of a grayscale version of a service instance that can provide a service for a data request and / or a formal version of a service instance.

[0184] In one implementation, the target service node may be used to represent a node of a service instance in a second device of the Dubbo framework that provides services for the data request.

[0185] In one implementation, the target service node may be used to represent a service instance carrying a label in the label routing definition described above.

[0186] Accordingly, the additional information can be used to represent the label information defined in the label routing described above.

[0187] In one implementation, the additional information obtained by the second device may be obtained after the second device parses the data request.

[0188] In one implementation, the additional information obtained by the second device may be a timing relationship preset by the second device, and after receiving the data request, the second device receives the encoded and encrypted additional information, and performs operations such as decryption and decoding on the additional information.

[0189] It should be noted that when the first device does not need to parse the second list in the first information list, in order to facilitate the second device that receives the data request to process, a specific identifier can be added to the data request when sending the data request, and the data request with the specific identifier added can be sent to the second device; or, after sending the data request, a specific identifier can be sent to the second device according to a preset timing relationship. Among them, the specific identifier can be used to represent a customized identifier for grayscale release, or an existing identifier in the Dubbo framework can be used.

[0190] In one implementation, in the information processing method provided in the embodiment of the present application, based on the additional information, routing control is performed on the data request during the grayscale release, including:

[0191] Determine a second grayscale rule; wherein the second grayscale rule represents a rule for determining a second identifier; the second identifier represents at least one service node identifier; at least one service node represents a target node in the second device that provides services for any data request during grayscale release;

[0192] The additional information is parsed based on the second grayscale rule to obtain an additional information parsing result, and based on the additional information parsing result, routing control is performed on the data request during grayscale release.

[0193] In one implementation, at least one service node may be used to represent a node carrying a service instance that provides service for any data request in the second device during a grayscale release.

[0194] In one implementation, at least one service node may be used to represent a service instance in the second device that provides service for any data request during a grayscale release.

[0195] In one implementation, at least one service node may be used to represent a node in the second device that provides services for any data request and carries a service instance during a grayscale release process based on the Dubbo framework.

[0196] In one implementation, the second grayscale rule may be used to represent a rule for determining the second identifier corresponding to any data request in the grayscale publishing process.

[0197] In one implementation, the second grayscale rule may be obtained after the second device receives a data request sent by the first device based on the first identifier.

[0198] In one implementation, the second grayscale rule may be stored in the second device before the second device receives the data request sent by the first device based on the first identifier.

[0199] In one implementation, the second grayscale rule includes a condition for performing a matching analysis on the additional information.

[0200] In one implementation, the second grayscale rule includes a method for performing matching analysis on the additional information.

[0201] In one implementation, the second grayscale rule includes the depth of matching analysis of the additional information, such as whether matching analysis of the additional information is required when the service instance is switched when the processing of the data request involves multiple service instances.

[0202] In one implementation, the additional information is parsed based on the second grayscale rule to obtain an additional information matching result, and the data request is routed and controlled based on the additional information parsing result when the grayscale release is performed. The additional information may be parsed based on the condition for parsing and analyzing the additional information contained in the second grayscale rule to obtain the additional information parsing result, and the data request is routed and controlled based on the additional information parsing result when the grayscale release is performed. For example, when the amount of additional information is greater than a preset threshold, the additional information is parsed.

[0203] In one implementation, the additional information is parsed based on the second grayscale rule to obtain the additional information parsing result, and the data request is routed and controlled based on the additional information parsing result when the grayscale release is performed. The additional information can be parsed based on the method of matching and analyzing the additional information included in the second grayscale rule to obtain the additional information parsing result, and the data request is routed and controlled based on the additional information parsing result when the grayscale release is performed. For example, the data of the specified field of the additional information is parsed, or several specified fields are parsed.

[0204] In one implementation, the additional information is parsed based on the second grayscale rule to obtain the additional information parsing result, and based on the additional information parsing result, the data request is routed and controlled when the grayscale is released. The additional information can be parsed based on the depth of the matching analysis of the additional information contained in the second grayscale rule to obtain the additional information parsing result, and based on the additional information parsing result, the data request is routed and controlled when the grayscale is released. For example: when switching between multiple service instances or multiple systems caused by a long data request processing chain, whether the additional information is parsed at each service instance or each system.

[0205] In the information processing method provided in the embodiment of the present application, the routing control of the data request is an operation performed after the additional information is parsed based on the second grayscale rule. In other words, in the process of routing control of the data request by the second device, a unified operation of parsing the additional information is not adopted, but it is performed according to the second grayscale rule. As a result, the routing control performed at the second device is more targeted and flexible.

[0206] In one implementation, in the information processing method provided in the embodiment of the present application, determining the second grayscale rule includes:

[0207] Obtain a first information list; wherein the first information list includes a first list and a second list, the first list represents an identification list of at least one second device that processes any data request during grayscale release; the first list includes a first identification; the second list represents an identification list of at least one service node during grayscale release;

[0208] Based on the first information list, a second grayscale rule is determined.

[0209] In one implementation, the second grayscale rule is determined based on the first information list, and the second grayscale rule may be determined by analyzing a second list included in the first information list.

[0210] In the information processing method provided in the embodiment of the present application, the second grayscale rule is determined based on the first information list. Therefore, the second grayscale rule can reflect the objective information of the data request receiving device and node during the grayscale publishing process, thereby improving the stability and reliability of subsequent routing control.

[0211] Exemplarily, the information processing method provided in the embodiment of the present application determines the second grayscale rule based on the first information list, including:

[0212] Get the grayscale release configuration information;

[0213] Based on the grayscale release configuration information, determine the third grayscale control information; wherein the third grayscale control information is used to establish an association relationship between a service node identifier corresponding to any data request and at least one service node identifier in the second list during grayscale release;

[0214] Based on the first information list and the third grayscale control information, a second grayscale rule is determined.

[0215] In one implementation, the third grayscale control information includes a condition for resolving an identifier of at least one service node in the second list.

[0216] In one implementation, the third grayscale control information includes a condition of not resolving an identifier of at least one service node in the second list.

[0217] In one implementation, the third grayscale control information includes a method for parsing the identifier of at least one service node in the second list.

[0218] In one embodiment, the third grayscale control information includes conditions for the resolution depth when resolving the identifier of at least one service node in the second list, wherein the resolution depth includes whether encoding, encryption, etc. of the identifier of at least one service node is required.

[0219] Exemplarily, based on the first information list and the third grayscale control information, the second grayscale rule is obtained. It can be based on the third grayscale control information to determine whether to parse the second list in the first information list to obtain a fifth parsing result, and then based on the second grayscale control information, for the fifth parsing result, an association relationship between the type of any data request and the second device identifier is established to determine the second grayscale rule.

[0220] Exemplarily, based on the first information list and the third grayscale control information, the second grayscale rule is obtained. It can be based on the third grayscale control information to determine how to parse the second list in the first information list to obtain a sixth parsing result, and then based on the second grayscale control information, for the sixth parsing result, establish an association between the type of any data request and the second device identifier to determine the second grayscale rule.

[0221] Exemplarily, based on the first information list and the third grayscale control information, the second grayscale rule is obtained. The parsing depth of the second list in the first information list can be determined based on the third grayscale control information to obtain a seventh parsing result, and then based on the second grayscale control information, for the seventh parsing result, an association relationship between the type of any data request and the second device identifier is established to determine the second grayscale rule.

[0222] For example, taking the grayscale release process based on the Dubbo framework as an example, when the information processing method provided in the embodiment of the present application is applied in the first device and the second device, the process implemented by the first device and the second device in cooperation is as follows: Figure 6 As shown:

[0223] exist Figure 6 In the grayscale release process based on the Dubbo framework, it is necessary to complete the grayscale release process under the management of the Dubbo framework through the collaboration of the first device, the second device, the registration center of the Dubbo framework, and the grayscale release configuration information.

[0224] exist Figure 6 In the present invention, when the first device detects a data request, the first identifier is determined based on the first grayscale rule and the data request, and the data request is sent to the second device based on the first identifier. At the same time, additional information of the data request, i.e., the label of the target service instance, can be sent to the second device based on the first identifier.

[0225] When the second device receives a data request sent by the first device based on the first identifier, it performs routing control on the data request during the grayscale release. Specifically, it can receive additional information sent by the first device based on the first identifier, and then based on the additional information, perform routing control on the data request during the grayscale release.

[0226] Exemplarily, the first device can obtain a first information list from a registration center; and based on the first information list, obtain a first grayscale rule.

[0227] Exemplarily, the first device obtains the first grayscale rule based on the first information list, including: the first device determines the grayscale release configuration information, and based on the grayscale release configuration information, determines the first grayscale control information and the second grayscale control information; and obtains the first grayscale rule based on the first information list, the first grayscale control information and the second grayscale control information.

[0228] Exemplarily, the first device obtains the first grayscale rule based on the first information list, the first grayscale control information and the second grayscale control information, including: parsing the first information list based on the first grayscale control information to obtain the second information list; and obtaining the first grayscale rule based on the second information list and the second grayscale control information.

[0229] Exemplarily, the second device, based on the additional information, performs routing control on the data request during the grayscale release, including: determining a second grayscale rule; parsing the additional information based on the second grayscale rule to obtain an additional information parsing result, and based on the additional information parsing result, performing routing control on the data request during the grayscale release.

[0230] Exemplarily, the second device determines the second grayscale rule, including: acquiring a first information list; and determining the second grayscale rule based on the first information list.

[0231] Exemplarily, the second device determines the second grayscale rule based on the first information list, including: obtaining grayscale release configuration information; determining third grayscale control information based on the grayscale release configuration information; and determining the second grayscale rule based on the first information list and the third grayscale control information.

[0232] Exemplarily, the first device and the second device may respectively obtain the same grayscale release configuration information.

[0233] After the service instance in the second device is developed, the instance is registered with the registration center.

[0234] Among them, the development of service instances can be based on Platform-as-a-Service (PAAS). Before the service instance is started, PAAS can be used to classify the service instance and set tags for the service instance. The tags will be injected into the environment variables when the service instance is started. The Dubbo framework can obtain the tags injected into the environment variables and register them to the registration center. The registration center generates a first information list based on the obtained environment variables and the identifier of each second device.

[0235] After receiving a new service instance registration, the registration center will publish the latest first information list to each first device managed by the Dubbo framework, so that the first device can obtain the latest first information list.

[0236] Correspondingly, the second device can also obtain the first information list from the registration center according to the need of generating the second grayscale rule, and process the first information list based on the grayscale publishing configuration information to determine the second grayscale rule.

[0237] Accordingly, the parsing of the additional information in the aforementioned content can be implemented by the method of Dubbo attachment parameters. In order to facilitate the use of the parsing mechanism of the Dubbo framework, the additional information can carry Dubbo attachment parameters. Thus, the label of the target service instance in the Dubbo attachment parameter can be matched through the operation function.

[0238] The following matching operation functions are currently supported: Regular expression matching: determine whether the specified parameters in the Dubbo attachment match the regular expression; Mathematical operation matching: determine whether the specified parameters in the Dubbo attachment match the corresponding data operation; IP address to province matching: obtain the province from the IP address for the specified parameters in the Dubbo attachment to determine whether it matches; IP to city matching: obtain the city from the IP address for the specified parameters in the Dubbo attachment to determine whether it matches.

[0239] If the result of parsing the additional information indicates that the tag of the target service instance is not found in the second device, an error message may be returned to the first device, or the current data request may be redirected to a service instance with a public tag for processing.

[0240] If the parsing result of the additional information indicates that the target service instance is found in the second device, the data request is routed to the target service instance to provide service for the data request.

[0241] That is to say, the information processing method provided in the embodiment of the present application can perform grayscale routing control at the data request sending end, i.e., the first device end, and the data request receiving end, i.e., the second device end, respectively when a data request is detected, thereby realizing grayscale routing control of the entire link. Figure 7 As shown: the full-link grayscale routing control includes three parts: routing control of the data request sender, calling the transmission data request, and routing control of the data request receiver.

[0242] Among them, the routing control at the data request sending end can be used to represent the grayscale routing control at the data request initiating end. Usually, the grayscale at the data initiating end is mainly implemented through the gateway device at the data initiating end, that is, the first device in the information processing method provided in the embodiment of the present application can be a gateway device.

[0243] The call chain transmits the data request, and the data request may be transmitted through a communication bus connecting a data request sending end device and a data request receiving end device.

[0244] The routing control at the data request receiving end may be grayscale routing control at a second device that is managed by the Dubbo framework and has multiple service instances deployed thereon, and the determination of the label in the second device may be based on relevant mechanisms in the Dubbo framework.

[0245] exist Figure 7 In the full-link grayscale routing control process shown, for the routing rules of any data request, routing control can be performed at the data request sending end, wherein the data request sending end can be a first device, and the first device can be a gateway device. When the data request is sent, the data request is parsed at the data request sending end, and the first identifier of the data request receiving end device such as the second device obtained by the parsing is used to determine the routing control of the data request according to the first identifier, and then the data request is transmitted by calling a connection. When the data request receiving end such as the second device obtains the data request, it can directly perform label matching to route the data request to the target service instance.

[0246] For example, the specific process of the information processing method provided in the embodiment of the present application is as follows: Figure 8 As shown. Figure 8 In the PAAS platform, labels can be set for service instances in at least one second device, and the labeled service instances can be registered to the registration center based on the management mechanism of the Dubbo framework. The registration center can generate a first information list based on these service instances. Both the first device and the second device can obtain the first information list, and configure routing rules based on the first information list and the grayscale publishing configuration information, that is, the first device obtains the first grayscale rule, and the second device determines the second grayscale rule.

[0247] When a data request is sent, the first device first parses the routing rules and performs a matching routing rule operation based on the resolved routing rules. If the match is successful, that is, the corresponding first identifier is found for the data request, the data request is routed to the second device. If the match fails, that is, the corresponding first identifier cannot be found, exception handling is performed, such as reporting an error, or the data request is routed to a service instance configured with a public tag.

[0248] Based on the information processing method proposed in the above-mentioned embodiment, the embodiment of the present application proposes a first device 9.

[0249] Fig. 9 This is a schematic diagram of the composition structure of the first device 9 of the embodiment of the present application, such as Fig. 9 As shown, the first device 9 may include:

[0250] A first acquisition module 91, a first processing module 92 and a sending module 93;

[0251] A first acquisition module 91 is used to acquire a first grayscale rule when a data request is detected; wherein the first grayscale rule is used to represent a rule for executing routing control when grayscale publishing is performed on the data request;

[0252] A first processing module 92 is used to determine a first identifier based on a first grayscale rule and a data request; wherein the first identifier represents an identifier of a second device that processes the data request;

[0253] The sending module 93 is also used to send the data request to the second device based on the first identifier; wherein the second device is used to perform routing control when the data request is released in grayscale.

[0254] From the above, it can be seen that since the first device of the present application sends a data request based on the identification of the second device, it can enhance the stability of the conditional routing in the related technology, thereby achieving the effectiveness and stability of the routing control on the first device side during the grayscale release process, and thus achieving efficient grayscale release.

[0255] In one implementation, the first device 9 provided in the embodiment of the present application may further perform the following operations:

[0256] The first processing module 92 is used to determine additional information based on the data request and the first grayscale rule; wherein the additional information represents identification information of the target service node; the target service node represents a target node in the second device that provides services for the data request;

[0257] The sending module 93 is used to send the additional information to the second device based on the first identifier.

[0258] In one implementation, the first device 9 provided in the embodiment of the present application may further perform the following operations:

[0259] The first acquisition module 91 is used to acquire a first information list; the first information list includes a first list and a second list, the first list represents an identification list of at least one second device that processes any data request during grayscale release; the second list represents an identification list of at least one service node in the second device during grayscale release; at least one service node is used to provide services for a data request sent by any first device;

[0260] The first acquisition module 91 is further configured to acquire a first grayscale rule based on the first information list.

[0261] In one implementation, the first device 9 provided in the embodiment of the present application may further perform the following operations:

[0262] The first processing module 92 is used to determine the grayscale release configuration information; based on the grayscale release configuration information, determine the first grayscale control information and the second grayscale control information; wherein the first grayscale control information is used to determine whether it is necessary to parse the second list in the first information list; the second grayscale control information is used to establish an association relationship between the type of any data request and the second device identifier in the first list during grayscale release;

[0263] The first acquisition module 91 is used to acquire a first grayscale rule based on the first information list, the first grayscale control information and the second grayscale control information.

[0264] In one implementation, the first device 9 provided in the embodiment of the present application may further perform the following operations:

[0265] A first acquisition module 91 is used to parse the first information list based on the first grayscale control information to obtain a second information list; wherein the second information list is the first list, or includes the first list and the second list;

[0266] The first acquisition module 91 is further configured to acquire a first grayscale rule based on the second information list and the second grayscale control information.

[0267] The first acquisition module 91, the first processing module 92 and the sending module 93 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor, which are not specifically limited in the present embodiment.

[0268] Based on the above embodiments, the present application embodiment provides a second device 10, such as Fig.10 As shown, the second device 10 includes: a receiving module 1001 and a second processing module 1002. Among them:

[0269] The receiving module 1001 is used to receive a data request sent by a first device based on a first identifier; the first identifier includes: an identifier for indicating a second device that processes the data request; the first identifier is determined by the first device based on a first grayscale rule and the data request; the first grayscale rule is used to indicate a rule for executing routing control when the first device performs grayscale release of the data request;

[0270] The second processing module 1002 is used to perform routing control on data requests during grayscale release.

[0271] In one implementation, the second device 10 provided in the embodiment of the present application may further perform the following operations:

[0272] The receiving module 1001 is further configured to receive additional information sent by the first device based on the first identifier; wherein the additional information represents the identifier information of the target service node; and the target service node represents the target node that provides services for the data request;

[0273] The second processing module 1002 is used to perform routing control on the data request when the grayscale release is performed based on the additional information.

[0274] In one implementation, the second device 10 provided in the embodiment of the present application may further perform the following operations:

[0275] The second processing module 1002 is used to determine a second grayscale rule; wherein the second grayscale rule represents a rule for determining a second identifier; the second identifier represents at least one service node identifier; and at least one service node represents a target node in the second device that provides services for any data request during grayscale release.

[0276] The second processing module 1002 is further used to parse the additional information based on the second grayscale rule to obtain an additional information parsing result, and based on the additional information parsing result, perform routing control on the data request during grayscale release.

[0277] In one implementation, the second device 10 provided in the embodiment of the present application may further perform the following operations:

[0278] The second processing module 1002 is used to obtain a first information list; wherein the first information list includes a first list and a second list, the first list represents an identification list of at least one second device that processes any data request during the grayscale release; the second list represents an identification list of at least one service node during the grayscale release;

[0279] The second processing module 1002 is further configured to determine a second grayscale rule based on the first information list.

[0280] In one implementation, the second device 10 provided in the embodiment of the present application may further perform the following operations:

[0281] The second processing module 1002 obtains grayscale release configuration information; based on the grayscale release configuration information, determines third grayscale control information; wherein the third grayscale control information is used to establish an association relationship between a service node identifier corresponding to any data request and at least one service node identifier in the second list during grayscale release;

[0282] The second processing module 1002 is further configured to determine a second grayscale rule based on the first information list and the third grayscale control information.

[0283] The receiving module 1001 and the second processing module 1002 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor, which are not specifically limited in the present embodiment.

[0284] From the above, it can be seen that, during grayscale release, after the first device performs routing control on the data request when performing grayscale release, the second device performs routing control again on the data request received from the first device, thereby realizing the function of performing grayscale routing control on both the first device side and the second device side for one data request, that is, the first device and the second device realize full-link grayscale routing control for the same data request; and, since the routing control operation performed by the first device based on the first grayscale rule is performed through the first identifier of the second device, the stability and robustness of the full-link grayscale routing control are realized.

[0285] Based on the same technical concept as the above embodiment, the present application embodiment further provides a first device 11, see Fig.11 , the first device 11 may include: a first memory 1101 and a first processor 1102; wherein,

[0286] A first memory 1101, configured to store computer programs and data;

[0287] The first processor 1102 is configured to execute the computer program stored in the memory to implement any one of the information processing methods applied to the first device in the aforementioned embodiments.

[0288] It should be noted that the first device 11 is the same device as the first device 9 mentioned above.

[0289] Based on the same technical concept as the above embodiments, see Fig.12 , which shows a second device 12 provided in an embodiment of the present application, which may include: a second memory 1201 and a second processor 1202; wherein,

[0290] A second memory 1201, configured to store computer programs and data;

[0291] The second processor 1202 is configured to execute the computer program stored in the memory to implement any one of the information processing methods applied to the second device in the aforementioned embodiments.

[0292] It should be noted that the second device 12 is the same device as the second device 10 mentioned above.

[0293] In practical applications, the first memory 1101 and the second memory 1201 may be volatile memories, such as random access memories (RAM); or non-volatile memories, such as read-only memories (ROM), flash memories, hard disk drives (HDD) or solid-state drives (SSD); or a combination of the above types of memories, and provide instructions and data to the first processor 1102 and the second processor 1202.

[0294] The first processor 1102 and the second processor 1202 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. It is understandable that for different augmented reality cloud platforms, the electronic device used to implement the above processor functions may also be other, which is not specifically limited in the embodiments of the present application.

[0295] Based on the above embodiments, the present application embodiment provides an information processing system 13, such as Fig.13 As shown, the information processing system 13 includes: a first device 1301, a second device 1302 and a communication bus 1303, wherein the communication bus 1303 is used to implement data transmission between the first device 1301 and the second device 1302.

[0296] The first device 1301 may be the first device 11 in the aforementioned embodiment, and the second device 1302 may be the second device 12 in the aforementioned embodiment.

[0297] In actual applications, the request chain corresponding to a data request is often long, which may involve multiple systems or multiple processes. Even so, in the grayscale release process, the routing conditions of a data request are often consistent. If a separate routing configuration principle is set for each service instance in a longer request chain, it is obviously unnecessary and very troublesome and complicated. The full-link grayscale routing control solution provided in the embodiment of the present application can provide stable routing control for each data request at the data sending end, i.e., the first device, and the data receiving end, i.e., the second device, thereby improving the efficiency of routing control.

[0298] Based on the above embodiments, Fig.14 As shown, an embodiment of the present application also provides a chip 14, including: a processor 1401, used to call and run a computer program from a memory so that a device equipped with the chip 14 executes the steps of an information processing method of a first device; or, used to call and run a computer program from a memory 1402 so that a device equipped with the chip 14 executes the steps of an information processing method of a second device.

[0299] The memory 1402 may be a separate device independent of the processor 1401 , or may be integrated into the processor 1401 .

[0300] In some embodiments, the chip 14 may further include an input interface 1403. The processor 1401 may control the input interface 1403 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0301] In some embodiments, the chip 14 may further include an output interface 1404. The processor 1401 may control the output interface 1404 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0302] In some embodiments, the chip can be applied to the first device and the second device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the first device and the second device in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0303] Based on the foregoing embodiments, the embodiments of the present application further provide a computer program product, wherein the computer program product comprises a computer storage medium, wherein the computer storage medium stores computer program code, wherein the computer program code comprises instructions that can be executed by at least one processor, and when the instructions are executed by the at least one processor, the steps of the information processing method applied to the first device described in the foregoing embodiments are implemented; or, when the instructions are executed by the at least one processor, the steps of the information processing method applied to the first device described in the foregoing embodiments are implemented.

[0304] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.

[0305] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0306] Specifically, the computer program instructions corresponding to an information processing method in this embodiment can be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the computer program instructions corresponding to an information processing method in the storage medium are read or executed by an electronic device, any information processing method in the aforementioned embodiments is implemented.

[0307] In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present application can be used to execute the method described in the above method embodiment. The specific implementation can refer to the description of the above method embodiment. For the sake of brevity, it will not be repeated here.

[0308] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0309] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0310] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0311] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0312] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0313] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0314] Industrial Applicability

[0315] The embodiment of the present application proposes an information processing method, device, medium, chip and program. Among them, the information processing method applied to the first device includes: when the data request is detected, a first grayscale rule is obtained; wherein the first grayscale rule is used to represent the rule for executing routing control when the data request is grayscale released; based on the first grayscale rule and the data request, a first identifier is determined; wherein the first identifier represents the identifier of the second device that processes the data request; based on the first identifier, the data request is sent to the second device; wherein the second device is used to execute routing control when the data request is grayscale released.

Claims

1. An information processing method, applied to a first device, the method comprising: When a data request is detected, a first grayscale rule is obtained; wherein the first grayscale rule is used to represent a rule for executing routing control when grayscale publishing is performed on the data request; Based on the first grayscale rule and the data request, determine a first identifier; wherein the first identifier represents an identifier of a second device that processes the data request; Based on the first identifier, the data request is sent to a second device; wherein the second device is used to perform routing control when the data request is released in a phased manner; Wherein, obtaining the first grayscale rule includes: Obtain a first information list; the first information list includes a first list and a second list, the first list represents an identification list of at least one second device that processes any data request during the grayscale release; the second list represents an identification list of at least one service node in the second device during the grayscale release; the at least one service node is used to provide services for any data request sent by the first device; Determine the grayscale release configuration information; Based on the grayscale release configuration information, determine first grayscale control information and second grayscale control information; wherein the first grayscale control information is used to determine whether it is necessary to parse the second list in the first information list; the second grayscale control information is used to establish an association relationship between the type of any data request and the second device identifier in the first list during grayscale release; The first grayscale rule is acquired based on the first information list, the first grayscale control information, and the second grayscale control information.

2. The method according to claim 1, wherein: The method further comprises: Based on the data request and the first grayscale rule, additional information is determined; wherein the additional information represents identification information of a target service node; the target service node represents a target node in the second device that provides service for the data request; Based on the first identifier, the additional information is sent to the second device.

3. The method according to claim 1, wherein: The acquiring the first grayscale rule based on the first information list, the first grayscale control information, and the second grayscale control information includes: Based on the first grayscale control information, the first information list is parsed to obtain a second information list; wherein the second information list is the first list, or includes the first list and the second list; Based on the second information list and the second grayscale control information, the first grayscale rule is acquired.

4. An information processing method, applied to a second device, the method comprising: A data request sent by a first device based on a first identifier is received; wherein the first identifier represents an identifier of a second device that processes the data request; the first identifier is determined by the first device based on a first grayscale rule and the data request; the first grayscale rule is used to represent a rule for executing routing control when the first device performs grayscale release on the data request; the first grayscale rule is obtained by a first information list, first grayscale control information, and second grayscale control information; the first grayscale control information and the second grayscale control information are obtained by grayscale release configuration information; the first information list includes a first list and a second list, the first list represents an identifier list of at least one second device that processes any data request during grayscale release; the second list represents an identifier list of at least one service node in the second device during grayscale release; the at least one service node is used to provide services for any data request sent by the first device; the first grayscale control information is used to determine whether it is necessary to parse the second list in the first information list; the second grayscale control information is used to establish an association relationship between the type of any data request and the identifier of the second device in the first list during grayscale release; The data request is routed and controlled during the grayscale release.

5. The method according to claim 4, wherein: The performing routing control on the data request during the grayscale release includes: Receiving additional information sent by the first device based on the first identifier; wherein the additional information represents identification information of a target service node; the target service node represents a target node that provides service for the data request; Based on the additional information, routing control is performed on the data request during the grayscale release.

6. The method according to claim 5, wherein: The performing routing control on the data request in the grayscale release based on the additional information includes: Determine a second grayscale rule; wherein the second grayscale rule represents a rule for determining a second identifier; the second identifier represents at least one service node identifier; the at least one service node represents a target node in the second device that provides services for any data request during grayscale release; The additional information is parsed based on the second grayscale rule to obtain an additional information parsing result, and based on the additional information parsing result, routing control is performed on the data request during grayscale release.

7. The method according to claim 6, wherein: The determining of the second grayscale rule comprises: Obtain a first information list; wherein the first information list includes a first list and a second list, the first list represents an identification list of at least one second device that processes any data request during the grayscale release; the second list represents an identification list of at least one service node during the grayscale release; Based on the first information list, the second grayscale rule is determined.

8. The method according to claim 7, wherein: The determining the second grayscale rule based on the first information list includes: Get the grayscale release configuration information; Based on the grayscale release configuration information, determine third grayscale control information; wherein the third grayscale control information is used to establish an association relationship between the service node identifier corresponding to any data request and at least one service node identifier in the second list during grayscale release; The second grayscale rule is determined based on the first information list and the third grayscale control information.

9. A first device, comprising: A first acquisition module, a first processing module and a sending module; The first acquisition module is used to acquire a first grayscale rule when a data request is detected; wherein the first grayscale rule is used to represent a rule for executing routing control when grayscale publishing is performed on the data request; The first processing module is used to determine a first identifier based on the first grayscale rule and the data request; wherein the first identifier represents an identifier of a second device that processes the data request; The sending module is further used to send the data request to a second device based on the first identifier; wherein the second device is used to perform routing control when the data request is released in a grayscale manner; The first acquisition module is specifically used to acquire a first information list; the first information list includes a first list and a second list, the first list represents an identification list of at least one second device that processes any data request during grayscale release; the second list represents an identification list of at least one service node in the second device during grayscale release; the at least one service node is used to provide services for any data request sent by the first device; determine grayscale release configuration information; based on the grayscale release configuration information, determine first grayscale control information and second grayscale control information; wherein the first grayscale control information is used to determine whether it is necessary to parse the second list in the first information list; the second grayscale control information is used to establish an association between the type of any data request and the second device identification in the first list during grayscale release; based on the first information list, the first grayscale control information and the second grayscale control information, obtain the first grayscale rule.

10. A second device, comprising a receiving module and a second processing module, The receiving module is used to receive a data request sent by the first device based on the first identifier; The first identifier includes: an identifier for representing a second device that processes the data request; the first identifier is determined by the first device based on a first grayscale rule and the data request; the first grayscale rule is used to represent a rule for executing routing control when the first device performs grayscale release on the data request; the first grayscale rule is obtained by a first information list, first grayscale control information and second grayscale control information; the first grayscale control information and the second grayscale control information are obtained by grayscale release configuration information; the first information list includes a first list and a second list, the first list represents an identifier list of at least one second device that processes any data request during grayscale release; the second list represents an identifier list of at least one service node in the second device during grayscale release; the at least one service node is used to provide services for any data request sent by the first device; the first grayscale control information is used to determine whether it is necessary to parse the second list in the first information list; the second grayscale control information is used to establish an association relationship between the type of any data request and the second device identifier in the first list during grayscale release; The second processing module is used to perform routing control on the data request during the grayscale release.

11. A first device, comprising a first processor and a first memory configured to store a computer program that can be run on the first processor; wherein, The first processor is configured to execute the information processing method according to any one of claims 1 to 3 when running the computer program.

12. A second device comprising a second processor and a second memory configured to store a computer program that can be run on the second processor; wherein, The second processor is configured to execute the information processing method according to any one of claims 4 to 8 when running the computer program.

13. An information processing system, comprising the first device according to claim 11, the second device according to claim 12, and a communication bus, wherein the communication bus is used to realize data transmission between the first device and the second device.

14. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the information processing method according to any one of claims 1 to 3.

15. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the information processing method according to any one of claims 4 to 8.

16. A chip, comprising: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the steps of the information processing method according to any one of claims 1 to 3; Alternatively, it is used to call and run a computer program from a memory so that a device equipped with the chip executes the steps of the information processing method as claimed in any one of claims 4 to 8.

17. A computer program product, comprising a computer storage medium, wherein the computer storage medium stores computer program code, wherein the computer program code comprises instructions executable by at least one processor, and when the instructions are executed by the at least one processor, the steps of the information processing method according to any one of claims 1 to 3 are implemented; Alternatively, when the instruction is executed by the at least one processor, the steps of the information processing method according to any one of claims 4 to 8 are implemented.