Traffic scheduling method, device, electronic device and storage medium

By designing a traffic scheduling method in a dual-active data center, matching traffic scheduling requests and switching channels or generating routing identifiers, the problem of imperfect traffic scheduling in the existing technology is solved, and forwarding and grayscale verification of traffic between dual centers are realized. , to meet the needs of users.

CN113873039BActive Publication Date: 2024-10-22吉林亿联银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111153400.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-10-22
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

The existing traffic scheduling strategy is not perfect in active-active data centers, cannot switch traffic when an application fails, and cannot perform grayscale verification during system iteration, making it unable to meet user needs.

Method used

A traffic scheduling method is designed. By judging the switch status of the provider and the scheduling platform, matching the traffic scheduling request and switching channel or generating a routing identifier, routing the traffic to the bridge terminal, gray terminal or provider, realizing the flow between the two centers forwarding and distribution.

Benefits of technology

It solves the problem of imperfect traffic scheduling strategies, realizes traffic switching in the event of application failure and grayscale verification in system iterations, meets user needs, and ensures business continuity and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113873039B_ABST
    Figure CN113873039B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for traffic scheduling, wherein, in the method for traffic scheduling, when a traffic scheduling request is received, it is determined whether the switching switch of the provider is turned on. If the switching switch is turned on, the traffic scheduling request is matched with the switching channel of the provider, and if the traffic scheduling request successfully matches the switching channel of the provider, the traffic corresponding to the traffic scheduling request is routed to the bridging terminal. If the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the provider, it is determined whether the switch of the scheduling platform is turned on. If the switch of the scheduling platform is turned on, the scheduling platform is called to generate a routing identifier for the traffic scheduling request, and the traffic corresponding to the traffic scheduling request is routed to the terminal corresponding to the routing identifier according to the routing identifier. If the scheduling platform switch is not turned on, the traffic corresponding to the traffic scheduling request is routed to the provider.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for traffic scheduling. Background Art

[0002] With the large-scale centralization of data, banks have built data centers responsible for processing their own business. Since data centers bear the business of the entire bank, their concurrent business load capacity and uninterrupted operation capabilities are key indicators for evaluating the maturity of a data center. In order to adapt to the rapid growth of Internet business, ensure the safe, stable and uninterrupted operation of various banking businesses, improve market competitiveness, and meet the relevant requirements of regulatory agencies, building disaster recovery and active-active data centers is becoming a common choice for commercial banks.

[0003] In a dual-active data center, if a center fails, the traffic needs to be switched to another center to ensure business continuity. However, the existing traffic scheduling strategy is not perfect. For example, when an application in a data center fails, the traffic of the entire data center will be cut off, or the production cannot be grayscale verified during system iteration, which cannot meet user needs. Summary of the invention

[0004] In view of this, the present application provides a method, device, electronic device and storage medium for traffic scheduling to solve the problem that the traffic scheduling strategy in the prior art is not perfect and cannot meet the needs of users.

[0005] To achieve the above objectives, this application provides the following technical solutions:

[0006] In a first aspect, the present application discloses a method for traffic scheduling, which is applied to a consumer end of a distributed enterprise service bus system. The method for traffic scheduling includes:

[0007] When a traffic scheduling request is received, it is determined whether a switch of the provider is turned on; wherein the provider is a provider of a distributed enterprise service bus system;

[0008] If the switching switch is turned on, the switching switch is called to match the traffic scheduling request with the switching channel of the provider, and if the traffic scheduling request successfully matches the switching channel of the provider, the traffic corresponding to the traffic scheduling request is routed to the bridge terminal;

[0009] If the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the provider, determining whether the switch of the scheduling platform is turned on;

[0010] If the switch of the scheduling platform is turned on, the scheduling platform is called to generate a routing identifier of the traffic scheduling request, and the traffic corresponding to the traffic scheduling request is routed to the terminal corresponding to the routing identifier according to the routing identifier; wherein the terminal includes: the bridge terminal, the grayscale terminal, and the provider terminal;

[0011] If the scheduling platform switch is not turned on, the traffic corresponding to the traffic scheduling request is routed to the provider.

[0012] Optionally, in the above method, matching the traffic scheduling request with the switching channel of the provider includes:

[0013] Acquire the configuration information of the switching channel of the provider; wherein the configuration information includes the consumer system name and the service provider name;

[0014] The traffic scheduling request is matched with the configuration information to obtain a matching result.

[0015] Optionally, in the above method, the calling of the scheduling platform to generate a routing identifier for the traffic scheduling request includes:

[0016] Calling the rule engine of the scheduling platform to match the traffic scheduling request with a pre-configured grayscale strategy, and matching the traffic scheduling request with a pre-configured bridge routing strategy;

[0017] If the traffic scheduling request successfully matches the grayscale policy, a grayscale identifier is generated as a routing identifier of the traffic scheduling request;

[0018] If the traffic scheduling request successfully matches the bridge routing policy, a bridge routing identifier is generated as a routing identifier of the traffic scheduling request;

[0019] If the traffic scheduling request fails to match the grayscale strategy and the traffic scheduling request fails to match the bridge routing strategy, a production center identifier is generated as a routing identifier of the traffic scheduling request.

[0020] Optionally, in the above method, routing the traffic corresponding to the traffic scheduling request to the terminal corresponding to the routing identifier according to the routing identifier includes:

[0021] If the routing identifier is the grayscale identifier, routing the traffic corresponding to the traffic scheduling request to the grayscale terminal;

[0022] If the routing identifier is the bridge routing identifier, routing the traffic corresponding to the traffic scheduling request to the bridge terminal;

[0023] If the routing identifier is the production center identifier, the traffic corresponding to the traffic scheduling request is routed to the provider.

[0024] The second aspect of the present application discloses a traffic scheduling device, which is applied to a consumer end of a distributed enterprise service bus system. The traffic scheduling device includes:

[0025] A first determination unit, configured to determine whether a switch of a provider is turned on when receiving a traffic scheduling request; wherein the provider is a provider of a distributed enterprise service bus system;

[0026] a matching unit, configured to, if the switching switch is turned on, call the switching switch to match the traffic scheduling request with the switching channel of the providing end, and if the traffic scheduling request successfully matches the switching channel of the providing end, route the traffic corresponding to the traffic scheduling request to the bridging terminal;

[0027] A second judgment unit is used to judge whether the switch of the scheduling platform is turned on if the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the providing end;

[0028] A calling unit, configured to call the scheduling platform to generate a routing identifier for the traffic scheduling request if the switch of the scheduling platform is turned on, and route the traffic corresponding to the traffic scheduling request to the terminal corresponding to the routing identifier according to the routing identifier; wherein the terminal includes: the bridging terminal, the grayscale terminal, and the providing terminal;

[0029] The scheduling unit is used to route the traffic corresponding to the traffic scheduling request to the providing end if the scheduling platform switch is not turned on.

[0030] Optionally, in the above device, the matching unit includes:

[0031] An acquisition subunit is used to acquire the configuration information of the switching channel of the provider; wherein the configuration information includes the consumer system name and the service provider name;

[0032] The matching subunit is used to match the traffic scheduling request with the configuration information to obtain a matching result.

[0033] Optionally, in the above-mentioned device, the calling unit includes:

[0034] A calling subunit, configured to call a rule engine of the scheduling platform to match the traffic scheduling request with a pre-configured grayscale strategy, and to match the traffic scheduling request with a pre-configured bridge routing strategy;

[0035] A first generating subunit, configured to generate a grayscale identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request successfully matches the grayscale policy;

[0036] A second generating subunit is used for generating a bridge routing identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request successfully matches the bridge routing policy;

[0037] The third generating subunit is used to generate a production center identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request fails to match the grayscale strategy and the traffic scheduling request fails to match the bridge routing strategy.

[0038] Optionally, in the above-mentioned device, the calling unit includes:

[0039] A first scheduling subunit, configured to route the traffic corresponding to the traffic scheduling request to the grayscale terminal if the routing identifier is the grayscale identifier;

[0040] a second scheduling subunit, configured to route the traffic corresponding to the traffic scheduling request to the bridging terminal if the routing identifier is the bridging routing identifier;

