CN115002027A - Data addressing method and device for in-transit process - Google Patents

Data addressing method and device for in-transit process Download PDF

Info

Publication number
CN115002027A
CN115002027A CN202210583217.4A CN202210583217A CN115002027A CN 115002027 A CN115002027 A CN 115002027A CN 202210583217 A CN202210583217 A CN 202210583217A CN 115002027 A CN115002027 A CN 115002027A
Authority
CN
China
Prior art keywords
addressing
mode switching
stage
data
transit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210583217.4A
Other languages
Chinese (zh)
Inventor
胡军锋
杨�嘉
陈铎
王元元
王秋文
董卉
吕沐安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Postal Savings Bank of China Ltd
Original Assignee
Postal Savings Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Postal Savings Bank of China Ltd filed Critical Postal Savings Bank of China Ltd
Priority to CN202210583217.4A priority Critical patent/CN115002027A/en
Publication of CN115002027A publication Critical patent/CN115002027A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The invention discloses a data addressing method and device for an in-transit process. The invention comprises the following steps: detecting the change condition of the workflow service in the micro-service mode; under the condition that the workflow service is detected to be changed, a single addressing mode corresponding to the workflow service is switched into a multi-stage addressing mode, and a mode switching stage in which an addressing mode switching process is located is determined, wherein the mode switching stage is any one of the following stages: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; determining an addressing strategy of an in-transit flow according to a mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; and carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy. The invention solves the problems that in the related technology, a single addressing mode only supports addressing according to a specific addressing algorithm, and when service changes, addressing is invalid and a flow to be queried and processed cannot be found.

Description

