CN110362587A - A kind of method for interchanging data - Google Patents
A kind of method for interchanging data Download PDFInfo
- Publication number
- CN110362587A CN110362587A CN201910631487.6A CN201910631487A CN110362587A CN 110362587 A CN110362587 A CN 110362587A CN 201910631487 A CN201910631487 A CN 201910631487A CN 110362587 A CN110362587 A CN 110362587A
- Authority
- CN
- China
- Prior art keywords
- data
- task
- status information
- state
- send
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Abstract
The present invention provides a kind of method for interchanging data, comprising: task creation step, data sender create data and send task, set first state for status information;Task initialization step, data sender's collection status information are that the data of first state send task, check that corresponding data send the timeliness of task, and the status information for checking the data passed through transmission task is revised as the second state;Data encapsulation step, data sender's collection status information are that the data of the second state send task, data to be sent associated with it are saved to the second storage unit, and status information is revised as the third state;Data sending step, data sender's collection status information are that the data of the third state send task, and corresponding data to be sent are sent to data receiver, status information is revised as the 4th state after receiving reception and successfully feeding back.The beneficial effects of the present invention are: the Loss Rate and leakage biography rate of data are reduced, to improve the efficiency of data exchange.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of method for interchanging data.
Background technique
With the development of internet, payment company needs integrated optimization internal resource and operation flow, to improve operation effect
Rate, therefore many payment companies and third party's public system carry out data exchange at present;For example, isochronous transaction data are to people's row
The anti-swindle platform of telecommunications, synchronous risk data to the blacklist shared library of payment clearing association etc.;
However payment company in the prior art when doing data exchange with third party's public system by having the following problems:
(1) there is data leakage biography and loss of data in the process of data exchange;
(2) process of data exchange can not receive feedback in time, can not hand over data so as to cause the process of data exchange
The step of changing unsuccessfully optimizes processing.
Summary of the invention
For the above-mentioned problems in the prior art, a kind of Loss Rate for being intended to reduce data and leakage biography rate are now provided,
And improve the method for interchanging data of the efficiency of data exchange.
Specific technical solution is as follows:
A kind of method for interchanging data, wherein be applied to data exchange system in, method for interchanging data the following steps are included:
Task creation step, data sender create data and send task, and data send task and at least provide one to protect
The first storage unit and one of a status information is deposited for saving the second storage unit of data to be sent, data sender will
Status information is set as a first state;
Task initialization step, data sender's collection status information are that the data of first state send task, inspection pair
The data answered send the timeliness of task, and will check that the data passed through send the corresponding status information of task and are revised as one second shape
State;
Data encapsulation step, data sender's collection status information are that the data of the second state send task, will be associated with
The data to be sent that data send task are saved to corresponding second storage unit, and status information is revised as a third shape
State;
Data sending step, data sender's collection status information are that the data of the third state send task, and data are sent out
The corresponding data to be sent of task are sent to be sent to a data receiver, and after receiving data receiver and receiving successfully feedback
Corresponding status information is revised as one the 4th state.
Preferably, method for interchanging data, wherein data sender provides a monitoring module to open according to status information
Data that are dynamic and collecting corresponding states send task.
Preferably, method for interchanging data, wherein the current all data of monitoring module inquiry send the state of task
Information, the data transmission task of corresponding states, which is added in corresponding step, to be executed.
Preferably, method for interchanging data, wherein after the data transmission task that data sender collects corresponding states, in
Handling for task is sent to data in corresponding step, when corresponding processing result is failure result, is judged corresponding
Whether processing can restore;
If so, pause, which executes data, sends task;
If it is not, the status information that corresponding data send task is revised as one the 5th state.
Preferably, method for interchanging data, wherein after corresponding status information is revised as the 5th state, in status information
The reason of middle record forms failure result.
Preferably, method for interchanging data, wherein data sender provides a recovery module, to collect in each step
The data that pause executes send task, and the data that pause executes are sent task and restore to execute in corresponding step.
Preferably, method for interchanging data, wherein recovery module collects each step according to preset period first time
In pause execute data send task.
Preferably, method for interchanging data, wherein judge whether the timeliness of data transmission task surpasses in task initialization step
A preset time out;
If so, judging that data send task and do not pass through inspection;
If it is not, judging that data send task and pass through inspection.
Preferably, method for interchanging data, wherein data exchange system includes multiple payment platforms, and each payment is flat
Platform is connect with a data interchange platform;
Data sender is payment platform, and data receiver is data interchange platform;
It includes: to report payment data that payment platform, which sends task according to the data of a preset second time period creation,
To data interchange platform.
Preferably, method for interchanging data, wherein data exchange system includes multiple payment platforms, and each payment is flat
Platform is connect with a data interchange platform;
Data sender is data interchange platform, and data receiver is payment platform;
It includes: that data exchange request is sent to corresponding payment to put down that the data of data interchange platform creation, which send task,
Platform.
Above-mentioned technical proposal have the following advantages that or the utility model has the advantages that by data sender create data send task, and
It is provided with status information in data transmission task, it is corresponding then to send task execution according to the data of different status informations
Step, and according to the status information of the above-mentioned steps task of more correction data transmission in time, to reduce the Loss Rate and leakage biography rate of data,
To improve the efficiency of data exchange, and then save the time cost and data switching cost of data exchange.
Detailed description of the invention
With reference to appended attached drawing, more fully to describe the embodiment of the present invention.However, appended attached drawing be merely to illustrate and
It illustrates, and is not meant to limit the scope of the invention.
Fig. 1 is the flow chart one of method for interchanging data embodiment of the present invention;
Fig. 2 is the flowchart 2 of method for interchanging data embodiment of the present invention;
Fig. 3 is that the state of method for interchanging data embodiment of the present invention is more changed plan.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
The present invention includes a kind of method for interchanging data, wherein it is applied in data exchange system, as shown in Figure 1,3, data
Exchange method the following steps are included:
Task creation step 1, data sender create data and send task 61, and data send task 61 and at least provide a use
To save the first storage unit and one of a status information for saving the second storage unit of data to be sent, data transmission
Status information is set a first state 51 by side;
Task initialization step 2, data sender's collection status information are that the data of first state 51 send task 61, inspection
The timeliness that corresponding data send task 61 is looked into, and will check that the data passed through send the corresponding status information of task 61 and are revised as
One second state 52;
Data encapsulation step 3, data sender's collection status information are that the data of the second state 52 send task 61, will be closed
It is coupled to data and sends the data to be sent of task 61 and save to corresponding second storage unit, and status information is revised as one the
Three condition 53;
Data sending step 4, data sender's collection status information are that the data of the third state 53 send task 61, will be counted
It is sent to a data receiver according to the corresponding data to be sent of transmission task 61, and is received successfully receiving data receiver
Corresponding status information is revised as one the 4th state 54 after feedback.
In the above-described embodiments, data are created by data sender and sends task 61, and sent in task 61 in data
It is provided with status information, then task 61 is sent according to the data of different status informations and executes corresponding step, and according to upper
The status information of the step task 61 of more correction data transmission in time is stated, to realize data between data sender and data receiver
The phenomenon that carrying out data exchange, and appearance loss of data and data leakage of the data during data exchange avoided to pass, from
And the efficiency of data exchange is improved, and then save the time cost and data switching cost of data exchange.
In the above-described embodiments, by receiving data receiver's reception successfully feedback in data sending step 4
Corresponding status information is just revised as the 4th state 54 afterwards, may be implemented to allow data sender right in time according to feedback
Corresponding data are handled, and then improve the efficiency of data exchange.
Further, as preferred embodiment, first state 51 can for can init state, the second state 52 can
Think can encapsulation state, the third state 53 can be transmittable state, and the 4th state 54 can be Mission Success state.
Wherein, when status information is four state 54, terminate corresponding data and send task 61.
Further, in the above-described embodiments, data sender provides a monitoring module to open according to status information
Data that are dynamic and collecting corresponding states send task 61.
Further, in the above-described embodiments, the current all data of monitoring module inquiry send the shape of task 61
State information, the data transmission task 61 of corresponding states, which is added in corresponding step, to be executed.
For example, when the status information that the current all data of monitoring module inquiry send task 61 is first state
51, then the corresponding data of first state 51 transmission task 61 is added in task initialization step 2 and is executed.
Further, as preferred embodiment, in task foundation step 1, data sender can be manually
It creates data and sends task 61, data can also be automatically created and send task 61.
It further,, can be by the number of corresponding states after status information is modified as preferred embodiment
It is packaged according to transmission task 61, the data of corresponding states can be sent task 61 by asynchronous thread and added by monitoring module
Enter into corresponding step and executes.
For example, first state 51 is set by status information after the completion of creating data and sending task 61, then by first
The corresponding data of state 51 send task 61 and are packaged, and monitoring module can be right by first state 51 by asynchronous thread
The data transmission task 61 answered, which is added in task initialization step 2, to be executed.
Further, in the above-described embodiments, after the data that data sender collects corresponding states send task 61, in
Handling for task 61 is sent to data in corresponding step, when corresponding processing result is failure result, judges to correspond to
Processing whether can restore;
If so, pause, which executes data, sends task 61;
If it is not, the status information that corresponding expendable data send task 63 is revised as one the 5th state 55.
Wherein, when status information is five state 55, terminate corresponding data and send task 61.
Further, it as preferred embodiment, is locked by the way that the data of corresponding states are sent task 61 to suspend
It executes above-mentioned data and sends task 61.
Further, as preferred embodiment, the 5th state 55 can be mission failure state.
Further, in the above-described embodiments, after corresponding status information being revised as the 5th state 55, in status information
The reason of middle record forms failure result, so that operator be facilitated to handle in time according to the reason of failure result.
Further, in the above-described embodiments, each to collect as shown in Fig. 2, data sender provides a recovery module
The data that suspending in step executes send task 62, and the data transmission task 62 that pause is executed is extensive in corresponding step
It is multiple to execute, to reduce data loss rate and data leakage biography rate of the data during data exchange, and then improves data and hand over
The success rate changed.
For example, after the data that the pause that recovery module is collected into first state 51 executes send task 62, by above-mentioned the
The data that the pause of one state 51 executes send task 62 and restore to execute in task initialization step 2, to reduce first state
51 data send the failure rate of task 61.
For example, after the data that the pause that recovery module is collected into the second state 52 executes send task 62, by above-mentioned the
The data that the pause of two-state 52 executes send task 62 and restore to execute in data encapsulation step 3, with second state 52 of reduction
Data send task 61 failure rate.
For example, after the data that the pause that recovery module is collected into the third state 53 executes send task 62, by above-mentioned the
The data that the pause of three condition 53 executes send task 62 and restore to execute in data sending step 4, to reduce the third state 53
Data send task 61 failure rate.
Further, in the above-described embodiments, recovery module collects each step according to preset period first time
In pause execute data send task 62.
Further, in the above-described embodiments, judge in task initialization step 2 data send task 61 timeliness whether
Beyond a preset time;
If so, judging that data send task 61 and do not pass through inspection;
If it is not, judging that data send task 61 and pass through inspection.
Further, as preferred embodiment, data exchange system includes multiple payment platforms, each payment platform
It is connect with data interchange platform;
Data sender is payment platform, and data receiver is data interchange platform;
Payment platform includes: according to the data transmission task 61 of a preset second time period creation will be in payment data
It reports to data interchange platform.
The method for interchanging data of payment platform to data interchange platform may comprise steps of:
Task creation step 1, payment platform create data and send task 61, and data send task 61 and at least provide to protect
Deposit the first storage unit of a status information, and the second storage unit for saving data to be sent, payment platform is by state
Information is set as can init state;
Task initialization step 2, payment platform collection status information be can init state data send task 61, inspection
The timeliness that corresponding data send task 61 is looked into, and will check that the data passed through send the corresponding status information of task 61 and are revised as
It can encapsulation state;
Data encapsulation step 3, payment platform collection status information be can encapsulation state data send task 61, will be associated with
It saves in the data to be sent that data send task 61 to corresponding second storage unit, and status information is revised as can be transmitted
State;
Data sending step 4, payment platform collection status information are that the data of transmittable state send task 61, and payment is flat
The data format that platform is arranged according to data interchange platform is corresponding pending by data transmission task 61 by preset transmission agreement
It send data to be sent to data interchange platform, and believes corresponding state after receiving data interchange platform and receiving successfully feedback
Breath is revised as Mission Success state.
Wherein, after data to be sent are sent to data interchange platform by payment platform, data interchange platform receive it is above-mentioned to
Send data, and data to be sent verified and handled, when verifying and after handle successfully, data interchange platform by reception at
The feedback of function is sent to corresponding payment platform.
Further, in the above-described embodiments, data exchange system includes multiple payment platforms, each payment platform and number
It is connected according to switching plane;
Data sender is data interchange platform, and data receiver is payment platform;
It includes: that data exchange request is sent to corresponding payment to put down that the data of data interchange platform creation, which send task 61,
Platform.
Wherein, above-mentioned data exchange request can update request for data inquiry request and data.
The method for interchanging data of payment platform to data interchange platform may comprise steps of:
Task creation step 1, data interchange platform create data and send task 61, and data send task 61 and at least provide use
To save the first storage unit of a status information, and the second storage unit for saving data to be sent, data exchange is flat
Platform sets status information to can init state;
Task initialization step 2, data interchange platform collection status information be can init state data send task
61, check that corresponding data send the timeliness of task 61, and will check that the data passed through send the corresponding status information of task 61
Being revised as can encapsulation state;
Data encapsulation step 3, data interchange platform collection status information be can encapsulation state data send task 61, will
The data to be sent for being associated with data transmission task 61 are saved to corresponding second storage unit, and status information is revised as can
Transmission state;
Data sending step 4, data interchange platform collection status information are that the data of transmittable state send task 61, number
Data are sent into the corresponding data to be sent of task 61 according to switching plane and are sent to corresponding payment platform, and are receiving correspondence
Payment platform receive successfully feedback after corresponding status information is revised as Mission Success state.
Wherein, after data to be sent are sent to corresponding payment platform by data interchange platform, after corresponding payment platform
Above-mentioned data to be sent are received, and judge the request type to data to be sent, corresponding behaviour is then executed according to request type
Make, will then receive successfully feedback and be sent to data interchange platform.
For example, data interchange platform judges the request type to data to be sent as data inquiry request, data exchange is flat
The data feedback that platform obtains inquiry will then receive successfully feedback and be sent to data interchange platform to data interchange platform.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.
Claims (10)
1. a kind of method for interchanging data, which is characterized in that be applied to data exchange system in, the method for interchanging data include with
Lower step:
Task creation step, a data sender create a data and send task, and the data send task and at least provide a use
To save the first storage unit and one of a status information for saving the second storage unit of data to be sent, the data
The status information is set a first state by sender;
Task initialization step, the data sender collect the data that the status information is the first state and send
Task checks that the corresponding data send the timeliness of task, and will check that the data passed through send the corresponding institute of task
It states status information and is revised as one second state;
Data encapsulation step, the data sender, which collects the data that the status information is second state and sends, to be appointed
Business saves the data to be sent for being associated with the data transmission task to corresponding second storage unit, and will
The status information is revised as a third state;
Data sending step, the data sender, which collects the data that the status information is the third state and sends, to be appointed
The data are sent the corresponding data to be sent of task and are sent to a data receiver, and receiving the number by business
It is received according to recipient and the corresponding status information is revised as one the 4th state after successfully feeding back.
2. method for interchanging data as described in claim 1, which is characterized in that the data sender provides a condition monitoring mould
Block sends task with the data for starting and collecting corresponding states according to the state information.
3. method for interchanging data as claimed in claim 2, which is characterized in that the monitoring module inquiry is current all
The data send the status information of task, and the data transmission task of corresponding states, which is added in the corresponding step, to be held
Row.
4. method for interchanging data as described in claim 1, which is characterized in that collect corresponding states in the data sender
After the data transmission task, handling for task is sent to the data in corresponding step, is tied in corresponding processing
When fruit is failure result, judge whether the corresponding processing can restore;
If so, pause, which executes the data, sends task;
If it is not, the status information that the corresponding data send task is revised as one the 5th state.
5. method for interchanging data as claimed in claim 4, which is characterized in that be revised as the corresponding status information described
After 5th state, the reason of forming the failure result is recorded in Yu Suoshu status information.
6. method for interchanging data as claimed in claim 4, which is characterized in that the data sender provides a recovery module,
Task is sent with the data that the pause collected in each step executes, and the data that pause is executed send and appoint
Business restores to execute in corresponding step.
7. method for interchanging data as claimed in claim 6, which is characterized in that when the recovery module is according to one preset first
Between the period collect in each step pause execute the data send task.
8. method for interchanging data as described in claim 1, which is characterized in that judge the number in the task initialization step
Whether the timeliness according to the task of transmission exceeds a preset time;
If so, judging that the data send task and do not pass through inspection;
If it is not, judging that the data send task and pass through inspection.
9. method for interchanging data as described in claim 1, which is characterized in that the data exchange system includes that data exchange is flat
Platform and multiple interfaces, each interface connect a payment platform;
The data sender is the payment platform, and the data receiver is the data interchange platform;
It includes: by payment data that the payment platform, which sends task according to the data of a preset second time period creation,
Report to the data interchange platform.
10. method for interchanging data as described in claim 1, which is characterized in that the data exchange system includes data exchange
Platform and multiple interfaces, each interface connect a payment platform;
The data sender is the data interchange platform, and the data receiver is the payment platform;
The data of data interchange platform creation send task include: data exchange request is sent to it is corresponding described
Payment platform.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910631487.6A CN110362587A (en) | 2019-07-12 | 2019-07-12 | A kind of method for interchanging data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910631487.6A CN110362587A (en) | 2019-07-12 | 2019-07-12 | A kind of method for interchanging data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362587A true CN110362587A (en) | 2019-10-22 |
Family
ID=68219390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910631487.6A Pending CN110362587A (en) | 2019-07-12 | 2019-07-12 | A kind of method for interchanging data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362587A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647365A (en) * | 2011-02-16 | 2012-08-22 | 北京大学 | Method and device for processing message and message status and data exchange server |
CN105512244A (en) * | 2015-11-30 | 2016-04-20 | 北京京东尚科信息技术有限公司 | Database transaction processing method and device based on message queue |
CN105610730A (en) * | 2014-11-19 | 2016-05-25 | 中兴通讯股份有限公司 | Method and system for message interaction between CPU and network equipment |
CN107123031A (en) * | 2017-05-02 | 2017-09-01 | 深圳乐信软件技术有限公司 | A kind of order processing method and device |
CN107516201A (en) * | 2017-08-31 | 2017-12-26 | 江西博瑞彤芸科技有限公司 | A kind of order method of payment |
CN107730366A (en) * | 2017-10-30 | 2018-02-23 | 江西博瑞彤芸科技有限公司 | A kind of information processing method of pay invoice management |
CN108776923A (en) * | 2018-06-05 | 2018-11-09 | 深圳壹账通智能科技有限公司 | Order method of payment, system, computer equipment and storage medium |
-
2019
- 2019-07-12 CN CN201910631487.6A patent/CN110362587A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647365A (en) * | 2011-02-16 | 2012-08-22 | 北京大学 | Method and device for processing message and message status and data exchange server |
CN105610730A (en) * | 2014-11-19 | 2016-05-25 | 中兴通讯股份有限公司 | Method and system for message interaction between CPU and network equipment |
CN105512244A (en) * | 2015-11-30 | 2016-04-20 | 北京京东尚科信息技术有限公司 | Database transaction processing method and device based on message queue |
CN107123031A (en) * | 2017-05-02 | 2017-09-01 | 深圳乐信软件技术有限公司 | A kind of order processing method and device |
CN107516201A (en) * | 2017-08-31 | 2017-12-26 | 江西博瑞彤芸科技有限公司 | A kind of order method of payment |
CN107730366A (en) * | 2017-10-30 | 2018-02-23 | 江西博瑞彤芸科技有限公司 | A kind of information processing method of pay invoice management |
CN108776923A (en) * | 2018-06-05 | 2018-11-09 | 深圳壹账通智能科技有限公司 | Order method of payment, system, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103093342A (en) | Online transaction processing platform and transaction processing method thereof | |
CN108805704A (en) | Block chain service implementation method, audiomonitor, storage medium and system | |
CN102761454A (en) | Method and system for monitoring internet of things | |
CN101102360B (en) | A method for automatic form return | |
CN107451268A (en) | A kind of method that suspension towards real-time data base resumes | |
CN101420714A (en) | Method for scheduling indicator for collecting key performance from communication network | |
CN102892089A (en) | Message pushing method, device and system | |
CN103716356B (en) | Storing process operating method, device and system based on web | |
CN107222530A (en) | Service asynchronous exchange method, equipment, system and computer-readable recording medium | |
CN112925781B (en) | Data cleaning unified method, device, equipment and medium | |
CN109120713A (en) | Message sends the processing method and system, device and storage medium of failure | |
CN111563124B (en) | Operation processing method, device and system based on block chain | |
CN107612984B (en) | Big data platform based on internet | |
CN100446510C (en) | System and method for implementing business integrating between interprises | |
CN110362587A (en) | A kind of method for interchanging data | |
CN103684837B (en) | Backup processing method, system and the back-up processing server of communication information | |
CN101715252A (en) | Cluster short message center and method for shunting disaster recovery therefor | |
CN103731342A (en) | Instant message based workflow management system and management method | |
CA2428240A1 (en) | System and method for interfacing a data processing system to a business-to-business integration system | |
CN114422467B (en) | Customer service message management system and method | |
CN105763538B (en) | A kind of banking network method for interchanging data and its system | |
CN109040201A (en) | A kind of document transmission method, system and file server | |
CN107330064A (en) | A kind of method and system that small documents are created based on CIFS agreements | |
CN107566338A (en) | A kind of safety insert system and equipment based on local CAD cloud storages | |
CN201371835Y (en) | Railway transportation centralized alarm management system |
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 |