[0041] The third scheduling subunit is used to route the traffic corresponding to the traffic scheduling request to the providing end if the routing identifier is the production center identifier.

[0042] The third aspect of the present application discloses an electronic device, comprising:

[0043] one or more processors;

[0044] a storage device having one or more programs stored thereon;

[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the first aspects of the present application.

[0046] A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the first aspects of the present application is implemented.

[0047] It can be seen from the above technical scheme that in a method for traffic scheduling provided by the present application, when a traffic scheduling request is received, it is determined whether the switch of the provider is turned on. If the switch is turned on, the traffic scheduling request is matched with the switching channel of the provider, and if the traffic scheduling request matches the switching channel of the provider successfully, the traffic corresponding to the traffic scheduling request is routed to the bridge terminal. If the switch is not turned on or the traffic scheduling request does not match the switching channel of the provider, it is determined whether the switch of the scheduling platform is turned on. If the switch of the scheduling platform is turned on, the scheduling platform is called to generate a routing identifier for the traffic scheduling request, and the traffic corresponding to the traffic scheduling request is routed to the terminal corresponding to the routing identifier according to the routing identifier. If the scheduling platform switch is not turned on, the traffic corresponding to the traffic scheduling request is routed to the provider. It can be seen from this that the present application designs a dual-center switching switch of the provider, builds a bridge terminal on the dual center, and realizes traffic forwarding between the dual centers through the bridge terminal. At the same time, a scheduling platform is built, and the traffic is distributed to the gray terminal or the disaster recovery center with the help of the scheduling platform. It solves the problem that the traffic scheduling strategy in the prior art is not perfect and cannot meet the needs of users. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0049] Figure 1 A flow chart of a traffic scheduling method disclosed in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of a traffic scheduling device disclosed in another embodiment of the present application;

[0051] Figure 3 A schematic diagram of an electronic device disclosed in another embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0053] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0054] Furthermore, in this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0055] As can be seen from the background technology, in a dual-active data center, if a center fails, the traffic needs to be switched to another center to ensure business continuity. However, the traffic scheduling strategy of the existing technology is not perfect. For example, when an application in a data center fails, the traffic of the entire data center will be cut off, or the production cannot be grayscale verified during system iteration, which cannot meet user needs.

[0056] In view of this, the present application provides a method, device, electronic device and storage medium for traffic scheduling to solve the problem that the traffic scheduling strategy in the prior art is not perfect and cannot meet the needs of users.

[0057] The present application embodiment discloses a method for traffic scheduling, which is applied to the consumer end of a distributed enterprise service bus system. Figure 1 As shown, including:

[0058] S101. When a traffic scheduling request is received, it is determined whether a switch of a provider is turned on; wherein the provider is a provider of a distributed enterprise service bus system.

[0059] It should be noted that the dual data center is generally divided into two data centers, A and B. This embodiment takes the flow scheduling process of one of the data centers as an example, and the flow scheduling process of the other data center is the same. When the consumer end of the distributed enterprise service bus system (abbreviated as ESC-C end) receives a flow scheduling request, such as a request for a customer information query interface initiated by the counter system, it determines whether the switch of the provider end is turned on; wherein the provider end is the provider end of the distributed enterprise service bus system (abbreviated as ESC-P end).

[0060] S102: If the switching switch is turned on, the switching switch is called to match the traffic scheduling request with the switching channel of the provider.

[0061] It should be noted that if the switching switch of the provider is turned on, the switching switch is called to determine whether the traffic scheduling request matches the switching channel of the provider system configured by the management station.

[0062] Optionally, in another embodiment of the present application, an implementation of step S102 may include:

[0063] Obtain the configuration information of the switching channel of the provider; wherein the configuration information includes the consumer system name and the service provider name.

[0064] The traffic scheduling request is matched with the configuration information to obtain a matching result.

[0065] It should be noted that the management console will configure the consumer-side system name, service provider name and other information. Therefore, when calling the switch to match the traffic scheduling request with the switching channel of the provider, first obtain the configuration information of the switching channel of the provider, that is, the consumer-side system name, service provider name and other information, and then match the information in the traffic scheduling request with the configuration information to obtain the matching result.