Data addressing method and device for in-transit process
Technical Field
The invention relates to the field of business processing, in particular to a data addressing method and device for an in-transit process.
Background
In the related art, in a scene adopting a workflow, a business process has the characteristics of more process nodes and long processing time span. When designing an information system, an enterprise mostly adopts a micro-service mode, and flexibly stretches and migrates according to the service volume. When workflow services need to be migrated or scaled for a particular reason, the addressing problem of the in-transit process is faced. Most of the current methods are cleaning the in-transit flow or migrating data of the in-transit flow.
Aiming at the problems that in the related art, a single addressing mode only supports addressing according to a specific addressing algorithm, when service changes, addressing is invalid, and a flow to be queried and processed cannot be found, an effective solution is not provided at present.
Disclosure of Invention
The invention mainly aims to provide a data addressing method and a data addressing device for an in-transit flow, so as to solve the problems that in the related technology, a single addressing mode only supports addressing according to a specific addressing algorithm, when service changes, addressing is invalid, and a flow to be inquired and processed cannot be found.
To achieve the above object, according to one aspect of the present invention, there is provided an in-transit data addressing method. The invention comprises the following steps: detecting the change condition of the workflow service in the micro-service mode; under the condition that the workflow service is detected to be changed, a single addressing mode corresponding to the workflow service is switched into a multi-stage addressing mode, and a mode switching stage in which an addressing mode switching process is located is determined, wherein the mode switching stage is any one of the following stages: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; determining an addressing strategy of an in-transit flow according to a mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; and carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy.
Further, determining an addressing strategy for the in-transit process according to the mode switching stage includes: and under the condition that the mode switching stage is a pre-mode switching stage, determining the addressing strategy to be a first strategy, wherein the first strategy is to perform addressing operation on data through a first routing algorithm.
Further, determining an addressing strategy of the in-transit process according to the mode switching stage comprises: and under the condition that the mode switching stage is the mode switching intermediate stage, determining that the addressing strategy is a second strategy, wherein the second strategy is to perform addressing operation on data through a first routing algorithm and a second routing algorithm.
Further, determining an addressing strategy for the in-transit process according to the mode switching stage includes: and under the condition that the mode switching stage is the stage after mode switching, determining that the addressing strategy is a third strategy, wherein the third strategy is to perform addressing operation on data through a second routing algorithm.
Further, according to the addressing strategy, the data corresponding to the in-transit flow is subjected to addressing operation, and the addressing operation comprises the following steps: addressing the data through a second routing algorithm, and ending the flow processing request under the condition of successful operation; and under the condition of operation failure, switching the second routing algorithm into the first routing algorithm to perform addressing operation on the data.
Further, in the case of an operation failure, after switching the second routing algorithm to the first routing algorithm to perform an addressing operation on the data, the method further includes: obtaining an operation result of addressing operation on data according to a first routing algorithm, wherein the operation result is any one of the following results: operation is successful and operation is failed; under the condition that the operation result is successful, determining that the stage of the mode switching process is a pre-mode switching stage; and determining the flow processing request as an abnormal request when the operation result is operation failure.
To achieve the above object, according to another aspect of the present invention, there is provided a flow-in-transit data addressing apparatus. The device includes: the detection unit is used for detecting the change condition of the workflow service in the micro-service mode; the first determining unit is configured to, when a change in the workflow service is detected, switch a single addressing mode corresponding to the workflow service to a multi-stage addressing mode, and determine a mode switching stage in which an addressing mode switching process is located, where the mode switching stage is any one of: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; the second determining unit is used for determining an addressing strategy of the in-transit flow according to the mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; and the addressing unit is used for carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy.
In order to achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium including a stored program, wherein the program performs a flow-in-transit data addressing method as described above.
To achieve the above object, according to another aspect of the present application, there is provided a processor for executing a program, wherein the program performs the above-mentioned one in-transit data addressing method.
The invention adopts the following steps: detecting the change condition of the workflow service in the micro-service mode; under the condition that the change of the workflow service is detected, switching a single addressing mode corresponding to the workflow service into a multi-stage addressing mode, and determining a mode switching stage of an addressing mode switching process, wherein the mode switching stage is any one of the following stages: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; determining an addressing strategy of an in-transit flow according to a mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; according to the addressing strategy, the data corresponding to the in-transit flow is addressed, and the problems that in the related technology, a single addressing mode only supports addressing according to a specific addressing algorithm, when the service is changed, the addressing is invalid, and the flow to be inquired and processed cannot be found are solved. And further, when the service is changed, the processing efficiency of the in-transit processing flow is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a method for in-transit data addressing provided in accordance with an embodiment of the present invention; and
FIG. 2 is a schematic diagram of an addressing mode switching operation provided according to an embodiment of the invention;
FIG. 3 is a flow chart of the final processing results of the data addressing mode corresponding to the in-transit flow;
fig. 4 is a schematic diagram of an in-transit data addressing device according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments of the present invention may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referring to the embodiments of the present invention are explained below:
flow service: and designing the workflow service for the operation of the business process in the micro-service mode.
The process in transit: a transaction or approval event that has started to be transacted but has not yet been completed is an intermediate state flow.
Bus: and the node is used for receiving the request and forwarding the request in the micro service mode.
According to an embodiment of the invention, a method of in-transit data addressing is provided.
FIG. 1 is a flow chart of a method of in-transit data addressing in accordance with an embodiment of the present invention. As shown in fig. 1, the present invention comprises the steps of:
step S101, detecting the change condition of the workflow service in the micro service mode;
step S102, under the condition that the workflow service is detected to be changed, a single addressing mode corresponding to the workflow service is switched into a multi-stage addressing mode, and a mode switching stage of an addressing mode switching process is determined, wherein the mode switching stage is any one of the following stages: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage;
step S103, determining an addressing strategy of an in-transit flow according to the mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service;
and step S104, carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy.
In the scheme, the multi-stage addressing mode supports gradual transition switching of multiple addressing modes in a time-to-space mode, solves the problem of in-transit flow addressing when the workflow service changes in a micro-service mode, and optimizes on-line flow processing during flow service migration or expansion.
The data addressing method of the in-transit process provided by the embodiment of the invention detects the change condition of the workflow service in a micro-service mode; under the condition that the workflow service is detected to be changed, a single addressing mode corresponding to the workflow service is switched into a multi-stage addressing mode, and a mode switching stage in which an addressing mode switching process is located is determined, wherein the mode switching stage is any one of the following stages: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; determining an addressing strategy of an in-transit flow according to a mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; and carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy. The method solves the problems that in the related art, a single addressing mode only supports addressing according to a specific addressing algorithm, when the service is changed, the addressing is invalid, and the flow to be inquired and processed cannot be found. And further, when the service is changed, the processing efficiency of the in-transit processing flow is improved.
Further, compared with a hard switching mode of direct switching, the method provided by the application avoids cleaning and data transplantation of the in-transit flow, and the soft switching scheme provided by the invention avoids the low efficiency and unfriendliness of cleaning the in-transit flow or the complex work of data migration in a database.
In an alternative embodiment, determining the addressing strategy for the in-transit procedure in accordance with the mode switching phase includes: and under the condition that the mode switching stage is a pre-mode switching stage, determining the addressing strategy to be a first strategy, wherein the first strategy is to perform addressing operation on data through a first routing algorithm.
In the multi-stage addressing mode, the multi-stage addressing mode supports the gradual transition switching of multiple addressing modes in a time-to-space mode, wherein the multi-stage addressing mode comprises a mode switching pre-stage, a mode switching middle stage and a mode switching post stage, and the mode switching pre-stage corresponds to the mode switching post stage.
The pre-mode switching stage corresponds to the first step, specifically: the received flow request is routed to the corresponding flow service according to a specific addressing algorithm through the original addressing mode, and the service finishes the operation on the in-transit flow.
In an alternative embodiment, determining the addressing strategy for the in-transit procedure in accordance with the mode switching phase includes: and under the condition that the mode switching stage is a mode switching middle stage, determining that the addressing strategy is a second strategy, wherein the second strategy is to perform addressing operation on data through a first routing algorithm and a second routing algorithm.
In an alternative embodiment, the addressing operation is performed on the data corresponding to the in-transit flow according to an addressing policy, and the addressing operation includes: addressing the data through a second routing algorithm, and ending the flow processing request under the condition of successful operation; and under the condition of operation failure, switching the second routing algorithm into the first routing algorithm to perform addressing operation on the data.
In the above, in the case that the mode switching stage is the middle stage of mode switching, the second addressing strategy is applied.
In an alternative embodiment, determining the addressing strategy for the in-transit process based on the mode switching phase includes: and under the condition that the mode switching stage is the stage after mode switching, determining that the addressing strategy is a third strategy, wherein the third strategy is to perform addressing operation on data through a second routing algorithm.
In the above-mentioned switching process, the bus simultaneously supports the new and old sets of flow services and the corresponding addressing algorithm.
Specifically, as shown in fig. 2, fig. 2 is a flow chart of addressing mode switching: source flow service and routing algorithm f before switching 1( x) are exemplified by f 1 (x) (number m of flow instance ID mod service), and target flow service after handover and corresponding routing algorithm f 2 (x) For example f 2 (x) (flow instance ID mod service number n). The new process start requests are all routed to the target process service and processed by the new process service.
In an alternative embodiment, the addressing operation is performed on the data corresponding to the in-transit flow according to an addressing policy, and the addressing operation includes: addressing the data through a second routing algorithm, and ending the flow processing request under the condition of successful operation; and under the condition of operation failure, switching the second routing algorithm into the first routing algorithm to perform addressing operation on the data.
In an alternative embodiment, after switching the second routing algorithm to the first routing algorithm to perform the addressing operation on the data in case of a failure of the operation, the method further comprises: obtaining an operation result of addressing operation on data according to a first routing algorithm, wherein the operation result is any one of the following results: operation is successful and operation is failed; under the condition that the operation result is successful, determining that the stage of the mode switching process is a pre-mode switching stage; and determining the flow processing request as an abnormal request when the operation result is operation failure.
As shown in fig. 3, fig. 3 is a flowchart of a final processing result of a data addressing mode corresponding to an in-transit flow, and includes: the processing of the started flow firstly adopts a new routing algorithm for addressing and processing, and if the processing is successful, the flow processing request is normally ended; and if the processing fails, the old routing algorithm routes the source flow service before switching to process.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
It should be noted that the data addressing device in the in-transit process of the embodiment of the present invention may be used to execute the data addressing method in the in-transit process provided by the embodiment of the present invention. The following describes a data addressing device for an in-transit process according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of an in-transit data addressing device according to an embodiment of the invention. As shown in fig. 4, the apparatus includes: a detecting unit 401, configured to detect a change condition of a workflow service in a micro service mode; a first determining unit 402, configured to, when it is detected that the workflow service changes, switch a single addressing mode corresponding to the workflow service to a multi-stage addressing mode, and determine a mode switching stage in which an addressing mode switching process is located, where the mode switching stage is any one of: a mode switching front stage, a mode switching middle stage and a mode switching rear stage; a second determining unit 403, configured to determine an addressing policy of an in-transit flow according to the mode switching stage, where the in-transit flow is an unfinished flow corresponding to the workflow service; and the addressing unit 404 is configured to perform an addressing operation on data corresponding to the in-transit flow according to an addressing policy.
In an alternative embodiment, the addressing unit comprises: and the first determining subunit is configured to determine, when the mode switching stage is a pre-mode switching stage, that the addressing policy is a first policy, where the first policy is to perform an addressing operation on data through a first routing algorithm.
In an alternative embodiment, the addressing unit comprises: and the second determining subunit is configured to determine, when the mode switching stage is the mode switching middle stage, that the addressing policy is a second policy, where the second policy is to perform an addressing operation on data through the first routing algorithm and the second routing algorithm.
In an alternative embodiment, the second determining unit includes: and under the condition that the mode switching stage is the stage after mode switching, determining that the addressing strategy is a third strategy, wherein the third strategy is to perform addressing operation on data through a second routing algorithm.
In an alternative embodiment, the second determining subunit includes: the first addressing module is used for addressing the data through a second routing algorithm, and under the condition of successful operation, the flow processing request is ended; and the second addressing module is used for switching the second routing algorithm into the first routing algorithm to perform addressing operation on the data under the condition of operation failure.
In an alternative embodiment, the second addressing module, the apparatus further comprises: the obtaining submodule is used for obtaining an operation result of addressing the data according to the first routing algorithm, wherein the operation result is any one of the following results: operation is successful and operation is failed; the first determining submodule is used for determining that the stage of the mode switching process is the stage before mode switching under the condition that the operation result is that the operation is successful; and the second determining submodule is used for determining the flow processing request as an abnormal request under the condition that the operation result is operation failure.
The data addressing device of the on-the-road process provided by the embodiment of the invention is used for detecting the change condition of the workflow service in a micro-service mode through the detection unit; the first determining unit is configured to, when it is detected that the workflow service changes, switch a single addressing mode corresponding to the workflow service to a multi-stage addressing mode, and determine a mode switching stage in which an addressing mode switching process is located, where the mode switching stage is any one of: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; the second determining unit is used for determining an addressing strategy of the in-transit flow according to the mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; and the addressing unit is used for carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy. The problems that in the related art, a single addressing mode only supports addressing according to a specific addressing algorithm, when service changes, addressing is invalid, and a flow to be inquired and processed cannot be found are solved, and the processing efficiency of in-transit processing flows is improved when the service changes.
The data addressing device of the in-transit process comprises a processor and a memory, wherein the detection unit and the like are stored in the memory as a program unit, and the processor executes the program unit stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that the single addressing mode only supports addressing according to a specific addressing algorithm by adjusting kernel parameters, when service changes, addressing failure is caused, and a flow to be inquired and processed cannot be found is solved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium having a program stored thereon, the program, when executed by a processor, implementing a method of data addressing for an in-transit procedure.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes a data addressing method of an in-transit flow during running.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: detecting the change condition of the workflow service in the micro-service mode; under the condition that the workflow service is detected to be changed, a single addressing mode corresponding to the workflow service is switched into a multi-stage addressing mode, and a mode switching stage in which an addressing mode switching process is located is determined, wherein the mode switching stage is any one of the following stages: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; determining an addressing strategy of an in-transit flow according to a mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; and carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy.
Optionally, determining an addressing policy of the in-transit process according to the mode switching stage includes: and under the condition that the mode switching stage is a mode switching pre-stage, determining that the addressing strategy is a first strategy, wherein the first strategy is to perform addressing operation on data through a first routing algorithm.
Optionally, determining an addressing policy of the in-transit procedure according to the mode switching stage includes: and under the condition that the mode switching stage is a mode switching middle stage, determining that the addressing strategy is a second strategy, wherein the second strategy is to perform addressing operation on data through a first routing algorithm and a second routing algorithm.
Optionally, determining an addressing policy of the in-transit process according to the mode switching stage includes: and under the condition that the mode switching stage is the stage after mode switching, determining that the addressing strategy is a third strategy, wherein the third strategy is to perform addressing operation on data through a second routing algorithm.
Optionally, performing an addressing operation on data corresponding to the in-transit flow according to an addressing policy, including: addressing the data through a second routing algorithm, and ending the flow processing request under the condition of successful operation; and under the condition of operation failure, switching the second routing algorithm into the first routing algorithm to perform addressing operation on the data.
Optionally, in the case of an operation failure, after switching the second routing algorithm to the first routing algorithm to perform an addressing operation on the data, the method further includes: obtaining an operation result of addressing operation on data according to a first routing algorithm, wherein the operation result is any one of the following results: operation is successful and operation is failed; under the condition that the operation result is successful, determining that the stage of the mode switching process is a pre-mode switching stage; and determining the flow processing request as an abnormal request when the operation result is operation failure.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The invention also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: detecting the change condition of the workflow service in the micro-service mode; under the condition that the workflow service is detected to be changed, a single addressing mode corresponding to the workflow service is switched into a multi-stage addressing mode, and a mode switching stage in which an addressing mode switching process is located is determined, wherein the mode switching stage is any one of the following stages: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage; determining an addressing strategy of an in-transit flow according to a mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service; and carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy.
Optionally, determining an addressing policy of the in-transit process according to the mode switching stage includes: and under the condition that the mode switching stage is a pre-mode switching stage, determining the addressing strategy to be a first strategy, wherein the first strategy is to perform addressing operation on data through a first routing algorithm.
Optionally, determining an addressing policy of the in-transit process according to the mode switching stage includes: and under the condition that the mode switching stage is a mode switching middle stage, determining that the addressing strategy is a second strategy, wherein the second strategy is to perform addressing operation on data through a first routing algorithm and a second routing algorithm.
Optionally, determining an addressing policy of the in-transit procedure according to the mode switching stage includes: and under the condition that the mode switching stage is the stage after mode switching, determining that the addressing strategy is a third strategy, wherein the third strategy is to perform addressing operation on data through a second routing algorithm.
Optionally, performing an addressing operation on data corresponding to the in-transit flow according to an addressing policy, including: addressing the data through a second routing algorithm, and ending the flow processing request under the condition of successful operation; and under the condition of operation failure, switching the second routing algorithm into the first routing algorithm to perform addressing operation on the data.
Optionally, in the case of an operation failure, after switching the second routing algorithm to the first routing algorithm to perform an addressing operation on the data, the method further includes: obtaining an operation result of addressing operation on data according to a first routing algorithm, wherein the operation result is any one of the following results: operation is successful and operation is failed; under the condition that the operation result is successful, determining that the stage of the mode switching process is a pre-mode switching stage; and determining the flow processing request as an abnormal request when the operation result is operation failure.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A method for in-transit data addressing, comprising:
detecting the change condition of the workflow service in the micro-service mode;
under the condition that the workflow service is detected to be changed, switching a single addressing mode corresponding to the workflow service into a multi-stage addressing mode, and determining a mode switching stage in which an addressing mode switching process is located, wherein the mode switching stage is any one of the following stages: a mode switching front stage, a mode switching middle stage and a mode switching rear stage;
determining an addressing strategy of an in-transit flow according to the mode switching stage, wherein the in-transit flow is an unfinished flow corresponding to the workflow service;
and carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy.
2. The method of claim 1, wherein determining an addressing strategy for an in-transit process based on the mode switching phase comprises:
and when the mode switching stage is the pre-mode switching stage, determining that the addressing policy is a first policy, wherein the first policy is to perform the addressing operation on the data through a first routing algorithm.
3. The method of claim 1, wherein determining an addressing strategy for an in-transit process based on the mode switching phase comprises:
and under the condition that the mode switching stage is the mode switching middle stage, determining that the addressing strategy is a second strategy, wherein the second strategy is to perform the addressing operation on the data through a first routing algorithm and a second routing algorithm.
4. The method according to any one of claims 1 to 3, wherein determining an addressing strategy for an in-transit procedure in dependence on the mode switching phase comprises:
and when the mode switching stage is the post-mode switching stage, determining that the addressing policy is a third policy, wherein the third policy is to perform the addressing operation on the data through a second routing algorithm.
5. The method of claim 3, wherein addressing the data corresponding to the in-transit flow according to the addressing policy comprises:
the data is subjected to the addressing operation through the second routing algorithm, and the flow processing request is ended under the condition of successful operation;
and under the condition of operation failure, switching the second routing algorithm into the first routing algorithm to perform the addressing operation on the data.
6. The method of claim 5, wherein after switching the second routing algorithm to the first routing algorithm to perform the addressing operation on the data in the event of an operation failure, the method further comprises:
obtaining an operation result of performing the addressing operation on the data according to the first routing algorithm, wherein the operation result is any one of the following results: operation is successful and operation is failed;
determining that the stage of the mode switching process is the pre-mode switching stage when the operation result is that the operation is successful;
and determining that the flow processing request is an abnormal request when the operation result is that the operation fails.
7. An in-transit data addressing device, comprising:
the detection unit is used for detecting the change condition of the workflow service in the micro-service mode;
a first determining unit, configured to switch a single addressing mode corresponding to the workflow service to a multi-stage addressing mode and determine a mode switching stage in which an addressing mode switching process is located when it is detected that the workflow service changes, where the mode switching stage is any one of: a mode switching pre-stage, a mode switching middle stage and a mode switching post stage;
a second determining unit, configured to determine an addressing policy of an in-transit flow according to the mode switching stage, where the in-transit flow is an unfinished flow corresponding to the workflow service;
and the addressing unit is used for carrying out addressing operation on the data corresponding to the in-transit flow according to the addressing strategy.
8. The apparatus of claim 7, wherein the addressing unit comprises:
a first determining subunit, configured to determine that the addressing policy is a first policy when the mode switching stage is the pre-mode switching stage, where the first policy is to perform the addressing operation on the data through a first routing algorithm.
9. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform a method of data addressing for a process according to any one of claims 1 to 6.
10. A processor configured to execute a program, wherein the program executes to perform the method of data addressing of an in-transit procedure of any of claims 1 to 6.
CN202210583217.4A 2022-05-26 2022-05-26 Data addressing method and device for in-transit process Pending CN115002027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210583217.4A CN115002027A (en) 2022-05-26 2022-05-26 Data addressing method and device for in-transit process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210583217.4A CN115002027A (en) 2022-05-26 2022-05-26 Data addressing method and device for in-transit process

