A routing method, device, electronic device and storage medium based on remote multi-active scenario

By parsing the routing code and selecting a designated business unit or downgrading to a central unit in a remote multi-active scenario, combined with the use of unit-less nodes, the problem of being unable to implement customized cross-unit routing in the existing technology is solved, achieving fast and controllable business recovery.

CN114745446BActive Publication Date: 2024-09-10SHANGHAI JUNZHENG NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210547994.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2024-09-10
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

Existing remote multi-active solutions cannot implement customized cross-unit routing capabilities, resulting in long and uncontrollable business recovery times in extreme disaster situations.

Method used

Provide a routing method based on remote multi-active scenarios. By receiving business requests, parsing the routing code, determining whether it corresponds to the specified business unit, and selecting the specified business unit as the routing unit for remote calling if there is a specified business unit; if the routing unit does not exist, the service Node, determine whether to downgrade to the central unit, and perform downgrade when downgrade demand exists; at the same time, use unit-less nodes for smooth migration to avoid traffic tilt.

Benefits of technology

It implements user-defined cross-unit routing, enhances the flexibility and controllability of business recovery, reduces migration risks, and ensures rapid recovery of business services in extreme circumstances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114745446B
    Figure CN114745446B
Patent Text Reader

Abstract

The present invention discloses a routing method, device, electronic device and storage medium based on a remote multi-active scenario, wherein the method comprises: receiving a service request; parsing the service request to obtain a routing code with a link recorded; judging whether the routing code corresponds to a designated service unit, wherein the designated service unit is a service center with service processing capability selected by a user; if there is a designated service unit, the designated service unit is selected as a routing unit for remote calling. The present invention realizes the addition of a user-defined cross-unit calling function without changing the overall logic of the existing cross-unit calling, realizes the role of user-defined cross-unit routing, and facilitates user selection and use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a routing method, device, electronic device and storage medium based on a remote multi-active scenario. Background Art

[0002] Whether it is a high-availability computing architecture or a high-availability storage architecture, its essential design purpose is to solve the problem of how to ensure that the system can continue to provide services in the scenario of some server failures. However, in some extreme scenarios, all servers may fail. For example, typical computer room power outages, computer room fires, earthquakes, floods... These extreme situations will cause all servers in a system to fail, or the entire business to be paralyzed. Even if there are backups in other regions, it will take a long time to restore all backup business systems to be able to provide normal services. It may take half an hour or 12 hours. Because the backup system does not usually provide services to the outside world, there may be many hidden problems that have not been discovered. If the business expects that even in the case of such catastrophic failures, the business will not be affected, or it can be quickly restored within a few minutes, then it is necessary to design a multi-site active-active architecture.

[0003] Multi-location refers to establishing independent business centers in different regions. A complete business process involves many services, and each service may be deployed in multiple environments due to version iteration or other requirements, resulting in multiple versions of the same service. The services may be associated with each other through RPC services or message queues, making the service calls of the entire business process appear in a tree structure, with each branch being a possible call link.

[0004] However, the inventors have found that the RPC framework used in the existing multi-site active-active solution only supports cross-unit calls based on link context, and currently cannot realize customized cross-unit routing capabilities. Summary of the invention

[0005] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is that the prior art cannot realize the cross-unit routing capability in a customized manner.

[0006] To achieve the above-mentioned purpose, the present invention provides a routing method based on a remote multi-active scenario, comprising: receiving a business request; parsing the business request to obtain a routing code with a link recorded; judging whether the routing code corresponds to a designated business unit, wherein the designated business unit is a business center with business processing capabilities selected by a user; if there is a corresponding designated business unit, selecting the designated business unit as a routing unit for remote calling.

[0007] In a preferred embodiment of the present invention, it also includes: determining whether there is a service node in the routing unit; if there is no service node in the routing unit, determining whether to downgrade the routing unit to a central unit, wherein the central unit is a business unit that is deployed with all services and can independently carry all business scenarios and business traffic.

[0008] In a preferred embodiment of the present invention, the determination of whether to downgrade the routing unit to the central unit includes: judging whether the service request is configured with a downgrade requirement input by a user; if the service request is configured with the downgrade requirement, downgrading the routing unit to the central unit.