[0066] S103: If the traffic scheduling request successfully matches the switching channel of the provider, the traffic corresponding to the traffic scheduling request is routed to the bridge terminal.

[0067] It should be noted that if the information in the traffic scheduling request matches the information configured by the management console, the traffic scheduling request successfully matches the switching channel of the provider, and the traffic corresponding to the traffic scheduling request is routed to the bridging terminal through the switching switch, and the traffic can be forwarded to the disaster recovery center through the bridging terminal.

[0068] S104: If the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the provider, it is determined whether the switch of the scheduling platform is turned on.

[0069] It should be noted that if the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the provider, it is determined whether the switch of the scheduling platform is turned on.

[0070] S105. If the switch of the scheduling platform is turned on, the scheduling platform is called to generate a routing identifier for the traffic scheduling request, and the traffic corresponding to the traffic scheduling request is routed to the terminal corresponding to the routing identifier according to the routing identifier; wherein the terminal includes: a bridging terminal, a grayscale terminal, and a providing terminal.

[0071] It should be noted that if the switch of the scheduling platform is turned on, the scheduling platform is called to generate a routing identifier for the traffic scheduling request, and then the traffic corresponding to the traffic scheduling request is routed to the terminal corresponding to the routing identifier according to the generated routing identifier. Among them, the terminal includes the bridge terminal, grayscale terminal and provider terminal built on the dual data center.

[0072] Optionally, in another embodiment of the present application, an implementation of calling the scheduling platform to generate a routing identifier of the traffic scheduling request in step S105 may include:

[0073] The rule engine of the calling scheduling platform matches the traffic scheduling request with the pre-configured grayscale strategy, and matches the traffic scheduling request with the pre-configured bridge routing strategy.

[0074] If the traffic scheduling request successfully matches the grayscale policy, a grayscale identifier is generated as the routing identifier of the traffic scheduling request.

[0075] If the traffic scheduling request successfully matches the bridge routing policy, a bridge routing identifier is generated as the routing identifier of the traffic scheduling request.

[0076] If the traffic scheduling request fails to match the grayscale policy and the traffic scheduling request fails to match the bridge routing policy, a production center identifier is generated as the routing identifier of the traffic scheduling request.

[0077] It should be noted that first, the grayscale service information and policies for this grayscale release are configured on the grayscale release management terminal, and the ESC on the machine for this grayscale release is marked with a grayscale mark. After the relevant configuration is ready, the information is sent down and the scheduling switch is turned on. Also, the dual-center switching service information and policies for this grayscale release are configured on the grayscale release management terminal, and the information is sent down and the scheduling switch is turned on.

[0078] Then, every time an interface call occurs, the rule engine terminal service address is obtained from the registration center through the scheduling engine SDK and called. After the rule engine receives the traffic scheduling request, the scheduling platform calculates the request according to the preset whitelist / traffic ratio strategy, and compares the traffic scheduling request with the grayscale hit rules and strategies in the redis database. If the match is successful, a grayscale identifier is generated as the routing identifier of the traffic scheduling request. Or the traffic scheduling request is matched with the bridge routing rules and strategies in the redis database. If the match is successful, a bridge routing identifier is generated as the routing identifier of the traffic scheduling request. If the traffic scheduling request fails to match the grayscale strategy and the traffic scheduling request fails to match the bridge routing strategy, the production center identifier is generated as the routing identifier of the traffic scheduling request.

[0079] Optionally, in another embodiment of the present application, an implementation of routing the traffic corresponding to the traffic scheduling request to the terminal corresponding to the routing identifier according to the routing identifier in step S105 may include:

[0080] If the routing identifier is a grayscale identifier, the traffic corresponding to the traffic scheduling request is routed to the grayscale terminal.

[0081] If the routing identifier is a bridge routing identifier, the traffic corresponding to the traffic scheduling request is routed to the bridge terminal.

[0082] If the routing identifier is the production center identifier, the traffic corresponding to the traffic scheduling request is routed to the provider.