Publications (1)

Publication Number Publication Date
CN115002027A true CN115002027A (en) 2022-09-02

Family

ID=83028640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210583217.4A Pending CN115002027A (en) 2022-05-26 2022-05-26 Data addressing method and device for in-transit process

Country Status (1)

Country Link
CN (1) CN115002027A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116414726A (en) * 2023-03-24 2023-07-11 苏州亿铸智能科技有限公司 Task dynamic allocation data parallel computing method based on memory and calculation integrated accelerator

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040105436A1 (en) * 2002-08-30 2004-06-03 Peter Ament System and method for controlling the service engagement in a data bus system
US20100138889A1 (en) * 2008-12-03 2010-06-03 Baskar Subramanian Stream conditioning for seamless switching of addressable content across transport multiplex, using local stored content as pre-roll and post-roll buffers; in digital television receivers
CN102088401A (en) * 2009-12-07 2011-06-08 华为技术有限公司 Addressing processing method and system thereof and network interface device
CN110557289A (en) * 2019-09-17 2019-12-10 中国人民解放军战略支援部队信息工程大学 Network architecture supporting configuration and service response method
CN111416888A (en) * 2020-04-07 2020-07-14 中国建设银行股份有限公司 Addressing method and device based on service gateway
CN112787918A (en) * 2021-01-29 2021-05-11 杭州优云软件有限公司 Data center addressing and main-standby switching method based on service routing tree
CN113382061A (en) * 2021-06-08 2021-09-10 中国工商银行股份有限公司 Service processing method, device and system based on cloud environment
CN114374649A (en) * 2020-10-15 2022-04-19 中国移动通信有限公司研究院 Hybrid routing method, device and network equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040105436A1 (en) * 2002-08-30 2004-06-03 Peter Ament System and method for controlling the service engagement in a data bus system
US20100138889A1 (en) * 2008-12-03 2010-06-03 Baskar Subramanian Stream conditioning for seamless switching of addressable content across transport multiplex, using local stored content as pre-roll and post-roll buffers; in digital television receivers
CN102088401A (en) * 2009-12-07 2011-06-08 华为技术有限公司 Addressing processing method and system thereof and network interface device
CN110557289A (en) * 2019-09-17 2019-12-10 中国人民解放军战略支援部队信息工程大学 Network architecture supporting configuration and service response method
CN111416888A (en) * 2020-04-07 2020-07-14 中国建设银行股份有限公司 Addressing method and device based on service gateway
CN114374649A (en) * 2020-10-15 2022-04-19 中国移动通信有限公司研究院 Hybrid routing method, device and network equipment
CN112787918A (en) * 2021-01-29 2021-05-11 杭州优云软件有限公司 Data center addressing and main-standby switching method based on service routing tree
CN113382061A (en) * 2021-06-08 2021-09-10 中国工商银行股份有限公司 Service processing method, device and system based on cloud environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116414726A (en) * 2023-03-24 2023-07-11 苏州亿铸智能科技有限公司 Task dynamic allocation data parallel computing method based on memory and calculation integrated accelerator
CN116414726B (en) * 2023-03-24 2024-03-15 苏州亿铸智能科技有限公司 Task dynamic allocation data parallel computing method based on memory and calculation integrated accelerator