[0009] In a preferred embodiment of the present invention, it also includes: if the routing unit is downgraded to the central unit, determining whether the central unit has a service node corresponding to the business request; if the central unit has a service node corresponding to the business request, selecting to call the service node in the central unit.

[0010] In a preferred embodiment of the present invention, if the routing unit cannot be downgraded to the central unit, or the central unit does not have a service node corresponding to the service request, an error is reported.

[0011] In a preferred embodiment of the present invention, after determining that there is no service node for the routing unit and before determining whether to downgrade the routing unit to a central unit, it also includes: judging whether there is a unit-less node, wherein the unit-less node is a node that is not deployed with multi-active elements or a historical version node; if the unit-less node exists, selecting a corresponding service node from the unit-less node.

[0012] In a preferred embodiment of the present invention, the method further includes: if the unit-less node does not exist, executing a step of determining whether to downgrade the routing unit to a central unit.

[0013] In a preferred embodiment of the present invention, it further includes: if the routing unit has a node, a corresponding service node is selected from the service node of the routing unit and the node without a unit for calling.

[0014] To achieve the above-mentioned purpose, the present invention provides a routing device based on a remote multi-active scenario, comprising: a receiving module, used to receive a business request; a parsing module, used to parse the business request to obtain a routing code with a link recorded; a judgment module, used to judge whether the routing code corresponds to a designated business unit, wherein the designated business unit is a business center with business processing capabilities selected by a user; a selection module, used to select the designated business unit as a routing unit if it corresponds to the designated business unit, so as to perform a remote call.

[0015] To achieve the above-mentioned objectives, the present invention provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, thereby executing the routing method based on the remote multi-active scenario as described above.

[0016] To achieve the above-mentioned purpose, the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the above-mentioned routing method based on the remote multi-active scenario.

[0017] The device or method provided by the present invention has the following technical effects:

[0018] 1. By providing users with the function of modifying the routing code, and after receiving the business request, adding a judgment on whether the routing code it carries corresponds to the specified business unit, when it is determined that it corresponds to the specified business unit, it is used as a routing unit for remote call, thereby realizing the function of user-defined cross-unit call without changing the overall logic of the existing cross-unit call, realizing the role of user-defined cross-unit routing, and facilitating users to select and use.

[0019] 2. By deploying the central unit, since it deploys all services and can independently carry all business scenarios and business traffic, it can also implement specific service calls when there is no service node in the user-specified business unit, thereby achieving more flexible customized cross-unit calls.

[0020] 3. By using unitless nodes to constrain the flexibility of the customization method, it is possible to avoid the uncontrollable and difficult-to-trace problems of the call link, and fully consider non-multi-active nodes and historical version nodes, so as to achieve smooth migration. That is, while providing a certain degree of user-defined cross-computer room routing flexibility, it fully considers the way in which "unitless nodes" participate in routing selection, avoids the traffic tilt problem that may occur during the upgrade process, and provides a low-risk migration solution.

[0021] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of a preferred embodiment of the routing method based on the remote multi-active scenario of the present invention;

[0023] Figure 2It is a flow chart of another preferred embodiment of the routing method based on the remote multi-active scenario of the present invention;

[0024] Figure 3 It is a schematic diagram of a preferred embodiment of the routing device based on the remote multi-active scenario of the present invention;

[0025] Figure 4 It is a structural schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0027] While some exemplary embodiments of the present invention have been described for the purpose of illustration, it should be understood that the present invention may be implemented in other ways not specifically shown in the drawings.

[0028] The embodiment of the present invention provides a routing method based on a remote multi-active scenario, which is mainly used for cross-unit routing control in a remote multi-active scenario. The routing method provided by the embodiment of the present invention can not only realize cross-unit calls based on the context of the link, but more importantly, can realize cross-unit routing in a user-defined manner. Specifically, in the embodiment of the present invention, an API interface for modifying the routing code can be provided to the user, and the user can modify the routing code through the API interface to realize customized cross-unit routing in a remote multi-active scenario.

[0029] like Figure 1 As shown, the routing method based on the remote multi-active scenario of the embodiment of the present invention includes:

[0030] Step S101: receiving a service request.

[0031] In the embodiment of the present invention, the service request may be initiated by the user through the client, and the service request carries a routing code, which may record a link combination, or generate a corresponding combined link through the routing code. In the embodiment of the present invention, an API interface for modifying the routing code may be provided to the user, and the user may modify the routing code through the API interface to implement customized cross-unit routing.

[0032] Of course, in the embodiment of the present invention, the service request may also carry other information, which depends on the requested service type, etc. Different service types contain different information. Other information is not the focus of the present invention and will not be described here.

[0033] Step S102: parse the service request to obtain a routing code that records the link.

[0034] After receiving the service request, the service request is parsed to obtain a routing code, so that a corresponding link can be determined based on the routing code, and then the service unit designated by the service provider can be determined.

[0035] Step S103, determining whether the routing code corresponds to a designated service unit, wherein the designated service unit is a service center with service processing capability selected by the user.

[0036] In the embodiment of the present invention, a business center may refer to a data center, which may be a physical computer room or a logical business center that logically implements the functions of a data center. A business unit also refers to a business center. A designated business unit is a business center designated by a user in a customized manner. As shown above, a user may customize and designate a corresponding business center as a designated business unit through an API interface for modifying routing codes provided in the embodiment of the present invention.

[0037] Since an API interface is provided in the embodiment of the present invention for users to modify the routing code, users can modify the routing code in a customized manner as needed to achieve the purpose of specifying a business unit. Furthermore, when processing a business request, the overall solution needs to judge the parsed routing code to determine whether it corresponds to a specified business unit.

[0038] Step S104, if the designated business unit corresponds to the specified business unit, the specified business unit is selected as the routing unit for remote call. Correspondingly, if the designated business unit does not correspond to the specified business unit, the current unit can be used as the routing unit based on the principle of proximity, and then the remote call is made. The content of this branch is similar to the cross-unit call process of the existing RPC framework, and will not be repeated here.

[0039] According to an embodiment of the present invention, by providing users with the function of modifying routing codes, and after receiving a business request, adding a judgment on whether the routing code it carries corresponds to a specified business unit, when it is determined that it corresponds to a specified business unit, it is used as a routing unit for remote call, thereby achieving the function of user-defined cross-unit calls without changing the overall logic of existing cross-unit calls, realizing the role of user-defined cross-unit routing, and facilitating users to select and use.

[0040] As an optional implementation, in an embodiment of the present invention, after determining the routing unit, the routing method may further include: determining whether there is a service node for the routing unit; if there is no service node for the routing unit, determining whether to downgrade the routing unit to a central unit, wherein the central unit is a business unit that is deployed with all services and can independently carry all business scenarios and business traffic.

[0041] Since each routing unit (i.e., a service center) can be implemented by one or more clusters, each cluster can include multiple service nodes, each of which can correspond to a server. Therefore, after determining the routing unit, it can be further determined whether there is a service node in the routing unit.

[0042] Specifically, it can be determined whether the routing unit contains a designated service node or an available service node. If a service node exists, the service node corresponding to the business request can be selected to form a service node list, and then the corresponding service node is randomly selected from the service node list according to the weight for calling.

[0043] In the embodiment of the present invention, when there is no service node in the determined routing unit, it can be further determined whether to downgrade the routing unit to a central unit so as to select a corresponding service node from the central unit. The central unit refers to a service unit that is deployed with all services and can independently carry all service scenarios and service traffic.

[0044] In an embodiment of the present invention, by deploying the central unit, since it is deployed with all services and can independently carry all business scenarios and business traffic, specific service calls can also be implemented when there is no service node in the user-specified business unit, thereby achieving more flexible customized cross-unit calls.

[0045] It should be noted that the designated business unit described in the above embodiment may also be directly designated as a central unit by a user through customization, and then a corresponding judgment process is performed.

[0046] As a further optional implementation, in an embodiment of the present invention, the determining whether to downgrade the routing unit to the central unit includes: judging whether the service request is configured with a downgrade requirement input by a user; if the service request is configured with the downgrade requirement, downgrading the routing unit to the central unit. If the downgrade requirement is not configured, a corresponding error may be reported to inform the user that the service cannot be provided.

