Summary of the invention
For solving above-mentioned technical problem, the embodiment of the present application provides the two-way process of a kind of retarded type data
Method and the device of correspondence thereof, to make full use of the time difference raising resource utilization between retarded type data.
The bidirectional processing method of the retarded type data that the application provides includes:
Mark off at least two time period on a timeline;
First back end produces the first data, in phase in the previous time period of two adjacent time periods
The second data are produced in the latter time period of two adjacent time periods;
After producing the second data in the time period in the rear, the first back end is to the second back end
Send the notification message comprising the second data;
After second back end receives described notification message, return and the first data to the first back end
There are the 3rd data of corresponding relation.
Preferably, the value situation of change relative to the value of the first data of the second data is analyzed, according to analysis
Result adjusts the corresponding relation between the value of the first data and the value of the 3rd data.
It is further preferred that the value of described analysis the second data is relative to the situation of change of the value of the first data,
Specifically include according to the corresponding relation that analysis result adjusts between the value of the first data and the value of the 3rd data:
The relatively magnitude relationship between value and the value of the first data of the second data, when the value of the second data is little
When the value of the first data, then the absolute value of the difference between value and the value of the first data of the 3rd data is made to increase
Greatly;When the value of the second data is more than the value of the first data, then make value and first data of the 3rd data
The absolute value of the difference between value reduces.
Preferably, described first back end includes ticket sale system and ticket bill settlement system, described second number
Including BSP system and factoring business specified account system according to node, described two adjacent time periods are respectively
For T1, T2, the value of described first data is sale of ticket amount N1 of ticket sale system record in the T1 time period,
The value of described second data is sale of ticket amount N2 of ticket sale system record in the T2 time period, the described 3rd
The value of data is the admission fee money of the admission fee amount of money volume corresponding less than N1, and described BSP system receives described
After the notification message comprising N2 that ticket sale system sends, trigger factoring business specified account system to described ticket
Money settlement system returns the described admission fee money less than admission fee amount of money volume corresponding for N1.
Preferably, at least two time period is marked off on a timeline according to identical time span.
The embodiment of the present application additionally provides the bidirectional processing device of a kind of retarded type data.This device includes:
Time period division unit, data generating unit, message informing unit and data return unit, wherein:
Described time period division unit, for marking off at least two time period on a timeline;
Described data generating unit, for making the first back end when two adjacent time periods previous
Between produce the first data in section, in the latter time period of two adjacent time periods, produce the second data;
Described message informing unit, after producing the second data, makes the within time period in the rear
One back end sends the notification message comprising the second data to the second back end;
Described data return unit, for after the second back end receives described notification message, make the
Two back end have the 3rd data of corresponding relation to the first back end return and the first data.
Preferably, described device also includes situation of change analytic unit and relation adjustment unit, wherein:
Described situation of change analytic unit, is used for the value analyzing the second data value relative to the first data
Situation of change;
Described relation adjustment unit, for adjusting value and the 3rd data of the first data according to analysis result
Corresponding relation between value.
Preferably, described situation of change analytic unit includes that size compares subelement, is used for comparing the second number
According to value and the value of the first data between magnitude relationship;
Described relation adjustment unit is specifically for when the value of the second data is less than the first data value, then making the
The absolute value of the difference between value and the value of the first data of three data increases;When the value of the second data is more than the
During the value of one data, then the absolute value of the difference between value and the value of the first data of the 3rd data is made to reduce.
Preferably, described time period division unit is specifically for drawing on a timeline according to set time length
Separate at least two time period.
Time shaft is divided into multiple time period by the embodiment of the present application, and the first back end is a time period
Interior generation the first data, the time adjacent segments in this time period notifies the second data section after producing the second data
Point, the second back end has the 3rd data of corresponding relation to the first back end return and the first data.
Compared with prior art, the second data are uploaded at Internet resources within the almost identical time with the 3rd data
Defeated so that the wasting of resources that the hysteresis quality between the first data and the 3rd data causes is made up, thus
Improve resource utilization on the whole.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the application, below in conjunction with
Accompanying drawing in the embodiment of the present application, clearly and completely retouches the technical scheme in the embodiment of the present application
State, it is clear that described embodiment is only some embodiments of the present application rather than whole enforcement
Example.Based on the embodiment in the application, those of ordinary skill in the art are not before making creative work
Put the every other embodiment obtained, all should belong to the scope of the application protection.
See Fig. 1, the figure shows the stream of the embodiment of the bidirectional processing method of the retarded type data of the application
Journey.This flow process includes:
Step S101: mark off at least two time period on a timeline;
For utilizing bandwidth resources as much as possible, have between two data of hysteresis quality and should insert as far as possible
New transmission data, but the data of this new data inserted and original transmission should have relatedness so that
The idle of bandwidth resources is reduced on the whole in completing certain business procedure.To this end, the present embodiment is by the time
On axle, the time is divided into the different time periods, such as, if with " my god " as unit, can arrive the 1st
Within 15 days, it is divided into a time period, within the 16 to 20th day, divides the next time period;If with working hour
Interior " hour " is unit, then can be divided into a time time (08:00 to 12:00) in the morning
Section, the time (13:00 to 17:00) in afternoon is divided into a time period.Here time period and time
The length of section can be identical, it is also possible to different, and the latter of identical situation such as precedent is 4 hours,
The former of different situations such as precedent, a time period is 15 days, and a time period is 4 days.Similarly,
Time itself in two adjacent time periods can be continuous, it is also possible to does not contacts, and continuous print situation is the most front
The former of example, first day (the of the last day (the 15th day) of first time period and second time period
16 days) connect sequence, the latter of discontinuous situation such as precedent, last hour of morning time section
End moment (12:00) start time (13:00) midfeather with the first hour one time in the afternoon
Individual hour.It is to say, the present embodiment is to the length of different time sections and time period and time time period
Whether have interval wait and be not construed as limiting, in actual use, can according to concrete applicable cases arrange or
Select.It can further be stated that: in the present embodiment, as long as dividing time period number out is two
Above, present invention purpose can be realized, but typically, the time period number of division is the most,
The whole business procession persistent period is the longest, and the technique effect of the application will embody to become apparent from, after
Continue and will further illustrate this content in conjunction with accompanying drawing.
Step S102: the first back end produces first in the previous time period of two adjacent time periods
Data, produce the second data in the latter time period of two adjacent time periods;
After marking off multiple time period on a timeline, the time period of two successive is the adjacent time
Section (but these two time periods are with regard to the time itself, can be continuous, it is also possible to discontinuous), such as, as
Fruit marks off two time periods T1, T2, then this T1, T2 are the adjacent time period, and T1 is the two phase
The previous time period of adjacent time period, T2 is the later time period;If mark off four time period T1,
T2, T3, T4, then (T1, T2), (T2, T3), (T3, T4) are respectively time adjacent segments, often
Previous for the previous time period in individual time adjacent segments group, later is the later time period.
First back end produces the first data within the previous time period of adjacent two time periods, and this is years old
One data can be the only one data in this time period, it is also possible to is each less in this time period
Collecting of data in unit of time, such as, was a time interval with 15 days, in these 15 days
One back end can have and only produce data, and these data are first data of this time period,
Can also be every day of 15 days all to create data, using the summation of 15 day data as the first data.
Same reason, produces the in first back end later time period within two adjacent time periods
Two data.In the prior art, after producing the first data, acquisition is i.e. needed to have mutually with the first data
One response data of corresponding relation, but, delay based on business, this response data needs to wait one
Individual considerable time just can obtain, so that Internet resources leave unused.For example: certain trade company is at one
Sell 1,000,000 commodity in period, but the payment for goods of these 1,000,000 commodity has been likely to be due to billing and accounting system prolongs
Late, the reason such as ticket examination & verification can be only achieved the bank account of this trade company after needing 10 days, this just makes business
The dedicated data line set up between bank account and the billing and accounting system at family occurs in this pen data interaction
The phenomenon underused.The present embodiment is in order to solve this technical problem, when producing the first data, and
Do not notify Accounting system, but when producing the second data, then perform subsequent operation.
Step S103: after producing the second data in time period in the rear, the first back end is to the
Two back end send the notification message comprising the second data;
As it was previously stated, after the present embodiment produces the second data within the later period of time adjacent segments, by
First back end sends a notification message to the second back end, and this notification message can include the second data,
Can also be only a notice, the second back end obtain the second data by other means.Second
The purpose that data are arranged in notification message is for confirming that the second back end returns to the first back end
Physical relationship between the 3rd data and the first data returned.
Step S104: after the second back end receives described notification message, returns to the first back end
With the 3rd data that the first data have corresponding relation;
Second back end can return result to the first back end after receiving notification message, returns here
The result returned is the 3rd data with the first data with corresponding relation, and " corresponding relation " represents first
Between data relationship and the 3rd data, there is pass to contact, but be specially which kind of physical relationship and depend on whole stream
The type of service that journey processes.Such as, as a example by aforementioned trade company markets the goods call in a loan, if the first number
According to the quantity for trade company's merchandising, then the 3rd data here are the cost of commodity, and this cost is permissible
It is whole costs corresponding to the quantity of the first data, it is also possible to be to deduct a fixed number than the quantity of the first data
The cost that after amount, volume residual is corresponding.
Time shaft is divided into multiple time period by the present embodiment, and the first back end produces in a period of time
Raw first data, the time adjacent segments in this time period notifies the second back end after producing the second data,
Second back end has the 3rd data of corresponding relation to the first back end return and the first data.With
Prior art is compared, and the second data and the 3rd data are transmitted within the almost identical time on Internet resources,
The wasting of resources that hysteresis quality between first data and the 3rd data is caused is made up, thus overall
On improve resource utilization.In order to this technique effect is described, can be found in the transmission of the data described in Fig. 2 and show
It is intended to.Vertical line on the left side of figure represents that the first back end, the right represent the second back end, first
On the vertical line of back end, the circle of mark sends after representing period generation data respectively and comprises this data
Moment of notification message, show three time periods A, B, C in the drawings, produce within the A time period
The first data a1, within the B period, produce the second data a2, a2 data will be to the second data section after producing
There is notification message in point, the second back end returns threeth data corresponding with a1 after receiving notification message
a1’.A2 data produce after, the next time period C adjacent with the B period produce the second data a3 (note:
At this moment the B period is equivalent to the previous period in BC adjacent two periods, and the second data a2 are equivalent to
The first data produced in the previous period of this BC adjacent time interval), a3 produces backward second back end
Sending and comprise the notification message of a3, the second back end returns corresponding with a2 the after receiving notification message
Three data a2 '.The like, in figure 5 it can be seen that the first back end often produces a Data Concurrent and sees off
After, data will be obtained following closely, say, that for certain data section (in figure
Dotted line frame), the transmission network between the first back end and the second back end always delivers data,
Not since it is desired that obtain the corresponding data of the data that previous node produces and transmission network occurs
" idle " phenomenon, thus improve network resource utilization.More, whole when the time period of the present embodiment
When individual business procedure can go down with Infinite Cyclic, the utilization rate of this Internet resources will be maintained at one higher
Level.
Have been filed on the notification message sent to the second back end at the first back end in the above-described embodiments
In can comprise the second data, the purpose of these the second data is to confirm between the 3rd data and the first data
Concrete corresponding relation.In actual application, although may require that the second back end returns every time
The 3rd identical data, but, the first data, that the second data are often undulation is indefinite, with this ripple
Dynamic fluctuating adapts, the second back end return with the first data, there are three data of corresponding relation time,
Also being necessary to be adjusted it, the rule of concrete adjustment, mode depend on the analysis result of the second data.
It is to say, the second back end is receiving the notice comprising the second data that the first back end sends
After message, can not only using this notification message as one send the 3rd data " triggering ", and,
The 3rd number that will return can also be updated to the first back end according to the second data that this notification message comprises
According to.This analysis, the process that implements of adjustment can be diversified, and the application is preferably by dividing
Analyse the second data and be used as adjusting the foundation of the 3rd data relative to the size variation of the first data, it may be assumed that
After second back end obtains the second data, big by carrying out between value and the value of the first data of the second data
The comparison of little relation, compares and will appear from three kinds of results:
One is that the second data are more than the first data, and this explanation, in business procession, is in adjacent time
The data that the later time period in period produces are bigger than the previous time period, in this case, due to first
The data of back end have high trend, if for aforesaid payment for goods, this trend passes out first
The strength of back end strengthens, and therefore, it can correspondingly heighten threeth data corresponding with the first data,
That is: the absolute value making the difference between value and the value of the first data of the 3rd data reduces.
Two is that the second data are equal to the first data, and this explanation, in business procession, is in adjacent time
Two time periods in period are not changed in, at this moment, it may be considered that adjust the 3rd data, it is also possible to consider not
Adjust the 3rd data.
Three is that the second data are less than the first data, and this explanation, in business procession, is in adjacent time
The data that the later time period in period produces are less than the previous time period, in this case, due to second
The data of back end have reduction trend, and the strength passing out the first back end declines, and therefore, it can
Threeth data corresponding with the first data are correspondingly turned down, it may be assumed that make value and first data of the 3rd data
Value between difference absolute value increase.
In order to be more fully explained the technical scheme of the application.Below with this tool of factoring business of plane ticket
Body application scenarios illustrates.Seeing Fig. 3, in this application scenarios, described first back end includes selling
Bill system and ticket bill settlement system, described second back end includes BSP system and the special account of factoring business
Family system, described two adjacent time periods are respectively T1, T2, when the value of described first data is T1
Between sale of ticket amount N1 of ticket sale system record in section, the value of described second data is to sell in the T2 time period
Sale of ticket amount N2 of bill system record, the value of described 3rd data is the admission fee amount of money corresponding less than N1
The admission fee money of volume, described BSP system receives the notification message comprising N2 that described ticket sale system sends
After, trigger factoring business specified account system and return to described ticket bill settlement system described corresponding less than N1
The admission fee money of admission fee amount of money volume.
Foregoing describes the bidirectional processing method embodiment of the retarded type data of the application in detail, accordingly
Ground, present invention also provides the bidirectional processing device embodiment of a kind of retarded type data.See Fig. 4, this figure
Show the structured flowchart of the bidirectional processing device of the retarded type data of the application.This device includes: the time
Section division unit 401, data generating unit 402, message informing unit 403 and data return unit 404,
Wherein:
Time period division unit 401, for marking off at least two time period on a timeline;
Data generating unit 402, for making the first back end in previous time of two adjacent time periods
Produce the first data in section, in the latter time period of two adjacent time periods, produce the second data;
Message informing unit 403, after producing the second data, makes first within a time period in the rear
Back end sends the notification message comprising the second data to the second back end;
Data return unit 404, for after the second back end receives described notification message, make second
Back end has the 3rd data of corresponding relation to the first back end return and the first data.
The work process of said apparatus embodiment is: time period division unit 401 marks off on a timeline
After at least two time period, data generating unit 402 make the first back end in two adjacent times
Produce the first data in the previous time period of section, produce in the latter time period of two adjacent time periods
Second data, after message informing unit 403 produces the second data in the time period in the rear, first
Back end sends the notification message comprising the second data to the second back end, and finally, data return single
Unit 404, after the second back end receives described notification message, makes the second back end to the first data
Node return and the first data have the 3rd data of corresponding relation.
Time shaft is divided into multiple time period by this device embodiment, and the first back end is a time period
Interior generation the first data, the time adjacent segments in this time period notifies the second data section after producing the second data
Point, the second back end has the 3rd data of corresponding relation to the first back end return and the first data.
Compared with prior art, the second data of this device embodiment and the 3rd data are within the almost identical time
Internet resources transmit so that the wasting of resources that the hysteresis quality between the first data and the 3rd data causes
Made up, thus improve resource utilization on the whole.
In actual application, needing based on some special applications, said apparatus embodiment can also be entered
One step includes corresponding functional unit, to optimize the technique effect of this device embodiment.Such as, above-mentioned dress
Put and also include situation of change analytic unit 405 and relation adjustment unit 406, wherein: situation of change is analyzed single
Unit 405, for analyzing the value situation of change relative to the value of the first data of the second data;Relation adjusts single
Unit 406, for adjusting the corresponding pass between the value of the first data and the value of the 3rd data according to analysis result
System.Further, situation of change analytic unit 405 can also include that size compares subelement 4051, uses
In the magnitude relationship compared between the value of the second data and the value of the first data, in this case, relation is adjusted
Whole unit 406 is specifically for when the value of the second data is less than the first data value, then making the value of the 3rd data
And the absolute value of the difference between the value of the first data increases;When the value of the second data is more than the value of the first data
Time, then make the absolute value of the difference between value and the value of the first data of the 3rd data reduce.
Additionally, time period division unit can carry out different rule based on different business in the above-described embodiments
Division then, such as, if business is seriality periodic traffic, then can according to set time length time
Marking off at least two time period on countershaft, the set time, a length of business completed a basic function
Minimum period;If business business is discontinuous periodic business, although then the time according to the rules time period long
Degree divides the time period, but can have interval between two time periods, and this has been spaced apart this discontinuous industry
The duration of each elementary cell of business.
It should be understood that for the simplicity described, above-described embodiment of this specification and embodiment
What various deformation implementations stressed is all the difference with other embodiments or mode of texturing, respectively
Between individual situation, identical similar part sees mutually.Several especially for device embodiment change
For entering mode, owing to it is substantially similar to embodiment of the method, so describing fairly simple, it is correlated with it
Place sees the part of embodiment of the method and illustrates.The each unit of device embodiment described above is permissible
It is or may not be physically separate, both having may be located at a place, or can also be distributed to
Under multiple network environments.In actual application, part therein can be selected according to the actual needs
Or all unit realizes the purpose of the present embodiment scheme, and those of ordinary skill in the art are not paying wound
In the case of the property made work, i.e. it is appreciated that and implements.
The above is only the detailed description of the invention of the application, it is noted that general for the art
For logical technical staff, on the premise of without departing from the application principle, it is also possible to make some improvement and profit
Decorations, these improvements and modifications also should be regarded as the protection domain of the application.