CN109669791A - Exchange method, server and computer readable storage medium - Google Patents
Exchange method, server and computer readable storage medium Download PDFInfo
- Publication number
- CN109669791A CN109669791A CN201811575741.7A CN201811575741A CN109669791A CN 109669791 A CN109669791 A CN 109669791A CN 201811575741 A CN201811575741 A CN 201811575741A CN 109669791 A CN109669791 A CN 109669791A
- Authority
- CN
- China
- Prior art keywords
- task
- processing result
- exchange method
- buffer area
- message queue
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present embodiments relate to field of communication technology, a kind of exchange method, server and computer readable storage medium are disclosed.In the section Example of the application, exchange method includes: the obtaining the publication of upstream business system of the task;Processing task determines the processing result of task;The processing result of task is sent to the first buffer area;Wherein, the processing result of task is obtained by upstream business system.In the realization, upstream business system and downstream traffic system are interacted by the first buffer area, solve the problems, such as that the data between upstream business system and downstream traffic system are inconsistent.
Description
Technical field
The present embodiments relate to fields of communication technology, in particular to exchange method, server and computer-readable storage
Medium.
Background technique
The exchange method of existing operation system includes two steps: issuing task and processing task.With storage management system
For system and cloud storage system, illustrate the interactive process of existing operation system.Exchange method between existing operation system
In, storage management system is responsible for issuing video task, receives video task processing result, and cloud storage system is responsible for actual treatment view
Frequently, and video processing results are returned to.The method schematic diagram of task is issued as shown in Figure 1, including step 101, step 102 and step
103.Wherein, step 101: storage management system issues video processing duties to cloud storage system.Step 102: cloud storage system
Video processing duties are received, return to the progress recognizing number (Persistent Identification, PID) of the task to storage
Management system.Step 103: storage management system updates task status and PID, and updated task is stored in database.Place
The method schematic diagram of reason task process is as shown in Fig. 2, include step 201, step 202 and step 203.Wherein, step 201: cloud
Storage system handles video task, after the completion of video task processing, returns to video processing results, includes PID in processing result.
Step 202: storage management system inquires database video processing duties according to PID.Step 203: storage management system updates should
Task processing result, and updated data are stored in database.
However, it is found by the inventors that at least there are the following problems in the prior art: storage management system and cloud storage system exist
During issuing task and processing task, it is necessary to execute in strict accordance with sequence, i.e., after the task that issues is completed, just can be carried out
Otherwise processing task is likely to occur the inconsistent problem of two systems data.Such as, storage management system issues largely delete simultaneously
Except task, during issuing the step 1.3 of task, i.e., storage management system has been received by the PID that cloud storage system returns, but
It is when also not updating PID to handle the process of task to database and gone to step 2.2, since PID does not update data also
Library causes the processing result of the task to be lost and updates so storage management system inquires task corresponding less than the PID.At this point,
The task has handled completion in cloud storage system, is always the state in processing in storage management system.For example, in an example
In son, storage management system issues the deletion task of 100 videos simultaneously.Cloud storage system receives 100 deletion tasks, and returns
Return the corresponding PID of 100 tasks (PID of one of deletion task is D20181023050).Storage management system receives 100
A PID updates PID and task status.The PID of task is deleted into part in storage management system and task status is stored in data
Library, but PID is the deletion task of D20181023050 when not being put in storage also, and it is D20181023050's that cloud storage system, which completes PID,
Deletion task successfully deletes video, and returns to the processing result for the deletion task that PID is D20181023050.But due to this
Deletion task is not put in storage also, and storage management system can not find the deletion task that PID is D20181023050.Due to storage management system
System, which timely updates, updates the state for the deletion task that PID is D20181023050, and PID is that the deletion task of D20181023050 exists
Task status in cloud storage system is that processing is completed, and the task status in storage management system is in processing always.Thus
As it can be seen that the exchange method of existing operation system is easy to appear the inconsistent problem of the data between operation system.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of exchange method, processing server, management server and readable
Storage medium makes it possible to realize the asynchronous interactive of upstream business system and downstream traffic system, solves upstream business system
The inconsistent problem of data between downstream traffic system.
In order to solve the above technical problems, embodiments of the present invention provide a kind of exchange method, it is applied to downstream traffic
System, comprising the following steps: obtain the task of upstream business system publication;Processing task determines the processing result of task;It will appoint
The processing result of business is sent to the first buffer area;Wherein, the processing result of task is obtained by upstream business system.
Embodiments of the present invention additionally provide a kind of exchange method, are applied to upstream business system, comprising: obtain first
The processing result of task in buffer area;Wherein, the processing result of task is issued by downstream traffic system;According to the processing of task
As a result, the status information of more new task.
Embodiments of the present invention additionally provide a kind of server, comprising: module, determining module and sending module are obtained,
Module, determining module and sending module coupling are obtained, is applied to downstream traffic system for realizing what above embodiment referred to
Exchange method.
Embodiments of the present invention additionally provide a kind of server, comprising: obtain module and update module, obtain module and
Update module coupling, the exchange method applied to upstream business system referred to for realizing above embodiment.
Embodiments of the present invention additionally provide a kind of server, comprising: at least one processor;And at least one
The memory of a processor communication connection;And the communication component connecting with upstream business system communication, communication component are being handled
Data are sended and received under the control of device;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs quilt
At least one processor executes, so that at least one processor is able to carry out the exchange method of above embodiment.
Embodiments of the present invention additionally provide a kind of server, comprising: at least one processor;And at least one
The memory of a processor communication connection;And the communication component connecting with downstream traffic system communication, communication component are being handled
Data are sended and received under the control of device;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs quilt
At least one processor executes, so that at least one processor is able to carry out the exchange method that above embodiment refers to.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
The exchange method that above embodiment refers to is realized when machine program is executed by processor.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
The exchange method that above embodiment refers to is realized when machine program is executed by processor.
Embodiment of the present invention in terms of existing technologies, since the processing result of task is stored in the first buffer area
In, if upstream business system does not find the state letter of task corresponding with the unique identification of the task in the database of itself
Breath, upstream business system can obtain the processing result of the task again from the first buffer area, and according to the processing of the task
As a result, the status information of more new task, so that the interaction between upstream business system and downstream traffic system need to only pay close attention to this
Interactive service logic, without consider the sequence problem due to caused by the unique identification of task, avoid upstream business system and
The inconsistent problem of the data of downstream traffic system.
In addition, the first buffer area is first message queue, or, first database.In the realization, pass through message queue or number
It is cached according to processing result of the library to task.
In addition, obtaining the task of upstream business system publication, specifically include: the task in the second buffer area of inquiry, wherein
Task in second buffer area is issued by upstream business system.In the realization, upstream business system and downstream traffic system pass through
Message queue interacts, and can control the flow of downstream traffic system, and further to upstream business system under
Swim operation system decoupling.
In addition, the second buffer area is second message queue, or, the second database.
In addition, the first buffer area is first message queue, or, first database.
In addition, the first buffer area is first message queue;The processing result of the task in the first buffer area is obtained, it is specific to wrap
It includes: subscribing to the processing result of the task in first message queue periodically.
In addition, including the identification code of task in the processing result of task;According to the processing result of task, the shape of more new task
State information, specifically includes: judging the status information that whether there is task corresponding with the identification code of task in the database of itself;
If it is determined that being the status information of more new task, the processing result in first message queue with task is deleted.In the realization, upstream
Operation system deletes the processing result of updated task in time, avoids caching garbage in message queue.
In addition, before the processing result for obtaining the task in the first buffer area, exchange method further include: release tasks are extremely
Second buffer area.
In addition, the second buffer area is second message queue, or, the second database.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the method schematic diagram in the prior art for issuing task;
Fig. 2 is the method schematic diagram of processing task in the prior art;
Fig. 3 is the flow chart of the exchange method of first embodiment of the invention;
Fig. 4 is the flow chart of the exchange method of second embodiment of the present invention;
Fig. 5 is the flow chart of the exchange method of third embodiment of the present invention;
Fig. 6 is the flow chart of the exchange method of the 4th embodiment of the invention;
Fig. 7 is the method schematic diagram for issuing task of the 4th embodiment of the invention;
Fig. 8 is the method schematic diagram of the processing task of the 4th embodiment of the invention;
Fig. 9 is the structural schematic diagram of the server of the 5th embodiment of the invention;
Figure 10 is the structural schematic diagram of the server of sixth embodiment of the invention;
Figure 11 is the structural schematic diagram of the server of the 7th embodiment of the invention;
Figure 12 is the structural schematic diagram of the server of the 8th embodiment of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
It is herein message queue or database institute serialization number itself, such as " first ", " second " etc., is only used for distinguishing institute
The object of description does not have any sequence or art-recognized meanings.
The first embodiment of the present invention is related to a kind of exchange methods, are applied to downstream traffic system, by downstream traffic system
Server in system executes.As shown in figure 3, exchange method the following steps are included:
Step 301: obtaining the task of upstream business system publication.
Specifically, establishing between downstream traffic system and upstream business system has communication connection, it is able to carry out information friendship
Mutually.
In one example, downstream traffic system is cloud storage system, and upstream business system is storage management system, task
For video processing duties.Cloud storage system determines video processing duties, and video processing duties are sent to cloud storage system.Cloud
Storage system receives video processing duties, determines the PID of the video processing duties, and the PID of the video processing duties is sent
To storage management system.
Step 302: handling the task, determine the processing result of the task.
Specifically, the processing result instruction task of task is handled successfully, or, task processing failure.
In one example, task is video processing duties, and video, downstream traffic system are deleted in video processing duties instruction
System determines the video for needing to delete according to video processing duties, and executes the operation for deleting the video.Video is deleted executing
After operation, whether success is deleted according to video, generates the processing result of task, the processing result instruction task of task is processed into
Function or processing failure.
It should be noted that it will be understood by those skilled in the art that present embodiment by way of example only, practical application
In, task is also possible to other tasks, for example, addition document task dispatching, present embodiment do not limit the particular content of task.
Step 303: the processing result of task is sent to the first buffer area.Wherein, the processing result of task is by upstream industry
Business system obtains.
Specifically, downstream traffic system handles the task of acquisition, and after the completion of task processing, by task
Processing result is sent to the first buffer area.Upstream business system obtains the task by reading the information in the first buffer area
Processing result.Wherein, the first buffer area can be first message queue, be also possible to first database etc. with caching function
Storage region.
In one example, the first buffer area is first message queue, and first message queue is upstream business system
Message queue.The processing result of task is distributed in first message queue by downstream traffic system, and upstream business system subscribes to the
Message in one message queue, to obtain the processing result of task.
It should be noted that it will be understood by those skilled in the art that first message queue is also possible to downstream traffic system
Message queue, downstream traffic system be upstream business open system read and write first message queue permission, present embodiment is not
Play restriction effect.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the exchange method provided in present embodiment, since the processing result of task is stored in
In first buffer area, if upstream business system does not find task corresponding with the unique identification of the task in the database of itself
Status information, upstream business system can obtain the processing result of the task from the first buffer area again, and according to this
The processing result of business, the status information of more new task, so that the interaction between upstream business system and downstream traffic system only needs
The service logic for paying close attention to this interaction avoids upstream industry without considering the sequence problem due to caused by the unique identification of task
The inconsistent problem of the data of business system and downstream traffic system.
Second embodiment of the present invention is related to a kind of exchange method, second embodiment and first embodiment substantially phase
Together, it is in place of the main distinction: in the first embodiment, with upstream operation system directly by mission dispatching to downstream traffic system
For system, illustrate that downstream traffic system obtains the mode of task.And in second embodiment of the invention, downstream traffic system is logical
The second buffer area of inquiry is crossed, the task of upstream business system publication is obtained.In addition, it will be understood by those skilled in the art that two kinds
The task interaction of upstream business system and downstream traffic system can be achieved in mode.
Specifically, as shown in figure 4, in the present embodiment, include step 401 to step 403, wherein step 402 and
Step 403 respectively in first embodiment step 302 and step 303 it is roughly the same, details are not described herein again.It is main below to be situated between
Continue difference:
Step 401: the task in the second buffer area of inquiry.
Specifically, the second buffer area can be second message queue, it is also possible to the second database, in the second buffer area
Task issued by upstream business system.
In one example, the second buffer area is second message queue, and second message queue is downstream traffic system
Message queue.Upstream business system is distributed to second message queue after determining task, by task.Downstream traffic system is by ordering
The message in second message queue is read, the task of upstream business system publication is obtained.In the specific implementation, downstream can be preset
Operation system subscribes to the threshold value of the quantity of the message in second message queue.The threshold value can be according to the processing of downstream traffic system
Ability determines.
It is noted that when interactive by second message queue between upstream business system and downstream traffic system, under
Control can be reached by the threshold value of the quantity for the message being arranged in the second message queue that each period obtains by swimming operation system
The problems such as effect of flow, avoids since concurrent tasks are excessive, causes downstream traffic system crash.In addition to this, due to upstream
Operation system and downstream traffic system are no longer directly interactive, when some operation system breaks down, will not be to another
System impacts.
Step 402: handling the task, determine the processing result of the task.
Step 403: the processing result of task is sent to the first buffer area.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the exchange method provided in present embodiment, upstream business system and downstream traffic system
Between by second message queue interaction, allow downstream traffic system to pass through the second message team that setting each period obtains
The threshold value of the quantity of message in column achievees the effect that control flow, avoids causing downstream traffic system since concurrent tasks are excessive
The problems such as system collapse.In addition to this, since upstream business system and downstream traffic system are no longer directly interactive, when some business system
When system breaks down, another system will not be impacted.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Third embodiment of the present invention is related to a kind of exchange method, is applied to upstream business system, by upstream business system
Server in system executes.As shown in figure 5, exchange method the following steps are included:
Step 501: obtaining the processing result of the task in the first buffer area.
Specifically, the first buffer area can be first message queue, being also possible to first database etc. has caching function
The storage region of energy.The processing result of task in first buffer area is issued by downstream traffic system.
In one example, the first buffer area is first message queue.Upstream business system subscribes to first message periodically
Information in queue, the i.e. processing result of task.Wherein, the length in each period can according to need setting.It is selectable, on
The threshold value of the quantity of the information in the message queue that each period reads is arranged in trip operation system, to reach the effect of control flow
Fruit avoids the problem that the excessive caused system exception of flow.
In one example, upstream business system is subscribed in first message queue by timed task with realizing periodically
Information purpose.In one example, upstream business system obtain the first buffer area in task processing result before,
Task is distributed to downstream traffic system.Downstream traffic system receives the task, the unique identification of the task is determined, such as task
PID, and the unique identification of the task is back to upstream business system.Upstream business system is in the unique identification for receiving the task
Afterwards, it determines that the status information of the task task is being handled, the status information of the unique identification of the task and the task is deposited
Enter the database of itself.
In one example, downstream traffic system returns to the status information of task when returning to the unique identification of the task,
The status information instruction task of the task is being handled.Upstream business system believes the state of the unique identification of the task and task
Breath, is stored in the database of itself.
Step 502: according to the processing result of task, the status information of more new task.
Specifically, including the unique identification of task in the processing result of task, for example, the PID of task.Upstream business system
System searches the status information of task corresponding with the unique identification of the task, according to the processing of task in the database of itself
As a result, the status information of more new task.
In one example, upstream business system judges in the database of itself with the presence or absence of corresponding with the identification code of task
Task status information.If it is determined that being the status information of more new task, the processing knot in first message queue with task is deleted
Fruit.If upstream business system does not find the status information of task corresponding with the unique identification of task, the processing result of the task
Continue to be stored in first message queue.Upstream business system can obtain the processing result of the task in next period, directly
To the status information for updating the task according to the processing result of the task.
Compared with prior art, the exchange method that present embodiment provides, since the processing result of task is stored in the
In one message queue, if upstream business system after the processing result of the task of acquisition, does not find and is somebody's turn to do in the database of itself
The status information of the corresponding task of the unique identification of task, upstream business system can be over time again from the first cachings
The processing result of the task is obtained in area, and according to the processing result of the task, the status information of more new task, so that upstream industry
Interaction between business system and downstream traffic system need to only pay close attention to the service logic of this interaction, without considering due to task only
One identify caused by sequence problem, avoid the inconsistent problem of the data of upstream business system and downstream traffic system.
4th embodiment of the invention is related to a kind of exchange method, second embodiment and first embodiment substantially phase
Together, it is in place of the main distinction: in the first embodiment, with upstream operation system directly by mission dispatching to downstream traffic system
For system, illustrate the mode of upstream business system release tasks.And in second embodiment of the invention, upstream business system will
Task is issued in the second buffer area, is subscribed to for downstream traffic system.In addition, it will be understood by those skilled in the art that two kinds of sides
The interaction of task between upstream business system and downstream traffic system can be achieved in formula.
Specifically, as shown in fig. 6, in the present embodiment, include step 601 to step 603, wherein step 602 and
Step 603 respectively in first embodiment step 501 and step 502 it is roughly the same, details are not described herein again.It is main below to be situated between
Continue difference:
Step 601: release tasks to the second buffer area.
Specifically, the second buffer area can be second message queue, it is also possible to the second database.Wherein, second disappears
Breath queue can be the message queue of downstream traffic system, and the second database can be the letter that downstream traffic system is caching task
Cease the cache database of creation.Task is directly distributed to the second buffer area by upstream business system, and downstream traffic system is by ordering
The information in the second buffer area is read, task is obtained.
It is noted that passing through second message queue interactive task between upstream business system and downstream traffic system
When, downstream traffic system can be reached by the threshold value of the quantity for the message being arranged in the second message queue that each period obtains
The problems such as to the effect of control flow, avoiding since concurrent tasks are excessive, causing downstream traffic system crash.In addition to this, by
It is no longer directly interactive in upstream business system and downstream traffic system, it, will not be in addition when some operation system breaks down
One system impacts.
Step 602: obtaining the processing result of the task in the first buffer area
Step 603: according to the processing result of task, the status information of more new task.
Compared with prior art, the exchange method provided in present embodiment, upstream business system and downstream traffic system
Between by second message queue interactive task, downstream traffic system is disappeared by be arranged that each period obtains second
The threshold value for ceasing the quantity of the message in queue achievees the effect that control flow, avoids causing downstream industry since concurrent tasks are excessive
The problems such as business system crash.In addition to this, since upstream business system and downstream traffic system are no longer directly interactive, when some industry
When business system jam, another system will not be impacted.
Below using upstream operation system as storage management system, downstream traffic system is cloud storage system, the first buffer area
For first message queue, illustrates the task that issues and handle the process of task.In this case, the method for issuing task is shown
It is intended to as shown in fig. 7, comprises following steps:
Step 701: storage management system generates video processing duties according to demand, and is issued to cloud storage system.
Step 702: cloud storage system receives video processing duties, and returns to the PID of the video processing duties.
Step 703: the state of PID and the video processing duties that storage management system updates the video processing duties are believed
Breath, and it is stored in the database of itself.
It should be noted that it is clear to illustrate, herein with upstream operation system directly by mission dispatching to downstream traffic system
For system, illustrate the process for issuing task, in practical application, upstream business system and downstream traffic system can also pass through second
Buffer area interactive task.
The method schematic diagram of processing task is as shown in Figure 8, comprising the following steps:
Step 801: cloud storage system is after the completion of video processing duties processing, by the processing result of video processing duties
(PID including handling task) is distributed to first message queue.
Step 802: storage management system clocked flip subscribes to the task of the information in first message queue, subscribes to first and disappears
Cease the information in queue.
Step 803: storage management system judges to whether there is in the database of itself according to the PID of video processing duties
Task corresponding with the PID.
Storage management system is if it is determined that in the presence of executing step 804, otherwise, executing step 802.
Step 804: storage management system updates the state of video processing duties according to the processing result of video processing duties
Information is stored in the database of itself.
Step 805: deleting the processing result of the task in first message queue.
Below in conjunction with practical business scene, illustrate the interactive process of storage management system and cloud storage system.Storage management
System issues deletion task, and cloud storage system receives deletion task, returns to the PID:D20181023101 of deletion task.Storage tube
The state information updating for the task of deleting is to delete by reason system, while PID is updated to D20181023101.Cloud storage system is deleted
Except success, by the first message queue of processing result (including PID) publication.First message queue is subscribed in storage management system timing
In information, get PID be D20181023101 task processing result.Storage management system does not inquire PID
The task of D20181023101, without subsequent processing.After five minutes, the information in first message queue is subscribed to again, is got
PID is the processing result of the task of D20181023101.Storage management system inquires the task that PID is D20181023101,
The status information for updating the task that PID is D20181023101, the PID for deleting first message queue is appointing for D20181023101
The status information of business.
It can be seen from the above content that downstream traffic system and upstream business system are interacted by first message queue,
It can be to avoid concurrent caused data inconsistence problems.In addition to this, upstream business system can be obtained by the way that each period is arranged
The threshold value of the quantity of the information of first message queue is taken, to achieve the effect that control flow, system caused by avoiding flow excessive
System is abnormal.No longer directly interaction between upstream business system and downstream traffic system, when some operation system breaks down, to it
He does not influence system.For example, not influenced when upstream business system jam on downstream traffic system.Downstream traffic system
The processing of system task is completed for processing result to be published to first message queue, when upstream business system restores normal, is appointed by timing
The business period subscribes to the message for being deposited in first message queue.
5th embodiment of the invention is related to a kind of server, as shown in Figure 9, comprising: obtains module 901, determines mould
Block 902 and sending module 903 obtain module 901, determining module 902 and sending module 903 and couple, implement for realizing first
The exchange method applied to downstream traffic system that mode and second embodiment refer to.
Specifically, obtaining the task that module 901 is used to obtain the publication of upstream business system.Determining module 902 is for locating
Reason task determines the processing result of task.The processing result of task is sent to the first buffer area by sending module 903;Wherein, appoint
The processing result of business is obtained by upstream business system.
It is not difficult to find that present embodiment is system embodiment corresponding with first embodiment and second embodiment,
Present embodiment can work in coordination implementation with first embodiment and second embodiment.First embodiment and the second embodiment party
The relevant technical details mentioned in formula are still effective in the present embodiment, and in order to reduce repetition, which is not described herein again.Accordingly
Ground, the relevant technical details mentioned in present embodiment are also applicable in first embodiment and second embodiment.
Sixth embodiment of the invention is related to a kind of server, as shown in Figure 10, comprising: obtains module 1001 and updates
Module 1002, obtains module 1001 and update module 1002 couples, and mentions for realizing third embodiment and the 4th embodiment
And the exchange method applied to upstream business system.
Specifically, obtaining the processing result that module 1001 is used to obtain the task in the first buffer area;Wherein, task
Processing result is issued by downstream traffic system.Update module 1002 is used for the processing result according to task, the state of more new task
Information.
It is not difficult to find that present embodiment is system embodiment corresponding with third embodiment and the 4th embodiment,
Present embodiment can work in coordination implementation with third embodiment and the 4th embodiment.Third embodiment and the 4th embodiment party
The relevant technical details mentioned in formula are still effective in the present embodiment, and in order to reduce repetition, which is not described herein again.Accordingly
Ground, the relevant technical details mentioned in present embodiment are also applicable in third embodiment and the 4th embodiment.
It is noted that each module involved in the 5th embodiment and sixth embodiment is logic mould
Block, in practical applications, a logic unit can be a physical unit, be also possible to a part of a physical unit,
It can also be realized with the combination of multiple physical units.In addition, in order to protrude innovative part of the invention, the 5th embodiment and
There is no the unit introducings that the technical problem relationship proposed by the invention with solution is less close in six embodiments, but this is simultaneously
Do not show that there is no other units in the 5th embodiment and sixth embodiment.
7th embodiment of the invention is related to a kind of server, as shown in figure 11, comprising: at least one processor
1101;And the memory 1102 with the communication connection of at least one processor 1101;And connect with upstream business system communication
The communication component 1103 connect, communication component 1103 send and receive data under the control of processor 1101;Wherein, memory
1102 are stored with the instruction that can be executed by least one processor 1101, and instruction is executed by least one processor 1101, so that
At least one processor 1101 is able to carry out above-mentioned first embodiment and what second embodiment referred to is applied to downstream traffic
The exchange method of system.
8th embodiment of the invention is related to a kind of server, as shown in figure 12, comprising: at least one processor
1201;And the memory 1202 with the communication connection of at least one processor 1201;And connect with upstream business system communication
The communication component 1203 connect, communication component 1203 send and receive data under the control of processor 1201;Wherein, memory
1202 are stored with the instruction that can be executed by least one processor 1201, and instruction is executed by least one processor 1201, so that
At least one processor 1201 is able to carry out above-mentioned third embodiment and what the 4th embodiment referred to is applied to upstream business
The exchange method of system.
In the 7th embodiment and the 8th embodiment, server includes: one or more processors and memory,
It is taken a processor as an example in Figure 11 and Figure 12.Processor, memory can be connected by bus or other modes, Tu11He
In Figure 12 for being connected by bus.Memory can be used for storing as a kind of non-volatile computer readable storage medium storing program for executing
Non-volatile software program, non-volatile computer executable program and module.Processor is stored in memory by operation
In non-volatile software program, instruction and module, thereby executing the various function application and data processing of equipment, i.e., in fact
Existing above-mentioned exchange method.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, extremely
Application program required for a few function;It storage data area can the Save option list etc..In addition, memory may include high speed
Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or
Other non-volatile solid state memory parts.In some embodiments, it includes remotely located relative to processor that memory is optional
Memory, these remote memories can pass through network connection to external equipment.The example of above-mentioned network includes but is not limited to
Internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module stores in memory, when being executed by one or more processor, executes above-mentioned
Exchange method in any means embodiment.
The said goods can be performed the application embodiment provided by method, have the corresponding functional module of execution method and
Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to method provided by the application embodiment.
9th embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates
Machine program realizes that above-mentioned first embodiment and second embodiment referred to is applied to downstream traffic system when being executed by processor
The exchange method of system.
Tenth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates
Machine program realizes that above-mentioned third embodiment and the 4th embodiment referred to is applied to upstream business system when being executed by processor
The exchange method of system.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make
It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application
The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (14)
1. a kind of exchange method, which is characterized in that be applied to downstream traffic system, comprising:
Obtain the task of upstream business system publication;
The task is handled, determines the processing result of the task;
The processing result of the task is sent to the first buffer area;Wherein, the processing result of the task is by the upstream industry
Business system obtains.
2. exchange method according to claim 1, which is characterized in that first buffer area is first message queue, or,
First database.
3. exchange method according to claim 1, which is characterized in that the obtaining the publication of upstream business system of the task,
It specifically includes:
Inquire the task in the second buffer area, wherein the task in second buffer area is issued by the upstream business system.
4. exchange method according to claim 3, which is characterized in that second buffer area is second message queue, or,
Second database.
5. a kind of exchange method, which is characterized in that be applied to upstream business system, comprising:
Obtain the processing result of the task in the first buffer area;Wherein, the processing result of the task is sent out by downstream traffic system
Cloth;
According to the processing result of the task, the status information of the task is updated.
6. exchange method according to claim 5, which is characterized in that first buffer area is first message queue, or,
First database.
7. exchange method according to claim 6, which is characterized in that first buffer area is first message queue;
The processing result for obtaining the task in the first buffer area, specifically includes:
The processing result of the task in the first message queue is subscribed to periodically.
8. exchange method according to claim 7, which is characterized in that include the task in the processing result of the task
Identification code;
The processing result according to the task, updates the status information of the task, specifically includes:
Judge the status information that whether there is task corresponding with the identification code of the task in the database of itself;
If it is determined that being the status information for updating the task, the processing knot in the first message queue with the task is deleted
Fruit.
9. exchange method according to claim 5, which is characterized in that the task in the first buffer area of the acquisition
Processing result before, the exchange method further include:
The task is issued to the second buffer area.
10. exchange method according to claim 9, which is characterized in that second buffer area is second message queue,
Or, the second database.
11. a kind of server characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;And
The communication component connecting with upstream business system communication, the communication component are received and are sent out under the control of the processor
Send data;
Wherein, the memory be stored with can by least one described processor execute instruction, described instruction by it is described at least
One processor executes, so that at least one described processor is able to carry out interaction according to any one of claims 1 to 4
Method.
12. a kind of server characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;And
The communication component connecting with downstream traffic system communication, the communication component are received and are sent out under the control of the processor
Send data;
Wherein, the memory be stored with can by least one described processor execute instruction, described instruction by it is described at least
One processor executes, so that at least one described processor is able to carry out the friendship as described in any one of claim 5 to 10
Mutual method.
13. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
Reason device realizes exchange method described in any one of Claims 1-4 when executing.
14. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
It manages and realizes exchange method described in any one of claim 5 to 10 when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811575741.7A CN109669791A (en) | 2018-12-22 | 2018-12-22 | Exchange method, server and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811575741.7A CN109669791A (en) | 2018-12-22 | 2018-12-22 | Exchange method, server and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109669791A true CN109669791A (en) | 2019-04-23 |
Family
ID=66147616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811575741.7A Pending CN109669791A (en) | 2018-12-22 | 2018-12-22 | Exchange method, server and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669791A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112434050A (en) * | 2020-10-16 | 2021-03-02 | 广东电力信息科技有限公司 | Data synchronization method and device of power grid business processing system and business processing system |
CN113626218A (en) * | 2021-07-30 | 2021-11-09 | 江苏苏宁物流有限公司 | Data processing method, data processing device, storage medium and computer equipment |
CN115134411A (en) * | 2022-06-27 | 2022-09-30 | 中国银行股份有限公司 | System processing method and device based on message queue |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104253808A (en) * | 2013-06-29 | 2014-12-31 | 北京新媒传信科技有限公司 | Presence method and presence server for instant messaging system |
CN105677849A (en) * | 2016-01-06 | 2016-06-15 | 北京京东尚科信息技术有限公司 | Data updating method and device |
CN107133297A (en) * | 2017-04-26 | 2017-09-05 | 努比亚技术有限公司 | Data interactive method, system and computer-readable recording medium |
CN107222530A (en) * | 2017-05-23 | 2017-09-29 | 努比亚技术有限公司 | Service asynchronous exchange method, equipment, system and computer-readable recording medium |
CN107317855A (en) * | 2017-06-21 | 2017-11-03 | 努比亚技术有限公司 | A kind of data cache method, data request method and server |
CN107656784A (en) * | 2016-07-25 | 2018-02-02 | 武汉票据交易中心有限公司 | A kind of flow path processing method and device and server based on event |
CN107911418A (en) * | 2017-10-27 | 2018-04-13 | 努比亚技术有限公司 | One kind application control method, server and computer-readable recording medium on probation |
CN107992517A (en) * | 2017-10-26 | 2018-05-04 | 深圳市金立通信设备有限公司 | A kind of data processing method, server and computer-readable medium |
CN108566291A (en) * | 2018-02-13 | 2018-09-21 | 北京三快在线科技有限公司 | A kind of method of event handling, server and system |
CN108810832A (en) * | 2018-04-20 | 2018-11-13 | 广州市玄武无线科技股份有限公司 | Short message delivery method, device and computer readable storage medium |
-
2018
- 2018-12-22 CN CN201811575741.7A patent/CN109669791A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104253808A (en) * | 2013-06-29 | 2014-12-31 | 北京新媒传信科技有限公司 | Presence method and presence server for instant messaging system |
CN105677849A (en) * | 2016-01-06 | 2016-06-15 | 北京京东尚科信息技术有限公司 | Data updating method and device |
CN107656784A (en) * | 2016-07-25 | 2018-02-02 | 武汉票据交易中心有限公司 | A kind of flow path processing method and device and server based on event |
CN107133297A (en) * | 2017-04-26 | 2017-09-05 | 努比亚技术有限公司 | Data interactive method, system and computer-readable recording medium |
CN107222530A (en) * | 2017-05-23 | 2017-09-29 | 努比亚技术有限公司 | Service asynchronous exchange method, equipment, system and computer-readable recording medium |
CN107317855A (en) * | 2017-06-21 | 2017-11-03 | 努比亚技术有限公司 | A kind of data cache method, data request method and server |
CN107992517A (en) * | 2017-10-26 | 2018-05-04 | 深圳市金立通信设备有限公司 | A kind of data processing method, server and computer-readable medium |
CN107911418A (en) * | 2017-10-27 | 2018-04-13 | 努比亚技术有限公司 | One kind application control method, server and computer-readable recording medium on probation |
CN108566291A (en) * | 2018-02-13 | 2018-09-21 | 北京三快在线科技有限公司 | A kind of method of event handling, server and system |
CN108810832A (en) * | 2018-04-20 | 2018-11-13 | 广州市玄武无线科技股份有限公司 | Short message delivery method, device and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
张晓勇、彭军主编,刘伟荣副主编: "《嵌入式通信系统》", 31 March 2017 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112434050A (en) * | 2020-10-16 | 2021-03-02 | 广东电力信息科技有限公司 | Data synchronization method and device of power grid business processing system and business processing system |
CN113626218A (en) * | 2021-07-30 | 2021-11-09 | 江苏苏宁物流有限公司 | Data processing method, data processing device, storage medium and computer equipment |
CN115134411A (en) * | 2022-06-27 | 2022-09-30 | 中国银行股份有限公司 | System processing method and device based on message queue |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109669791A (en) | Exchange method, server and computer readable storage medium | |
DE60306937T2 (en) | SYNCHRONIZATION OF PIPELINES IN A DATA PROCESSING DEVICE | |
US7583268B2 (en) | Graphics pipeline precise interrupt method and apparatus | |
US7545381B2 (en) | Interruptible GPU and method for context saving and restoring | |
KR101616967B1 (en) | Improvements relating to handling and processing of massive numbers of processing instructions in real time | |
US7580040B2 (en) | Interruptible GPU and method for processing multiple contexts and runlists | |
US20050182638A1 (en) | Intelligent State engine system | |
CN104219235B (en) | A kind of distributed transaction requesting method and device | |
US20060015652A1 (en) | Establishing command order in an out of order DMA command queue | |
US6877051B2 (en) | Consistency checking mechanism for configuration parameters in embedded systems | |
CN110135815B (en) | Travel order monitoring method and device, computer equipment and storage medium | |
CN111695051A (en) | Page access method and device based on code scanning, electronic equipment and storage medium | |
CN109902975A (en) | Dispatching method, system, device and computer readable storage medium | |
US11966400B2 (en) | Common database architecture to support largescale transactions and node archival on a MaaS platform | |
CN109831520A (en) | A kind of timed task dispatching method and relevant apparatus | |
US7890462B2 (en) | System and method for handling parallel updates of objects requiring time sensitive acknowledgement | |
US20080163083A1 (en) | Tailored object | |
CN110599349A (en) | Data processing method based on block chain network, related equipment and storage medium | |
CN110443742A (en) | Data processing system | |
CN106815080A (en) | Distributed diagram data treating method and apparatus | |
CN109327506A (en) | A kind of resource allocation methods, device and readable storage medium storing program for executing | |
CN111292028A (en) | Inventory information processing method and system, computer system and readable storage medium | |
CN107274284B (en) | Bidirectional matching method and device and transaction system | |
KR20170036000A (en) | Mutable chronologies for accommodation of randomly occurring event delays | |
CN112364290A (en) | Method and system for constructing visual calculation model based on stream-oriented calculation |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190423 |
|
RJ01 | Rejection of invention patent application after publication |