[0047] The downgrade requirement can be identified through a field carried in the business request. For example, in the original business request, a field is added for the user to make a custom input of the downgrade requirement. For example, in this field, "0" represents no downgrade, and "1" represents downgrade. When the user modifies the field to "1" through custom input in the business request, it means that the downgrade requirement is configured, and then when it is determined that the routing unit does not have a service node, the routing unit is downgraded to the central unit, so that the corresponding service node can be selected in the central unit for calling.

[0048] Of course, the downgrade requirement in the embodiment of the present invention can also be embodied in other forms. Specifically, the downgrade requirement can be set while the user modifies the routing code, and the user needs to actively configure to have the corresponding authority, thus providing a more comprehensive user-defined cross-unit call.

[0049] As a further optional implementation, the routing method of the embodiment of the present invention further includes: if the routing unit is downgraded to the central unit, determining whether the central unit has a service node corresponding to the business request; if the central unit has a service node corresponding to the business request, then selecting to call the service node in the central unit. Further, if the routing unit cannot be downgraded to the central unit, or the central unit does not have a service node corresponding to the business request, an error is reported.

[0050] If it is downgraded to the central unit, the corresponding service node can be selected in the central unit to form a node list, and then the corresponding service node is randomly selected according to the weight for calling. By adopting the central unit, the flexibility and comprehensiveness of user-defined cross-unit calls are improved, and more complete user-defined cross-unit calls are achieved. Correspondingly, if it cannot be downgraded to the central unit, it means that the routing unit does not have the corresponding service node, and the central unit cannot be used, then an error can be reported. On the other hand, even if it is downgraded to the central unit, if the corresponding service node does not exist in the central unit, an error can also be reported.

[0051] As another optional implementation, in the embodiment of the present invention, "unitless nodes" can also be added, specifically referring to all nodes that are not deployed with multiple actives and historical version nodes. Among them, the nodes that are not deployed with multiple actives also have the ability to process business. Accordingly, during the version update process, the historical version nodes can also avoid compatibility issues of business services and avoid service errors caused by version issues.

[0052] Specifically, in the embodiment of the present invention, after determining that the routing unit does not have a service node and before determining whether to downgrade the routing unit to the central unit, it also includes: judging whether there is a node without a unit, wherein the node without a unit is a node that is not deployed in multi-active mode or a node of a historical version; if the node without a unit exists, selecting a corresponding service node from the node without a unit. Accordingly, if the node without a unit does not exist, the step of determining whether to downgrade the routing unit to the central unit is performed.

[0053] In the embodiment of the present invention, it is also possible to determine the node without a unit. If there is a node without a unit corresponding to the service request, the corresponding service node can be directly selected from the node without a unit to be called, without determining the downgrade requirement. However, if there is no node without a unit, it is possible to further determine the downgrade requirement, thereby determining whether there is a service node in the central unit. The process of determining the downgrade requirement has been introduced in the above embodiment and will not be repeated here.

[0054] According to the embodiment of the present invention, by using unitless nodes to constrain the flexibility of the customization method, it is possible to avoid the uncontrollable and difficult-to-trace problems of the call link, fully consider non-multi-active nodes and historical version nodes, and thus achieve smooth migration. That is, while providing a certain degree of user-defined cross-computer room routing flexibility, it fully considers the way in which "unitless nodes" participate in routing selection, avoids the traffic tilt problem that may occur during the upgrade process, and provides a low-risk migration solution.

[0055] As an alternative implementation, in the embodiment of the present invention, while determining whether the routing unit has a service node, it is also possible to determine whether there is a node without a unit. If both exist, if the routing unit has a service node, a corresponding service node is selected from the service node of the routing unit and the node without a unit for invocation.

[0056] If only one of them exists, the corresponding service node can be selected from the existing service nodes for invocation; if neither of them exists, the step of determining whether to downgrade the routing unit to the central unit is performed, so as to select a service node from the central unit for invocation. The technical effect achieved by this alternative solution is the same as that of the above solution, and the difference lies only in the order of determination.

[0057] A specific process such as Figure 2 As shown, including:

[0058] Step S201: receiving a service request.

[0059] Step S202: parse the service request to obtain a routing code that records the link.

[0060] Step S203: determining whether the routing code corresponds to a designated service unit, wherein the designated service unit is a service center with service processing capability selected by the user.

[0061] Step S204: If there is a corresponding designated service unit, the designated service unit is selected as the routing unit.

[0062] Step S205: If there is no corresponding designated service unit, the current unit is used as a routing unit.

[0063] Step S206, determining whether the routing unit has a service node; and determining whether there is a node without a unit.

[0064] Step S207: If the routing unit does not have a service node and does not have a node without a unit, it is determined whether the service request is configured with a degradation requirement input by a user.

[0065] Step S208: If the service request is configured with the downgrade requirement, downgrade the routing unit to a central unit.

[0066] Step S209: determine whether the central unit has a service node corresponding to the service request.

[0067] Step S210: If the central unit has a service node corresponding to the business request, then the service node in the central unit is selected and called.

[0068] Step S211: If the routing unit has a service node and a node without a unit, a corresponding service node is selected from the service node of the routing unit and the node without a unit for invocation.

[0069] Step S212: If only the routing unit has a service node or only has no unit central node, a corresponding service node is selected for invocation.

[0070] The embodiment of the present invention further provides a routing device based on a remote multi-active scenario, which can be used to execute the routing method of the above embodiment, specifically, as follows: Figure 3 As shown, the routing device includes:

[0071] Receiving module 301, used for receiving a service request;

[0072] The parsing module 302 is used to parse the service request to obtain a routing code with a link recorded therein;

[0073] A judgment module 303 is used to judge whether the routing code corresponds to a designated business unit, wherein the designated business unit is a business center with business processing capabilities selected by a user;

[0074] The selection module 304 is used to select the designated business unit as a routing unit for remote calling if there is a corresponding designated business unit.

[0075] The embodiment of the present invention provides the user with the function of modifying the routing code, and after receiving the service request, adds a judgment on whether the routing code carried by the service request corresponds to the specified service unit. When it is determined that there is a corresponding specified service unit, it is used as a routing unit for remote calling, thereby realizing the function of user-defined cross-unit calling without changing the overall logic of the existing cross-unit calling, realizing the role of user-defined cross-unit routing, and facilitating user selection and use.

[0076] As an optional implementation, the routing device also includes: a first judgment module, used to determine whether the routing unit has a service node; a determination module, used to determine whether to downgrade the routing unit to a central unit if the routing unit does not have a service node, wherein the central unit is a business unit that is deployed with all services and can independently carry all business scenarios and business traffic.

[0077] Optionally, the determination module includes: a first judgment unit, used to judge whether the service request is configured with a downgrade requirement input by a user; and a downgrading unit, used to downgrade the routing unit to a central unit if the service request is configured with the downgrade requirement.

[0078] Optionally, the determination module also includes: a second judgment unit, used to judge whether there is a service node corresponding to the business request in the central unit if the routing unit is downgraded to the central unit; and a selection unit, used to select and call the service node in the central unit if there is a service node corresponding to the business request in the central unit.

[0079] Optionally, the routing device further comprises an error reporting module, configured to report an error if the routing unit cannot be downgraded to the central unit, or if the central unit does not have a service node corresponding to the service request.

[0080] The routing device also includes a second judgment module, which is used to: after determining that the routing unit does not have a service node and before determining whether to downgrade the routing unit to a central unit, further includes: judging whether there is a unit-less node, wherein the unit-less node is a node that is not deployed with multi-active or a historical version node; if the unit-less node exists, selecting a corresponding service node from the unit-less node.

[0081] Optionally, the demotion unit is further configured to, if the unit-less node does not exist, execute the step of determining whether to degrade the routing unit to a central unit.

[0082] Optionally, the selection module is further configured to select a corresponding service node from the service node of the routing unit and the node without the unit for invocation if the routing unit has a service node.

[0083] For the detailed description of the device part, please refer to the above method embodiment, which will not be repeated here.

[0084] In one embodiment of the present invention, an electronic device is further provided. The electronic device may be the server in the above embodiment, and its internal structure diagram may be as shown in FIG. Figure 4 As shown. The electronic device includes a processor, a memory, and a network interface connected through a system bus, and may also include a display screen and an input device. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external electronic device through a network connection. When the computer program is executed by the processor to implement the above-mentioned routing method, the electronic device may also include a display screen and an input device, wherein the display screen may be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device may be a touch layer covered on the display screen, or may be a button, trackball or touchpad provided on the housing of the electronic device.

[0085] On the other hand, the electronic device may not include a display screen and an input device. Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0086] In one embodiment, an electronic device is provided, comprising at least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to implement the following steps:

[0087] Receive business requests;

[0088] Parsing the service request to obtain a routing code with a link recorded;

[0089] Determine whether the routing code corresponds to a designated service unit, wherein the designated service unit is a service center with service processing capability selected by a user;

[0090] If there is a corresponding designated business unit, the designated business unit is selected as the routing unit to perform remote calling.

[0091] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions are used to cause the computer to execute:

[0092] Receive business requests;

[0093] Parsing the service request to obtain a routing code with a link recorded;

[0094] Determine whether the routing code corresponds to a designated service unit, wherein the designated service unit is a service center with service processing capability selected by a user;

[0095] If there is a corresponding designated business unit, the designated business unit is selected as the routing unit to perform remote calling.

[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0097] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A routing method based on a remote multi-active scenario, characterized in that: include: Receive business requests; Parsing the service request to obtain a routing code with a link recorded; Determine whether the routing code corresponds to a designated service unit, wherein the designated service unit is a service center with service processing capability selected by a user; If there is a corresponding designated business unit, the designated business unit is selected as a routing unit to perform a remote call; The method further comprises: If the routing unit does not have a service node and does not have a node without a unit, determining whether to downgrade the routing unit to a central unit; If the routing unit does not have a service node but has a node without a unit, selecting a corresponding service node from the node without a unit; The central unit is a business unit that is deployed with all services and can independently carry all business scenarios and business traffic, and the unitless node is a node that is not deployed with multi-active or a historical version node.

2. The routing method according to claim 1, characterized in that: Also includes: Determine whether the routing unit has a service node.

3. The routing method according to claim 2, characterized in that: The determining whether to downgrade the routing unit to a central unit comprises: Determining whether a downgrade requirement inputted by a user is configured in the service request; If the service request is configured with the downgrade requirement, the routing unit is downgraded to a central unit.

4. The routing method according to claim 2, characterized in that: Also includes: If the routing unit is downgraded to the central unit, determining whether the central unit has a service node corresponding to the service request; If the central unit has a service node corresponding to the business request, the service node in the central unit is selected and called.

5. The routing method according to claim 4, characterized in that: If the routing unit cannot be downgraded to the central unit, or the central unit does not have a service node corresponding to the service request, an error is reported.

6. The routing method according to claim 1, characterized in that: After determining that the routing unit does not have a service node and before determining whether to downgrade the routing unit to a central unit, the method further includes: Determine whether there are any nodes without units.

7. The routing method according to claim 1, characterized in that: Also includes: If the routing unit has a service node, a corresponding service node is selected from the service node of the routing unit and the node without the unit for invocation.

8. A routing device based on a remote multi-active scenario, characterized in that: include: A receiving module, used for receiving a service request; A parsing module, used to parse the service request to obtain a routing code with a link recorded therein; A judgment module, used to judge whether the routing code corresponds to a designated business unit, wherein the designated business unit is a business center with business processing capabilities selected by a user; A selection module, for selecting the designated business unit as a routing unit for remote calling if there is a corresponding designated business unit; The selection module is used to: If the routing unit does not have a service node and does not have a node without a unit, determining whether to downgrade the routing unit to a central unit; If the routing unit does not have a service node but has a node without a unit, selecting a corresponding service node from the node without a unit; The central unit is a business unit that is deployed with all services and can independently carry all business scenarios and business traffic, and the unitless node is a node that is not deployed with multi-active or a historical version node.

9. An electronic device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, thereby executing the routing method based on the remote multi-active scenario as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the routing method based on the remote multi-active scenario as described in any one of claims 1-7.