Similar Documents

Publication Publication Date Title
EP3547648B1 (en) Service processing and consensus method and device
KR20190091484A (en) Blockchain consensus method and device
CN107016016B (en) Data processing method and device
CN107015876B (en) Service request processing method and device
CN111028084A (en) Transaction processing method, device and equipment based on block chain
CN104239156A (en) External service call method and system
CN109391512A (en) A kind of service issuing method, device and electronic equipment
CN115002027A (en) Data addressing method and device for in-transit process
CN111708787A (en) Multi-center service data management system
CN112130758A (en) Data reading request processing method and system, electronic equipment and storage medium
CN110298031B (en) Dictionary service system and model version consistency distribution method
CN112711462A (en) Cloud platform virtual CPU hot binding method and device and computer readable storage medium
CN111078127B (en) Data migration method, system and device
CN110992039A (en) Transaction processing method, device and equipment
CN110888723A (en) Timing task processing method and device
CN110764930A (en) Request or response processing method and device based on message mode
CN115827028A (en) System upgrading method and device, storage medium and electronic equipment
CN112527323A (en) Method and device for installing Ambari and Ambari framework
CN110620703A (en) Http-based service node state determination method
CN112118294B (en) Request processing method, device and medium based on server cluster
CN110618791B (en) CFS storage domain configuration method, device, equipment and readable storage medium
CN111241068B (en) Information processing method, device and equipment and computer readable storage medium
CN111767330B (en) Data interaction method and device, electronic equipment and storage medium
CN110968599B (en) Inquiry method and device based on Impala
CN115495283A (en) Multi-cluster backup method, recovery method and device based on Kubernetes platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination