A flow cutting method and apparatus
By performing tiered traffic switching on orders from target stores under target tenants and combining it with multi-dimensional full traffic switching control, the problems of low accuracy and efficiency in traffic switching in existing technologies have been solved, achieving precise control of the traffic switching range and system stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
- Filing Date
- 2025-01-07
- Publication Date
- 2026-07-14
AI Technical Summary
Existing traffic switching methods cannot meet the requirements for high traffic switching accuracy and have low efficiency. This can have a serious impact on users and systems, especially when new services are launched or existing services are updated.
By performing tiered traffic switching on orders from target stores under target tenants, the traffic switching dimensions for other stores are determined. After the tiered traffic switching is completed, full traffic switching is performed. Traffic switching control is carried out by combining dimensions such as tenant, store, business type, and ordering user to ensure the accuracy and efficiency of the traffic switching scope.
It enables precise control over the flow switching range, improves the accuracy and efficiency of flow switching processing, and ensures the stability and smooth transition of the system when switching to new functions.
Smart Images

Figure CN122390824A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically, to a flow-cutting method and apparatus. Background Technology
[0002] When launching new services or updating existing services, directly enabling all new features at once could severely impact users and the system should problems arise. Therefore, ensuring a smooth transition in production systems by preventing the impact of new features on actual user traffic is crucial, making traffic switching particularly important. However, existing traffic switching methods cannot meet the requirements for high accuracy and have low efficiency. Summary of the Invention
[0003] In view of this, the present disclosure provides at least one flow-switching method, apparatus, electronic device, and storage medium, which can improve the accuracy and efficiency of flow-switching.
[0004] In a first aspect, embodiments of this disclosure provide a flow-cutting method, including:
[0005] Implement tiered traffic redirection for orders from target stores under target tenants;
[0006] In response to the completion of the order gradient traffic switching processing for the target store, determine the traffic switching dimension for full traffic switching processing of orders from other stores under the target tenant; other stores are stores under the target tenant other than the target store;
[0007] Orders from other stores under the target tenant corresponding to the traffic switching dimension are processed for full traffic switching.
[0008] Optionally, before performing gradient traffic splitting on orders from target stores under the target tenant, the following steps are also included:
[0009] Identify the users who placed orders for the target store under the target tenant;
[0010] In response to the pre-established user form including the ordering user, the orders corresponding to the ordering user are processed by full traffic switching.
[0011] Optionally, tiered traffic splitting is applied to orders from target stores under the target tenant, including:
[0012] Determine the business type corresponding to the orders of the target store under the target tenant;
[0013] Based on the pre-configured gradient flow rules for each business type, gradient flow processing is performed on orders of each business type.
[0014] Optionally, tiered traffic splitting is applied to orders from target stores under the target tenant, including:
[0015] Within each preset time period, an initial number of orders are selected from the orders of the target store for gradient traffic splitting; the initial number is determined based on the number of orders from the target store.
[0016] For orders that have completed gradient flow switching, perform consistency verification. In response to successful consistency verification, increase the gradient according to the preset number of orders, gradually increasing the number of orders in the target store that have undergone gradient flow switching until all orders in the target store have completed gradient flow switching and the consistency verification has been confirmed.
[0017] Optionally, the traffic switching dimension includes the store dimension; full traffic switching processing is performed on orders from other stores under the target tenant corresponding to the traffic switching dimension, including:
[0018] Select a preset number of other stores under the target tenant, and perform full traffic diversion processing on the orders of the preset number of other stores;
[0019] For orders from other stores that have completed full traffic switching, perform consistency verification. In response to successful consistency verification, gradually increase the number of other stores that have completed full traffic switching according to the preset number of stores, until all other stores under the target tenant have completed full traffic switching and confirmed that the consistency verification has passed.
[0020] Optionally, the traffic switching dimension includes the business type dimension; full traffic switching is performed on orders from other stores under the target tenant corresponding to the traffic switching dimension, including:
[0021] Perform full traffic redirection on all orders from other stores under the target tenant that correspond to the initial business type;
[0022] For orders of the initial business type that have completed full traffic switching, perform consistency verification. In response to the successful consistency verification, gradually add business types that have undergone full traffic switching according to the preset order of adding business types, until all business types of orders under the target tenant have completed full traffic switching and the consistency verification has been confirmed to be successful.
[0023] Secondly, embodiments of this disclosure provide a flow-cutting device, comprising:
[0024] The gradient traffic switching module is used to perform gradient traffic switching processing on orders from target stores under target tenants;
[0025] The determination module is used to determine the flow cutting dimension for full flow cutting of orders from other stores under the target tenant in response to the completion of the gradient flow cutting processing of orders from the target store; other stores are stores under the target tenant other than the target store.
[0026] The full traffic switching module is used to perform full traffic switching processing on orders from other stores under the target tenant corresponding to the traffic switching dimension.
[0027] Thirdly, embodiments of this disclosure also provide an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the first aspect or any optional implementation of the first aspect are performed.
[0028] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the first aspect or any optional implementation thereof.
[0029] Fifthly, embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of any of the above embodiments.
[0030] Any of the above-mentioned aspects or any implementation methods, by performing tiered traffic redirection processing on orders from target stores under target tenants, can jointly control the scope of traffic redirection through both tenant and store dimensions, achieving precise control over the scope of traffic redirection. Furthermore, the tiered traffic redirection method further ensures the effectiveness of traffic redirection. Moreover, by determining the traffic redirection dimension for full traffic redirection processing of other stores after the tiered traffic redirection processing of orders from target stores is completed, and then performing full traffic redirection on orders from other stores according to the traffic redirection dimension, precise control over the scope of traffic redirection can be further achieved. In addition, the full traffic redirection method can improve the efficiency of traffic redirection processing while ensuring consistency before and after traffic redirection. Therefore, by performing tiered traffic redirection processing on target stores and full traffic redirection processing on other stores, a combination of multiple traffic redirection strategies is achieved, enabling more precise control over the scope of traffic redirection's impact and improving the accuracy and efficiency of traffic redirection processing.
[0031] The effects of the aforementioned flow-cutting device, electronic equipment, and storage medium are described in the above description of the flow-cutting method, and will not be repeated here. Attached Figure Description
[0032] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0033] Figure 1 A flowchart of a flow-cutting method provided in an embodiment of this disclosure is shown;
[0034] Figure 2 A schematic flowchart of a flow-cutting method provided in an embodiment of this disclosure is shown;
[0035] Figure 3 A schematic diagram of a flow-cutting stage provided in an embodiment of this disclosure is shown;
[0036] Figure 4 A schematic diagram of a flow-cutting device provided in an embodiment of this disclosure is shown;
[0037] Figure 5 An exemplary system architecture in which embodiments of this disclosure can be applied is shown;
[0038] Figure 6 A schematic diagram of the structure of a computer system used to implement the embodiments of the present disclosure is shown. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0040] It should be noted that the collection, use, storage, sharing and transfer of user personal information involved in the technical solution of the present invention all comply with the provisions of relevant laws and regulations, and require notification to users and obtaining their consent or authorization. When applicable, user personal information is subjected to de-identification and / or anonymization and / or encryption technical processing.
[0041] The above problems and solutions are the result of the inventor's practice and careful research. The discovery process of the above problems and the solutions proposed for the above problems should be considered as the inventor's contribution to this disclosure.
[0042] The technical solutions of this disclosure will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely to illustrate selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0043] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0044] To facilitate understanding of this embodiment, a detailed description of the flow-switching method disclosed in this disclosure is provided first. The execution entity of the flow-switching method provided in this disclosure is generally a computer device with certain computing capabilities. This computer device may include, for example, a terminal device, a server, or other processing devices. The terminal device may be a user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, etc. In some possible implementations, this flow-switching method can be implemented by the processor calling computer-readable instructions stored in memory.
[0045] See Figure 1 The diagram shows a flowchart of a flow-cutting method provided in an embodiment of this disclosure. The method includes steps S101 to S103, wherein:
[0046] S101: Perform gradient traffic switching on orders from the target store under the target tenant.
[0047] In this embodiment of the disclosure, traffic switching refers to switching business traffic in the system from one version, channel, or system to another. This can be used in scenarios such as business system or software upgrades and canary releases to ensure system stability and a smooth transition. The traffic here can refer to the traffic generated by the system processing business requests, such as user orders and request data; it can also refer to the traffic generated by user operations within the system, such as user access traffic and order placement traffic. The specific type can be determined based on the actual business scenario, and this embodiment of the disclosure does not impose specific limitations on it.
[0048] Figure 2 This is a schematic flowchart illustrating a flow-cutting method provided in an embodiment of this disclosure. Figure 2 As shown, before officially starting the traffic switching process, the tenant type can be determined first. In specific implementation, the target tenants that need to be switched can be determined according to the pre-configured traffic switching tenant form. The non-target tenants that do not need to be switched and the target tenants that need to be switched can be divided based on actual needs; for example, tenants that are not involved in this business update or new product can be classified as non-target tenants, as can tenants with a small scale or a small user base, as well as tenants that have participated in the early trial operation of the new business, etc. Therefore, when determining the target tenants that need to be switched, the target tenants can be directly determined using the traffic switching tenant form, or they can be determined according to different tenant types. The method of determining the target stores under the target tenants can also be set according to actual needs. For example, the top 20% of stores in terms of daily order volume can be used as target stores, or target stores can be randomly selected, etc. This embodiment of the disclosure does not specifically limit the specific methods and basis for determining target tenants and target stores, but focuses on achieving its function.
[0049] In this embodiment of the disclosure, before performing gradient traffic switching on orders from target stores under target tenants, internal verification can be performed using newly launched services or updated functions. Specifically, before performing gradient traffic switching on orders from target stores under target tenants, the process further includes: determining the ordering user corresponding to the order from the target store under the target tenant; and, in response to the pre-established user form including the ordering user, performing full traffic switching on the orders corresponding to the ordering user.
[0050] In practice, a form validation mechanism can be used to process only orders submitted by users who have placed orders through a pre-established user form. This form validation can be divided into two stages: the first stage can be for internal user validation, and the second stage can be for target user validation. Specifically, in the first stage, internal staff accounts can be collected to configure the user form. This allows for processing only orders placed by internal employees, facilitating rapid problem identification and resolution without impacting the user experience of external users. In the second stage, accounts of highly active users from the target store can be collected to configure the user form. Since newly launched or updated services and functions have already undergone internal validation, highly active users typically have higher order frequency and feedback efficiency. Therefore, configuring highly active users in the user form helps to efficiently and quickly validate newly launched or updated services and functions.
[0051] like Figure 2 As shown, the form validation mechanism can include two parts: a form identifier and a form nickname. Specifically, the form identifier and the form nickname can be considered as two forms with different dimensions. The form nickname can be used to handle situations where a public identifier is used in certain business scenarios. In some scenarios, the system may be unable to obtain the identifier of the user placing the order for various reasons. In this case, the public identifier is usually used as the identifier for that user to place the order. If all public identifiers are configured in the user form, it will cause all orders corresponding to that scenario to be fully redirected, resulting in a large impact. Therefore, in this case, a user form constructed using the user nickname can be used instead of a user form obtained based on the identifier, to achieve precise control of the redirection. The form identifier can be used in general scenarios where the identifier of the user placing the order can be obtained.
[0052] In this embodiment of the disclosure, after internal verification of newly launched or updated services and functions is completed and the internal verification is confirmed to be successful, tiered traffic redirection processing can be performed on orders from target stores under the target tenant, i.e., entering the precise traffic redirection processing stage. Here, tiered traffic redirection can refer to a gradient increase in the number of orders undergoing traffic redirection processing, or it can refer to a gradient increase in the proportion of orders undergoing traffic redirection processing.
[0053] In one possible implementation, gradient traffic splitting is performed on orders from target stores under the target tenant, including: selecting an initial number of orders from the target store's orders for gradient traffic splitting within preset time periods; the initial number is determined based on the number of orders from the target store; performing consistency verification on the orders that have completed gradient traffic splitting, and in response to the consistency verification passing, increasing the gradient according to the preset number of orders, gradually increasing the number of orders in the target store undergoing gradient traffic splitting, until all orders in the target store have completed gradient traffic splitting and the consistency verification has been confirmed to have passed.
[0054] In practice, a day can be divided into multiple batches, such as 10 batches. The number of orders requiring traffic switching can be set for each batch. Once a traffic-switching order is completed, it can be cached in its corresponding location. When the number of cached orders reaches the pre-set number, traffic switching for other orders within that batch can be stopped. Then, a consistency check can be performed on the completed traffic-switching orders to verify whether the relevant functions and data are normal before and after the traffic switching. If the consistency check passes, the number of orders to be switched in each batch can be increased, and so on, performing tiered traffic switching for orders from the target store until all orders from the target store have completed the traffic switching. The initial number of orders to be switched for the first time and the number of orders to be switched each time can be configured using predefined configuration options.
[0055] Alternatively, the initial number of orders to be processed for the first time, and the number of orders to be processed each time, can be determined based on the real-time order volume of the target store. For example, if it is initially estimated that target store A will have around 50 orders in the first batch that day, and therefore the initial number of orders for the first batch is set to 15, but it is actually found that target store A only has 25 orders in the first batch that day, then selecting 15 orders for processing is clearly too high. Therefore, the initial number and subsequent increases can be determined based on the current order volume. Assuming the preset processing ratio is 30%, then the initial number of orders to be processed in the first batch for target store A that day can be adjusted to 7 (non-integer numbers can be rounded up or down according to the settings).
[0056] In specific implementation, the consistency verification and the internal verification mentioned above can be set according to the actual scenario and verification requirements. For example, it may include whether the order information is complete (whether it is consistent with the one before the flow cut), whether the order data is correct (e.g., whether the calculated amount is correct), whether the order product inventory is correctly deducted, whether the post-order process is normal (e.g., whether payment, production fulfillment, adjustment, after-sales, etc. are normal), etc. This disclosure embodiment does not make specific limitations on this, as long as it can achieve its function.
[0057] Another possible implementation is to configure a daily traffic redirection percentage for the target store. Once configured, orders within this percentage range will be redirected, achieving tiered traffic redirection for the target store. In practice, the percentage gradient for redirected orders can be pre-configured and read each time traffic is redirected. Adjustments to the configuration will adjust the application's traffic redirection percentage accordingly. During tiered traffic redirection, assuming an initial redirection percentage of 10% is configured, after processing 10% of the orders and confirming consistency, the redirection percentage can be gradually increased to 25%, 50%, etc., until all orders from the target store under the target tenant have completed tiered traffic redirection and confirmed consistency.
[0058] In this embodiment of the disclosure, in addition to combining the tenant dimension and the store dimension for gradient traffic cutting, gradient traffic cutting can also be performed on orders from target stores in combination with the business type dimension. Specifically, performing gradient traffic cutting on orders from target stores under target tenants includes: determining the business type corresponding to the orders from target stores under target tenants; and performing gradient traffic cutting on orders of each business type according to the gradient traffic cutting rules pre-configured for each business type.
[0059] In practical implementation, different tiered traffic switching rules can be configured for orders of different business types in the target store. For example, this includes specifying which business types of orders need traffic switching, which do not, the initial number or proportion of traffic switching for each type of business requiring switching, and the proportion after the tiered increase. It also includes specifying which other business types of orders can be extended to tiered traffic switching once consistency verification is passed. This disclosure does not specifically limit the tiered traffic switching rules related to business types; the goal is to achieve the desired functionality.
[0060] In this embodiment, in addition to performing tiered traffic splitting on orders from target stores under target tenants based on different business types, traffic splitting can also be performed on orders from target stores based on different ordering users. The specific implementation is similar to the stage of internal verification using user forms described above, and will not be repeated here.
[0061] It should be noted that in practical applications, the dimension for gradient flow processing can be selected according to actual needs. For example, the dimensions of "tenant + store", "tenant + store + business type", "tenant + business type", "tenant + store + user", etc. are selected. This embodiment does not make specific limitations on this, and the functionality shall prevail.
[0062] S102: In response to the completion of the gradient traffic switching processing for the target store's orders, determine the traffic switching dimension for full traffic switching processing of orders from other stores under the target tenant.
[0063] In this step, such as Figure 3 As shown, after completing the gradient traffic switching process for the target store, the precise traffic switching phase ends, and the volume traffic switching phase can begin. In the volume traffic switching phase, the traffic switching dimensions for full traffic switching of other stores under the target tenant can be determined first. These dimensions can include store dimensions, business type maintenance, time dimensions, user type dimensions, etc. The specific traffic switching dimension chosen in practice can be set according to the actual situation; this embodiment does not impose specific limitations on this. The other stores here can be any stores under the target tenant other than the target store that has already undergone gradient traffic switching in S101; or they can be any remaining stores that require traffic switching. This embodiment does not impose specific limitations on this either.
[0064] For example, assuming the traffic switching dimension is set as the store dimension, then according to certain rules, all orders of a store can be switched at once; assuming the traffic switching dimension is set as the business type dimension, then all orders corresponding to a certain business type in all other remaining stores can be switched at once.
[0065] The method for performing full traffic switching processing on orders from other stores under the target tenant based on the determined traffic switching dimension is explained in detail in S103, and will not be repeated here.
[0066] S103: Perform full traffic switching processing on orders from other stores under the target tenant corresponding to the traffic switching dimension.
[0067] In one possible implementation, when the traffic switching dimension is the store dimension, the orders of other stores under the target tenant corresponding to the traffic switching dimension are fully switched, including: selecting a preset number of other stores under the target tenant and performing full traffic switching on the orders of the preset number of other stores; performing consistency verification on the orders of other stores that have completed full traffic switching, and in response to the consistency verification passing, gradually increasing the number of other stores that have performed full traffic switching on the orders according to the preset number of stores, until all other stores under the target tenant have completed full traffic switching and the consistency verification has been confirmed to pass.
[0068] In practice, after the tiered traffic switching process is completed for all orders from the target store under the target tenant, a full traffic switching process can be performed on the orders from other stores under the target tenant. For example, assuming there are 80 other stores under the target tenant, 30% of these stores can be selected first, and all orders from these stores can be switched at once. Once the consistency check is passed for the full traffic switching of these 30% of other stores, this percentage can be gradually increased until all 80 other stores have completed the full traffic switching process.
[0069] In another possible implementation, when the traffic switching dimension is the business type dimension, the following steps are taken: Full traffic switching is performed on orders from other stores under the target tenant corresponding to the traffic switching dimension. This includes: performing full traffic switching on all orders from all other stores under the target tenant that correspond to the initial business type; performing consistency verification on orders of the initial business type that have completed full traffic switching; and, in response to successful consistency verification, gradually adding business types to the order list according to a preset order of business type addition, until all business types of orders from all other stores under the target tenant have completed full traffic switching and the consistency verification has been confirmed to have passed.
[0070] In practical implementation, when the traffic switching dimension is a business attribute dimension, full traffic switching can be performed on orders of certain business types under the target tenant. For example, suppose the target tenant corresponds to three business types: business type A, business type B, and business type C. Assuming business type A is the initially configured business type, then all orders under the target tenant corresponding to business type A can undergo full traffic switching. After these orders pass consistency verification, the business types corresponding to orders requiring full traffic switching can be gradually added according to the originally configured order of addition, until all orders of all business types under the target tenant have completed full traffic switching.
[0071] In this embodiment of the disclosure, in addition to the store dimension and business type dimension, the traffic cutting dimension may also include the ordering user dimension, time dimension, etc. The specific traffic cutting method is similar to the method described above for performing full traffic cutting processing on orders from other stores under the target tenant using the store dimension or business type dimension as the traffic cutting dimension. The specific full traffic cutting method can be adaptively adjusted according to different traffic cutting dimensions, which will not be elaborated here.
[0072] According to a second aspect of the embodiments of this disclosure, such as Figure 4 As shown, a flow-cutting device 400 is provided, comprising:
[0073] The gradient flow cutting module 401 is used to perform gradient flow cutting processing on orders from target stores under target tenants;
[0074] The determination module 402 is used to determine the flow cutting dimension for full flow cutting of orders from other stores under the target tenant in response to the completion of the order gradient flow cutting processing of the target store; other stores are stores under the target tenant other than the target store.
[0075] The full-volume traffic switching module 403 is used to perform full-volume traffic switching processing on orders from other stores under the target tenant corresponding to the traffic switching dimension.
[0076] Optionally, the gradient flow tangent module 401 is also used for:
[0077] Identify the users who placed orders for the target store under the target tenant;
[0078] In response to the pre-established user form including the ordering user, the orders corresponding to the ordering user are processed by full traffic switching.
[0079] Optionally, the gradient flow tangent module 401 is specifically used for:
[0080] Determine the business type corresponding to the orders of the target store under the target tenant;
[0081] Based on the pre-configured gradient flow rules for each business type, gradient flow processing is performed on orders of each business type.
[0082] Optionally, the gradient flow tangent module 401 is specifically used for:
[0083] Within each preset time period, an initial number of orders are selected from the orders of the target store for gradient traffic splitting; the initial number is determined based on the number of orders from the target store.
[0084] For orders that have completed gradient flow switching, perform consistency verification. In response to successful consistency verification, increase the gradient according to the preset number of orders, gradually increasing the number of orders in the target store that have undergone gradient flow switching until all orders in the target store have completed gradient flow switching and the consistency verification has been confirmed.
[0085] Optionally, the traffic switching dimension includes the store dimension; the full traffic switching module 403 is specifically used for:
[0086] Select a preset number of other stores under the target tenant, and perform full traffic diversion processing on the orders of the preset number of other stores;
[0087] For orders from other stores that have completed full traffic switching, perform consistency verification. In response to successful consistency verification, gradually increase the number of other stores that have completed full traffic switching according to the preset number of stores, until all other stores under the target tenant have completed full traffic switching and confirmed that the consistency verification has passed.
[0088] Optionally, the traffic switching dimension includes the business type dimension; the full traffic switching module 403 is specifically used for:
[0089] Perform full traffic redirection on all orders from other stores under the target tenant that correspond to the initial business type;
[0090] For orders of the initial business type that have completed full traffic switching, perform consistency verification. In response to the successful consistency verification, gradually add business types that have undergone full traffic switching according to the preset order of adding business types, until all business types of orders under the target tenant have completed full traffic switching and the consistency verification has been confirmed to be successful.
[0091] According to a third aspect of the present disclosure, a flow-switching electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the present invention.
[0092] According to a fourth aspect of the present disclosure, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect of the present invention.
[0093] According to a fifth aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method of any of the above embodiments.
[0094] Figure 5 An exemplary system architecture 500 is shown that can be applied to the flow-cutting method or flow-cutting apparatus implemented in this disclosure.
[0095] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, and 503, a network 504, and a server 505. Network 504 serves as the medium for providing communication links between terminal devices 501, 502, and 503 and server 505. Network 504 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0096] Users can use terminal devices 501, 502, and 503 to interact with server 505 via network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, and 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0097] Terminal devices 501, 502, and 503 can be various electronic devices with displays that support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0098] Server 505 can be a server that provides various services, such as a backend management server (for example only) that supports shopping websites browsed by users using terminal devices 501, 502, and 503. The backend management server can process the received traffic switching requests and return the processing results (for example only) to the terminal devices.
[0099] It should be noted that the flow-cutting method provided in this embodiment of the invention is generally executed by server 505, and correspondingly, the flow-cutting device is generally located in server 505. The flow-cutting method provided in this embodiment of the invention can also be executed by terminal devices 501, 502, and 503, and correspondingly, the flow-cutting device can be located in terminal devices 501, 502, and 503.
[0100] It should be understood that Figure 5 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0101] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing a terminal device of the present invention. Figure 6 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0102] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0103] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.
[0104] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.
[0105] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0106] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0107] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be set in a processor. For example, a processor includes a gradient flow cutting module, a determination module, and a full flow cutting module. The names of these modules do not necessarily limit the module itself. For example, the gradient flow cutting module can also be described as "a module for gradient flow cutting processing of orders from target stores under target tenants".
[0108] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, implement the following method: performing gradient traffic switching processing on orders of a target store under a target tenant; in response to the completion of gradient traffic switching processing on orders of the target store, determining a traffic switching dimension for full traffic switching processing on orders of other stores under the target tenant; other stores are stores under the target tenant other than the target store; and performing full traffic switching processing on orders of other stores under the target tenant corresponding to the traffic switching dimension.
[0109] Finally, it should be noted that the above embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A flow-cutting method, characterized in that, include: Implement tiered traffic redirection for orders from target stores under target tenants; In response to the completion of the order gradient traffic switching processing for the target store, a traffic switching dimension is determined for the full traffic switching processing of orders from other stores under the target tenant; the other stores are stores under the target tenant other than the target store. Orders from other stores under the target tenant corresponding to the aforementioned traffic-cutting dimension are processed for full traffic-cutting.
2. The method according to claim 1, characterized in that, Before performing tiered traffic splitting on orders from target stores under the target tenant, the following steps are also included: Identify the ordering user corresponding to the order placed by the target store under the target tenant; In response to the pre-established user form including the ordering user, the orders corresponding to the ordering user are processed by full traffic switching.
3. The method according to claim 1, characterized in that, Implement tiered traffic routing for orders from target stores under the target tenant, including: Determine the business type corresponding to the orders of the target store under the target tenant; Based on the pre-configured gradient flow rules for each business type, gradient flow processing is performed on orders of each business type.
4. The method according to claim 1, characterized in that, Implement tiered traffic routing for orders from target stores under the target tenant, including: Within each preset time period, an initial number of orders are selected from the orders of the target store for gradient traffic splitting; the initial number is determined based on the number of orders of the target store. For orders that have completed gradient flow switching, a consistency check is performed. In response to the successful consistency check, the gradient is increased according to the preset number of orders. The number of orders in the target store undergoing gradient flow switching is gradually increased until all orders in the target store have completed gradient flow switching and the consistency check has been confirmed to have passed.
5. The method according to claim 1, characterized in that, The traffic-cutting dimension includes the store dimension; Perform full traffic redirection processing on orders from other stores under the target tenant corresponding to the aforementioned traffic redirection dimension, including: Select a preset number of other stores under the target tenant, and perform full traffic diversion processing on the orders of the preset number of other stores; For orders from other stores that have completed full traffic switching, a consistency check is performed. In response to the successful consistency check, the number of other stores that have completed full traffic switching is gradually increased according to a preset number of stores, until all other stores under the target tenant have completed full traffic switching and the consistency check has been confirmed to have passed.
6. The method according to claim 1, characterized in that, The traffic switching dimension includes the business type dimension; full traffic switching processing is performed on orders from other stores under the target tenant corresponding to the traffic switching dimension, including: Perform full traffic redirection on all orders from other stores under the target tenant that correspond to the initial business type; For the initial business type orders that have completed full traffic switching, a consistency check is performed. In response to the successful consistency check, the business types that have undergone full traffic switching are gradually added according to the preset order of adding business types, until all business types of orders under the target tenant have completed full traffic switching and the consistency check has been confirmed to have passed.
7. A flow-cutting device, characterized in that, include: The gradient traffic switching module is used to perform gradient traffic switching processing on orders from target stores under target tenants; The determination module is used to determine the flow cutting dimension for full flow cutting of orders from other stores under the target tenant in response to the completion of the order gradient flow cutting processing of the target store; the other stores are stores under the target tenant other than the target store; The full-volume traffic cutting module is used to perform full-volume traffic cutting processing on orders from other stores under the target tenant corresponding to the traffic cutting dimension.
8. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. 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 claims 1-6.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.
10. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-6.