[0083] It should be noted that after calling the scheduling platform to generate the routing identifier of the traffic scheduling request, if the routing identifier is a grayscale identifier, the traffic corresponding to the traffic scheduling request is routed to the grayscale terminal. If the routing identifier is a bridge routing identifier, the traffic corresponding to the traffic scheduling request is routed to the bridge terminal, and the traffic corresponding to the traffic scheduling request is routed to the disaster recovery center through the bridge terminal. If the routing identifier is a production center identifier, the traffic corresponding to the traffic scheduling request is routed to the provider.

[0084] S106: If the scheduling platform switch is not turned on, the traffic corresponding to the traffic scheduling request is routed to the provider.

[0085] It should be noted that if the scheduling platform switch is not turned on, the traffic corresponding to the scheduling request will be directly routed to the provider.

[0086] In a method for traffic scheduling provided by an embodiment of the present application, when a traffic scheduling request is received, it is determined whether the switch of the provider is turned on. If the switch is turned on, the traffic scheduling request is matched with the switching channel of the provider, and if the traffic scheduling request matches the switching channel of the provider successfully, the traffic corresponding to the traffic scheduling request is routed to the bridging terminal. If the switch is not turned on or the traffic scheduling request does not match the switching channel of the provider, it is determined whether the switch of the scheduling platform is turned on. If the switch of the scheduling platform is turned on, the scheduling platform is called to generate a routing identifier of the traffic scheduling request, and the traffic corresponding to the traffic scheduling request is routed to the terminal corresponding to the routing identifier according to the routing identifier. If the scheduling platform switch is not turned on, the traffic corresponding to the traffic scheduling request is routed to the provider. It can be seen from this that the present application designs a dual-center switching switch of the provider, builds a bridging terminal on the dual center, and realizes traffic forwarding between the dual centers through the bridging terminal. At the same time, a scheduling platform is built, and the traffic is distributed to the gray terminal or the disaster recovery center with the help of the scheduling platform. It solves the problem that the traffic scheduling strategy in the prior art is not perfect and cannot meet the needs of users.

[0087] Another embodiment of the present application also discloses a flow scheduling device, such as Figure 2 As shown, including:

[0088] The first determination unit 201 is used to determine whether the switch of the provider end is turned on when receiving the traffic scheduling request; wherein the provider end is the provider end of the distributed enterprise service bus system;

[0089] The matching unit 202 is used to call the switching switch to match the traffic scheduling request with the switching channel of the provider if the switching switch is turned on, and if the traffic scheduling request matches the switching channel of the provider successfully, route the traffic corresponding to the traffic scheduling request to the bridge terminal.

[0090] The second judgment unit 203 is used to judge whether the switch of the scheduling platform is turned on if the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the provider.

[0091] The calling unit 204 is used to call the scheduling platform to generate a routing identifier for the traffic scheduling request if the switch of the scheduling platform is turned on, and route the traffic corresponding to the traffic scheduling request to the terminal corresponding to the routing identifier according to the routing identifier; wherein the terminal includes: a bridging terminal, a grayscale terminal, and a providing terminal.

[0092] The scheduling unit 205 is used to route the traffic corresponding to the traffic scheduling request to the provider if the scheduling platform switch is not turned on.

[0093] In this embodiment, the specific execution process of the first judgment unit 201, the matching unit 202, the second judgment unit 203, the calling unit 204 and the scheduling unit 205 can be referred to in the corresponding Figure 1 The content of the method embodiment will not be repeated here.

[0094] In a traffic scheduling device provided by an embodiment of the present application, when a traffic scheduling request is received, the first judgment unit 201 determines whether the switch of the provider end is turned on. If the switch is turned on, the matching unit 202 matches the traffic scheduling request with the switching channel of the provider end, and if the traffic scheduling request matches the switching channel of the provider end successfully, the traffic corresponding to the traffic scheduling request is routed to the bridging terminal. If the switch is not turned on or the traffic scheduling request does not match the switching channel of the provider end successfully, the second judgment unit 203 determines whether the switch of the scheduling platform is turned on. If the switch of the scheduling platform is turned on, the calling unit 204 calls the scheduling platform to generate a routing identifier of the traffic scheduling request, and routes the traffic corresponding to the traffic scheduling request to the terminal corresponding to the routing identifier according to the routing identifier. If the scheduling platform switch is not turned on, the scheduling unit 205 routes the traffic corresponding to the traffic scheduling request to the provider end. It can be seen from this that the present application designs a dual-center switching switch of the provider, builds a bridging terminal on the dual center, and realizes traffic forwarding between the dual centers through the bridging terminal. At the same time, a scheduling platform is built, and the scheduling platform is used to realize traffic distribution to the gray terminal or disaster recovery center. The problem that the traffic scheduling strategy in the prior art is not perfect and cannot meet the needs of users is solved.

[0095] Optionally, in another embodiment of the present application, an implementation of the matching unit 202 includes:

[0096] The acquisition subunit is used to obtain the configuration information of the switching channel of the provider; wherein the configuration information includes the consumer system name and the service provider name.

[0097] The matching subunit is used to match the traffic scheduling request with the configuration information to obtain a matching result.

[0098] In this embodiment, the specific execution process of the acquisition subunit and the matching subunit can be found in the corresponding method embodiment described above, and will not be repeated here.

[0099] Optionally, in another embodiment of the present application, an implementation of the calling unit 204 includes:

[0100] The calling subunit is used to call the rule engine of the scheduling platform to match the traffic scheduling request with the pre-configured grayscale strategy, and to match the traffic scheduling request with the pre-configured bridge routing strategy.

[0101] The first generating subunit is used to generate a grayscale identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request successfully matches the grayscale policy.

[0102] The second generating subunit is used to generate a bridge routing identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request successfully matches the bridge routing policy.

[0103] The third generating subunit is used to generate a production center identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request fails to match the grayscale strategy and the traffic scheduling request fails to match the bridge routing strategy.

[0104] In this embodiment, the specific execution process of the calling subunit, the first generating subunit, the second generating subunit, and the third generating subunit can be found in the corresponding method embodiment content above, which will not be repeated here.

[0105] Optionally, in another embodiment of the present application, an implementation of the calling unit 204 includes:

[0106] The first scheduling subunit is used to route the traffic corresponding to the traffic scheduling request to the grayscale terminal if the routing identifier is a grayscale identifier.

[0107] The second scheduling subunit is configured to route the traffic corresponding to the traffic scheduling request to the bridge terminal if the routing identifier is a bridge routing identifier.

[0108] The third scheduling subunit is used to route the traffic corresponding to the traffic scheduling request to the provider end if the routing identifier is the production center identifier.

[0109] In this embodiment, the specific execution process of the first scheduling subunit, the second scheduling subunit, and the third scheduling subunit can refer to the corresponding method embodiment content above, which will not be repeated here.

[0110] Another embodiment of the present application further provides an electronic device, such as Figure 3 As shown, specifically including:

[0111] One or more processors 301 .

[0112] The storage device 302 stores one or more programs.

[0113] When one or more programs are executed by one or more processors 301 , the one or more processors 301 implement any one of the methods in the above embodiments.

[0114] Another embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the methods in the above embodiments is implemented.

[0115] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0116] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0117] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for traffic scheduling, characterized in that: Applied to the consumer end of a distributed enterprise service bus system, the traffic scheduling method includes: When a traffic scheduling request is received, it is determined whether a switch of the provider is turned on; wherein the provider is a provider of a distributed enterprise service bus system; If the switching switch is turned on, the switching switch is called to match the traffic scheduling request with the switching channel of the provider, and if the traffic scheduling request successfully matches the switching channel of the provider, the traffic corresponding to the traffic scheduling request is routed to the bridge terminal; If the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the provider, determining whether the switch of the scheduling platform is turned on; If the switch of the scheduling platform is turned on, the scheduling platform is called to generate a routing identifier of the traffic scheduling request, and the traffic corresponding to the traffic scheduling request is routed to the terminal corresponding to the routing identifier according to the routing identifier; wherein the terminal includes: the bridging terminal, the grayscale terminal, and the providing terminal; the grayscale terminal is a terminal that receives the traffic corresponding to the traffic scheduling request that matches the pre-configured grayscale policy; If the scheduling platform switch is not turned on, the traffic corresponding to the traffic scheduling request is routed to the provider.

2. The method according to claim 1, characterized in that The matching of the traffic scheduling request with the switching channel of the providing end includes: Acquire the configuration information of the switching channel of the provider; wherein the configuration information includes the consumer system name and the service provider name; The traffic scheduling request is matched with the configuration information to obtain a matching result.

3. The method according to claim 1, characterized in that The calling of the scheduling platform to generate a routing identifier for the traffic scheduling request includes: Calling the rule engine of the scheduling platform to match the traffic scheduling request with a pre-configured grayscale strategy, and matching the traffic scheduling request with a pre-configured bridge routing strategy; If the traffic scheduling request successfully matches the grayscale policy, a grayscale identifier is generated as a routing identifier of the traffic scheduling request; If the traffic scheduling request successfully matches the bridge routing policy, a bridge routing identifier is generated as a routing identifier of the traffic scheduling request; If the traffic scheduling request fails to match the grayscale strategy and the traffic scheduling request fails to match the bridge routing strategy, a production center identifier is generated as a routing identifier of the traffic scheduling request.

4. The method according to claim 3, characterized in that The step of routing the traffic corresponding to the traffic scheduling request to the terminal corresponding to the routing identifier according to the routing identifier includes: If the routing identifier is the grayscale identifier, routing the traffic corresponding to the traffic scheduling request to the grayscale terminal; If the routing identifier is the bridge routing identifier, routing the traffic corresponding to the traffic scheduling request to the bridge terminal; If the routing identifier is the production center identifier, the traffic corresponding to the traffic scheduling request is routed to the provider.

5. A flow scheduling device, characterized in that: Applied to the consumer end of a distributed enterprise service bus system, the traffic scheduling device comprises: A first determination unit, configured to determine whether a switch of a provider is turned on when receiving a traffic scheduling request; wherein the provider is a provider of a distributed enterprise service bus system; a matching unit, configured to, if the switching switch is turned on, call the switching switch to match the traffic scheduling request with the switching channel of the providing end, and if the traffic scheduling request successfully matches the switching channel of the providing end, route the traffic corresponding to the traffic scheduling request to the bridging terminal; A second judgment unit is used to judge whether the switch of the scheduling platform is turned on if the switching switch is not turned on or the traffic scheduling request fails to match the switching channel of the providing end; A calling unit, for calling the scheduling platform to generate a routing identifier for the traffic scheduling request if the switch of the scheduling platform is turned on, and routing the traffic corresponding to the traffic scheduling request to the terminal corresponding to the routing identifier according to the routing identifier; wherein the terminal includes: the bridging terminal, the grayscale terminal, and the providing terminal; the grayscale terminal is a terminal that receives the traffic corresponding to the traffic scheduling request that matches the pre-configured grayscale policy; The scheduling unit is used to route the traffic corresponding to the traffic scheduling request to the providing end if the scheduling platform switch is not turned on.

6. The device according to claim 5, characterized in that The matching unit comprises: An acquisition subunit is used to acquire the configuration information of the switching channel of the provider; wherein the configuration information includes the consumer system name and the service provider name; The matching subunit is used to match the traffic scheduling request with the configuration information to obtain a matching result.

7. The device according to claim 5, characterized in that The calling unit comprises: A calling subunit, configured to call a rule engine of the scheduling platform to match the traffic scheduling request with a pre-configured grayscale strategy, and to match the traffic scheduling request with a pre-configured bridge routing strategy; A first generating subunit, configured to generate a grayscale identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request successfully matches the grayscale policy; A second generating subunit is used for generating a bridge routing identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request successfully matches the bridge routing policy; The third generating subunit is used to generate a production center identifier as a routing identifier of the traffic scheduling request if the traffic scheduling request fails to match the grayscale strategy and the traffic scheduling request fails to match the bridge routing strategy.

8. The device according to claim 7, characterized in that The calling unit comprises: A first scheduling subunit, configured to route the traffic corresponding to the traffic scheduling request to the grayscale terminal if the routing identifier is the grayscale identifier; a second scheduling subunit, configured to route the traffic corresponding to the traffic scheduling request to the bridging terminal if the routing identifier is the bridging routing identifier; The third scheduling subunit is used to route the traffic corresponding to the traffic scheduling request to the providing end if the routing identifier is the production center identifier.

9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 4.

10. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.