Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all 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 application.
As described above, in order to ensure the consistency of grouping the local flow and the opposite flow under the same bill, the current reconciliation system cannot intelligently and dynamically adjust the transaction group. If the number of the transaction groups is controlled to be large in consideration of the increase of future services, when the amount of the services is small, each transaction group is only allocated with a small amount of running water to be subjected to account checking, and occupies more processing resources of the account checking system in a short time, so that the performance of the account checking system is easy to shake and even goes down. However, if the number of transaction groups is controlled within a reasonable range without considering the increase of future services, when the traffic volume is large, the transaction groups cannot bear the traffic volume, the configuration of the transaction groups needs to be manually changed, the changing process is very complicated, and errors that the local flow and the opposite flow under the same bill are inconsistent easily occur.
Therefore, the present application provides a solution to the above-mentioned problems.
In the application, the account checking system is provided with at least one transaction group, and the transaction group is used for executing account checking operation on the party flow and the other party flow of the same bill under the specified grouping value. After the reconciliation system records the flow on the ground, a packet value is allocated to the flow based on a packet configuration mode matched with the number of the current transaction groups (the process is regarded as grouping the flow).
In the operation process of the account checking system, the number of the transaction groups is dynamically adjusted according to the change of the traffic, so that the corresponding grouping configuration is changed. Therefore, the method aims to control the local flow and the opposite flow under the same bill to be grouped according to the same grouping configuration mode in the stage of switching the original grouping configuration to the new grouping configuration.
Fig. 1 is a flowchart of a pipeline processing method of an account checking system according to an embodiment of the present application. The method shown in fig. 1 may be performed by a corresponding apparatus, comprising:
and S102, classifying the flow recorded on the ground at the starting stage of the switch according to the flow bill identification when the switch configured by groups is started to obtain a first flow grouped according to a grouping configuration mode before switching and a second flow grouped according to a grouping configuration mode after switching.
The grouping configuration mode is determined and obtained based on the number of basic transaction groups of the reconciliation system. The diverter switch is opened after the number of basic transaction groups of the reconciliation system is changed.
And step S104, grouping the first class of flow according to a grouping configuration mode before switching. And
and step S106, grouping the second class of pipelines according to the switched grouping configuration mode.
Based on the pipeline processing method shown in fig. 1, in the embodiment of the present application, at the packet configuration switching stage, the pipelines that are recorded as the switching stage floor based on the pipeline bill identifier are classified, the pipelines that are grouped according to the pre-switching packet configuration mode and the pipelines that are grouped according to the post-switching packet configuration mode are determined, and the pipelines are grouped according to the corresponding packet configuration mode, so that the grouping consistency of the pipelines of the current side and the pipelines of the other side under the same bill is ensured, the reconciliation system has the basis of dynamically adjusting the transaction group on the basis of normal reconciliation, and can be used for solving a series of problems caused by unreasonable configuration of the transaction group.
The method of the embodiments of the present application is described in detail below.
At present, the local running time recorded by the account checking system is not consistent with the running time of the other party. Since the counter flow is provided by the counter system, in most cases, the counter flow under the same bill is recorded before the counter flow. In a very specific case, there is a special case that the running water of the bill is later than the running water of the other party under the same bill, and the bill is called as a bill of bill drop in the industry.
The reconciliation system assigns a grouping value to the running water each time the running water is logged on the floor. When the packet configuration is switched, if the recording time of one of the local pipeline and the opposite pipeline in the same bill is before the packet configuration is switched and the recording time of the other pipeline is after the packet configuration is switched, the problem of inconsistent packets occurs.
Therefore, the method of the embodiment of the present application provides a method for adaptively adjusting the configuration of the packet transaction, aiming at the characteristic that the running bill identifiers of the local flow and the counter flow are unique (i.e. the local flow and the counter flow are checked according to the bill number 1.
The method for judging the grouping configuration is specifically divided into the following four logics.
Logic one
If the running water recorded by falling to the ground in the starting stage of the change-over switch is the running water of the other party and the running water bill identification corresponding to the running water of the other party is recorded for the first time, the fact that the running water of the current party under the same bill is recorded by falling to the ground before the change-over switch is started in most cases is shown, and grouping is carried out according to a grouping configuration mode before switching.
Or, in a rare case (such as the bill of the bill), the current water in the same bill is recorded by falling to the ground after the switch is turned on.
Obviously, for the above two cases, in order to ensure the packet consistency between the opposite-party flow and the local flow, the opposite-party flow may be uniformly determined as the first-class flow grouped according to the pre-switching packet configuration mode.
Logic two
If the running water recorded in the floor at the starting stage of the change-over switch is the running water of the current party and the running water bill identification corresponding to the running water of the current party is recorded, the running water of the opposite party under the same bill is grouped according to the logic one, at the moment, in order to ensure the grouping consistency, the running water of the current party is also determined as the first running water, and the first running water is grouped according to the grouping configuration mode before switching.
Logic three
If the running water recorded by falling to the ground at the stage of starting the change-over switch is the running water of the bill, and the running water bill identification corresponding to the running water of the bill is not recorded, it is indicated that the running water of the opposite party under the same bill can be recorded by falling to the ground subsequently under most conditions, and at the moment, the running water of the bill can be determined into the second running water, and the second running water is grouped according to the grouping configuration mode after switching.
In extreme cases, the running water of the other party under the same bill falls to the ground before the change-over switch is turned on, and considering that the running water of the other party is recorded just falling to the ground at the turn-on stage of the change-over switch, the situations that the two running water and the change-over switch occur at the same time in practical application can be ignored, and therefore the situations are not considered in the embodiment of the application.
Logic four
If the pipelining recorded by landing at the starting stage of the switch is the pipelining of the other party and the pipelining bill identification corresponding to the pipelining bill of the other party is recorded, it is necessarily shown that the pipelining of the other party under the same bill is recorded by landing after the switch is started and grouping is performed based on the logic three, and at this time, in order to ensure the grouping consistency, the pipelining of the other party is determined to be the second class of pipelining which is grouped according to the grouping configuration mode after switching.
Specifically, the above four logics can be implemented in a simple manner.
That is, the method of the embodiment of the present application refers to an intermediate table, and a predetermined field of the intermediate table is used for recording the running bill identification of the running water recorded at the on stage of the switch. The running bill identification in the given field has unique constraint, so that the intermediate table has a function of verifying the idempotency of the running bill identification.
In the on-phase of the switch, when a running water is recorded on the ground, the running water bill identification of the running water is inserted into the established field of the intermediate table.
And if the running water recorded by the floor of the starting stage of the change-over switch is the running water of the local party and the corresponding running water bill identification cannot be inserted into the set field, determining the running water recorded by the floor of the starting stage of the change-over switch as the first class running water corresponding to the logic two.
And if the running water recorded by the landing of the starting stage of the change-over switch is the running water of the opposite side and the corresponding running water bill identification is successfully inserted into the set field, determining the running water recorded by the landing of the starting stage of the change-over switch as the first type of running water corresponding to the logic one.
And if the running water recorded by the floor of the starting stage of the change-over switch is the running water of the local party and the corresponding running water bill identification is successfully inserted into the established field, determining the running water recorded by the floor of the starting stage of the change-over switch to be the second class running water corresponding to the logic three.
And if the running water recorded by the floor of the starting stage of the change-over switch is the running water of the opposite side and the corresponding running water bill identification cannot be inserted into the set field, determining the running water recorded by the floor of the starting stage of the change-over switch to be the second type of running water corresponding to the logic four.
Obviously, the idempotent of the running water bill identification is verified through the intermediate table, the sequence of the landing records of the running water of the current bill and the running water of the other party under the same bill and the sequence of the landing record time of the current bill and the running water of the other party relative to the switching time of the grouping configuration can be simply and conveniently determined, and therefore grouping is accurately carried out according to the four logics.
It should be understood that the switcher turn-on phase may be considered the transitional phase of changing the original packet configuration to the new packet configuration. In this transition phase, the current inventory is solved by pipelining packets based on pre-switch packet configurations. Thus, when these inventories of flow are grouped, the end of the transition is indicated.
Correspondingly, the method of the embodiment of the application can periodically judge whether the reconciliation system has the local running water recorded before the switch is turned on in a transition stage (namely, a switch turning-on stage of grouping configuration). And once judging that the flow is not existed, actively closing the switch, and uniformly grouping the flow according to a grouping configuration mode after switching after the switch is closed.
For ease of understanding the solution of the present application, reference is made to fig. 2. Figure 2 illustrates three stages of pipelining. Wherein, the vertical direction from top to bottom represents the sequence of the standing records of the reconciliation system.
Stage one
The first stage is the time before the switch is turned on. In the stage one, all the running water recorded on the ground of the reconciliation system is grouped according to a grouping configuration mode before switching. For example, the current of bills a, B, and C and the current of the other bill a and B in fig. 2.
Stage two
And the second stage is the time when the change-over switch is in an on state. In the second phase, the bills N, M, and L recorded by the checking system falling to the ground all belong to normal bills, that is, the local streams of the bills N, M, and L are recorded before the corresponding local streams of the other party, so that the local streams of the bills N, M, and L and the local streams of the other party are grouped according to the switched grouping configuration mode corresponding to the logic three. And for the flow of the other party of the bill C, grouping according to the grouping configuration mode before switching corresponding to the logic one, and keeping the same with the flow of the other party of the bill C.
And for the bill E belonging to the bill falling bill, grouping the party flow of the bill E according to a grouping configuration mode before switching corresponding to the logic one, and grouping the party flow of the bill E according to a grouping configuration mode before switching corresponding to the logic two.
Stage three
And the third stage is the time after the switch is closed. In the third stage, all the running water recorded by the checking system falling to the ground is grouped according to the switched grouping configuration mode. For example, the bill F, G is produced by the present party and the other party.
The method of the embodiment of the present application is exemplified below with reference to an actual application scenario.
In the application scenario, the reconciliation system sets up multiple transaction groups. Wherein the plurality of transaction groups are further divided into: at least one base transaction group and no more than a buffered transaction group for the at least one base transaction group.
The reconciliation system preferentially appoints a grouping value to the basic transaction group, so that the basic transaction group executes reconciliation operation on the party flow and the opposite party flow of the same bill under the appointed grouping value. And under the condition that the capacities of all basic transaction groups are saturated, further appointing a packet value for the buffer transaction group, and using the buffer transaction group to execute account checking operation on the local flow and the opposite flow of the same bill under the appointed packet value.
Under normal conditions, the account checking system can complete account checking business volume based on the basic transaction group. The buffer transaction group is used for reconciliation when the basic transaction group is not processed, and the high-service concurrency scene in a short time can be dealt with.
As shown in fig. 3, the application scenario may monitor the buffered transaction group at regular time, and if the buffered transaction group is checked for N consecutive days (or the checking frequency per unit time is greater than M times), it indicates that the traffic of the checking system is not occasionally expanded, but the current basic transaction group cannot be handled, at this time, the number of the basic transaction group may be recalculated based on the traffic of the checking system corresponding to the latest time window and the unit capacity of the basic transaction group, and the basic transaction group is expanded according to the calculation result to obtain a new grouping configuration (the grouping configuration depends on the number of the basic transaction group).
And after the account checking system generates the new grouping configuration, the change-over switch can be started. At the on stage of the switch, as shown in fig. 4, the accounting system regularly catches the local running water recorded on the ground before the packet configuration is switched.
If the fishing fails, the checking system does not need to continue using the grouping configuration mode before switching to perform grouping inventory pipelining, and at the moment, the selector switch is directly closed to finish the transition stage. If the fishing is successful, whether the change-over switch is turned on or not is further judged.
And if the change-over switch is turned on, entering a transition stage, and inserting the running water bill identifications of the local running water and the opposite running water recorded in the falling place of the change-over switch in the turn-on stage into the intermediate table so as to verify the idempotency.
If the running bill identification of the running water of the current party is inserted into the intermediate table, the idempotent success is shown, and at the moment, the switched grouping configuration mode is called to calculate the grouping value of the current party running water. And if the running bill identification of the running water of the current party cannot be inserted into the intermediate table, the idempotent failure is represented, and at the moment, a packet configuration mode before switching is called to calculate the packet value of the current party running water.
If the flow bill identification of the other flow is inserted into the intermediate table, the idempotent success is shown, and at the moment, the packet value of the other flow is calculated by calling the packet configuration mode before switching. If the flow bill identification of the other flow cannot be inserted into the intermediate table, the idempotent failure is represented, and at the moment, the switched grouping configuration mode is called to calculate the grouping value of the other flow.
It should be understood that, regardless of how the basic transaction group changes, as long as the packet values of the present and counterpart pipelines under the same bill remain the same, the present and counterpart pipelines under the same bill can be reconciled by the same basic transaction group after the packet values are assigned to the basic transaction group.
The above is an introduction to the application scenario. It should be understood that the method in the embodiment of the present application is also applicable to the scenario where the number of basic transaction groups is reduced, and is not described herein again by way of example since it is far from the same.
In summary, based on the method of the embodiment of the present application, the reconciliation system can adaptively adjust the number of the basic transaction groups according to the traffic volume, thereby considering both the reconciliation processing efficiency and the resource utilization rate.
In accordance with the pipeline processing method, as shown in fig. 5, an embodiment of the present invention further provides a pipeline processing apparatus 500 of a reconciliation system, including:
the pipeline dividing module 510 classifies the pipelines recorded on the ground at the starting stage of the diverter switch based on the pipeline bill identifier when the diverter switch configured by groups is started, and obtains a first class of pipelines grouped according to a grouping configuration mode before switching and a second class of pipelines grouped according to a grouping configuration mode after switching.
The first grouping module 520 groups the first class of pipelines according to a grouping configuration mode before switching. And the number of the first and second groups,
and the second grouping module 530 is used for grouping the second class of pipelines according to the switched grouping configuration mode.
Based on the pipeline processing apparatus 500 shown in fig. 5, in the embodiment of the present application, in the packet configuration switching stage, the pipeline recorded as the switching stage floor based on the pipeline bill identifier is classified, the pipeline grouped according to the pre-switching packet configuration manner and the pipeline grouped according to the post-switching packet configuration manner are determined, and the pipelines are grouped according to the packet configuration manner corresponding to the pipelines, so that the grouping consistency of the pipeline of the current party and the pipeline of the other party under the same bill is ensured, and the reconciliation system has a basis for dynamically adjusting the transaction group on the basis of normal reconciliation, and can be used for solving a series of problems caused by unreasonable configuration of the transaction group.
Optionally, the first type of running water includes:
the on-stage floor recording of the change-over switch is carried out, and the recording time is later than the local running water of the opposite running water under the same bill;
the on-stage of the change-over switch is recorded on the ground, and the recording time is earlier than the counter running water of the bill under the same bill.
Optionally, the second type of flowing water comprises:
the switch is started, the floor is recorded, and the recording time is earlier than the local running water of the opposite running water under the same bill;
the on-stage of the change-over switch is recorded on the ground, and the recording time is later than the counter running water of the bill under the same bill.
Optionally, the pipeline dividing module specifically executes the following steps:
and inserting the running bill identification of the running water recorded in the landing stage of the starting stage of the change-over switch into a given field of a middle table, wherein the running bill identification in the given field has unique constraint.
And if the running water recorded by the floor of the starting stage of the change-over switch is the running water of the local side and the corresponding running water bill identification cannot be inserted into the established field, determining the running water recorded by the floor of the starting stage of the change-over switch as the first type of running water.
And if the running water recorded when the diverter switch falls to the ground in the starting stage is the running water of the opposite side and the corresponding running water bill identification is successfully inserted into the established field, determining the running water recorded when the diverter switch falls to the ground in the starting stage as the first type of running water.
And if the running water recorded in the floor falling of the starting stage of the change-over switch is the running water of the current party and the corresponding running water bill identification is successfully inserted into the set field, determining the running water recorded in the floor falling of the starting stage of the change-over switch as the second class running water.
And if the running water recorded by the floor of the starting stage of the change-over switch is the running water of the opposite side and the corresponding running water bill identification cannot be inserted into the established field, determining the running water recorded by the floor of the starting stage of the change-over switch as the second type of running water.
Optionally, the running water dividing module of the embodiment of the present application may further determine this running water recorded by landing before the switch is turned on as the first-class running water.
Optionally, the apparatus in the embodiment of the present application further includes:
and the switching detection module periodically judges whether the local running water recorded before the switch is switched on exists or not when the switch in the grouping configuration is switched on. And when judging that the flow does not exist, closing the selector switch, and uniformly grouping the flow according to a switched grouping configuration mode after the selector switch is closed.
Optionally, the reconciliation system is provided with at least one transaction group, the transaction group is used for performing reconciliation operation on the party flow and the other party flow of the same bill under the specified grouping value, and the grouping configuration mode is a mode of configuring the grouping value for the flow.
On the basis of the above, the transaction group comprises at least one basic transaction group and no more than a buffered transaction group of the at least one basic transaction group; wherein the buffered transaction groups are saturated in the capacity of all the underlying transaction groups for performing reconciliation operations on the party and counter party pipelines of the same bill at the specified packet value.
And the grouping configuration mode is determined and obtained based on the number of the basic transaction groups of the account checking system. The diverter switch is actuated upon a change in the number of basic transaction sets of the reconciliation system.
It is obvious that the pipeline processing apparatus according to the embodiment of the present application can be an execution main body of the pipeline processing method shown in fig. 1, and can realize the functions of the pipeline processing method realized in fig. 1 to 4. Since the principle is the same, the detailed description is omitted here.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 6, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other by an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads a corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the question-answer pair data mining device on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
when a diverter switch of grouping configuration is started, classifying the running water recorded by landing at the starting stage of the diverter switch based on a running water bill identifier to obtain a first class running water grouped according to a grouping configuration mode before switching and a second class running water grouped according to a grouping configuration mode after switching;
grouping the first class of flow according to a grouping configuration mode before switching; and
and grouping the second class of pipelines according to a switched grouping configuration mode.
According to the scheme of the embodiment of the application, in the grouping configuration switching stage, the running water which is recorded as the floor of the switching stage based on the running water bill identification is classified, the running water which is grouped according to the grouping configuration mode before switching and the running water which is grouped according to the grouping configuration mode after switching are determined, and the running water is grouped according to the grouping configuration mode corresponding to the running water, so that the grouping consistency of the running water of the party and the running water of the other party under the same bill is ensured, the reconciliation system has the basis of dynamically adjusting the transaction group on the basis of normal reconciliation, and can be used for solving a series of problems caused by unreasonable configuration of the transaction group.
The pipeline processing method disclosed in the embodiment of fig. 1 of the present application may be applied to a processor, or may be implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It should be understood that the electronic device according to the embodiment of the present application may implement the functions of the pipeline processing apparatus in the embodiments shown in fig. 1 to fig. 5, and details are not described herein.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Furthermore, an embodiment of the present application also provides a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by a portable electronic device including a plurality of application programs, can cause the portable electronic device to perform the method of the embodiment shown in fig. 1, and specifically to perform the following method:
when a group configuration change-over switch is started, classifying the flow recorded by landing at the starting stage of the change-over switch based on a flow bill identifier to obtain a first type flow grouped according to a group configuration mode before switching and a second type flow grouped according to a group configuration mode after switching;
grouping the first class of flow according to a grouping configuration mode before switching; and
and grouping the second class of pipelines according to a switched grouping configuration mode.
It should be understood that the above instructions, when executed by a portable electronic device including a plurality of application programs, can enable the pipeline processing apparatus described above to implement the functions of the embodiments shown in fig. 1-4, which are not described in detail herein.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description 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 so forth) having computer-usable program code embodied therein.
The foregoing description of specific embodiments has been presented for purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.