CN108628666A - Processing method, device, storage medium and the electronic device of affairs - Google Patents

Processing method, device, storage medium and the electronic device of affairs Download PDF

Info

Publication number
CN108628666A
CN108628666A CN201810433992.5A CN201810433992A CN108628666A CN 108628666 A CN108628666 A CN 108628666A CN 201810433992 A CN201810433992 A CN 201810433992A CN 108628666 A CN108628666 A CN 108628666A
Authority
CN
China
Prior art keywords
target
resource
participant
object run
state
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.)
Granted
Application number
CN201810433992.5A
Other languages
Chinese (zh)
Other versions
CN108628666B (en
Inventor
任长城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shanghai Co Ltd
Original Assignee
Tencent Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shanghai Co Ltd filed Critical Tencent Technology Shanghai Co Ltd
Priority to CN201810433992.5A priority Critical patent/CN108628666B/en
Publication of CN108628666A publication Critical patent/CN108628666A/en
Application granted granted Critical
Publication of CN108628666B publication Critical patent/CN108628666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Abstract

The invention discloses a kind of processing method of affairs, device, storage medium and electronic devices.Wherein, this method includes:Detect that presence is converted to the target resource for existing in the resource of the target participant for the state of reaching the standard grade and being locked by target transaction from off-line state;Status information is submitted from the affairs with correspondence, participant's object run corresponding with the target participant of target transaction is obtained in operation submission status information;In the case where object run submits state instruction object run not submit, the target resource performance objective of target participant is operated, alternatively, in the case where object run submits state instruction object run to have been filed on, releases the locking to target resource.The present invention solves the relatively low technical problem of the treatment effeciency in the related technology to affairs.

Description

Processing method, device, storage medium and the electronic device of affairs
Technical field
The present invention relates to computer realm, in particular to a kind of processing method of affairs, device, storage medium and Electronic device.
Background technology
Affairs refer to the sequence of operations executed as single logical unit of work or are completely executed or completely Ground does not execute.Issued transaction may insure all to successfully complete except all operations in non-transactional unit, otherwise will not permanently more The resource of new data-oriented.By the way that one group of relevant operation is combined as either all a success or all unit unsuccessfully, Fault recovery can be simplified and keep application program relatively reliable.One logical unit of work will become affairs, it is necessary to which it is so-called to meet ACID (atomicity, consistency, isolation and persistence) attribute.There is a CAP principle in a distributed system:Consistency (consistency), availability (avalibility), subregion tolerance (partition torlerance), these three elements At most it can only realize at 2 points simultaneously, it is impossible to which three takes into account.For distributed system, subregion tolerance is basic demand, otherwise Just lose value.Therefore design distributed system, takes a balance exactly between consistency and availability.For most of Network application does not need to strong consistency, therefore sacrifices consistency and exchange high availability in fact.Certainly, consistency is sacrificed, and It is not the consistency completely regardless of data, otherwise data are chaotic, then high distribution does not well have system availability again yet again Value.Sacrifice consistency, the strong consistency being only no longer required in relevant database, as long as but system can reach final Consistency, it is contemplated that customer experience, this final consistent time window is transparent to user as far as possible, that is, It needs to ensure " consistency that user perceives ".
But keep the mode of system final consistency relatively low to the treatment effeciency of affairs at present, it is examined in participant's resource It looks by rear, positive lock participant's data object, it is made to remain visible during affairs execute.Participant is come It says, this means that cannot carry out the operations such as offline, transmission during affairs execute.
For above-mentioned problem, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of processing method of affairs, device, storage medium and electronic devices, at least to solve The certainly technical problem relatively low to the treatment effeciency of affairs in the related technology.
One side according to the ... of the embodiment of the present invention provides a kind of processing method of affairs, including:It detects in threadiness State is converted to the target resource for existing in the resource of the target participant for the state of reaching the standard grade and being locked by target transaction from off-line state, In, the target participant is the participant of the target transaction, and the target resource is the mesh executed in the target transaction Resource needed for mark operation;It is submitted in status information with operation from the affairs with correspondence, participant and obtains the target Status information is submitted in the corresponding object run of the target participant of affairs, wherein status information is submitted in the object run It is used to indicate submission state of the target participant to the object run;It is submitted described in state instruction in the object run In the case that object run is not submitted, the object run is executed to the target resource of the target participant, alternatively, In the case that the object run submits object run described in state instruction to have been filed on, the locking to the target resource is released.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of processing unit of affairs, including:First detection mould Block exists by target thing in the resource for the target participant for being converted to the state of reaching the standard grade for detecting presence from off-line state The target resource of business locking, wherein the target participant is the participant of the target transaction, and the target resource is to execute The resource needed for object run in the target transaction;Acquisition module, for from correspondence affairs, participant with Operation submits the corresponding object run of the target participant for obtaining the target transaction in status information to submit status information, Wherein, the object run submits status information to be used to indicate submission state of the target participant to the object run; First processing module, in the case of submission for the object run described in object run submission state instruction, to described The target resource of target participant executes the object run, alternatively, being submitted described in state instruction in the object run In the case that object run has been filed on, the locking to the target resource is released.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of computer readable storage medium, which is characterized in that It is stored with computer program in the storage medium, wherein the computer program is arranged to execute when operation any of the above-described Method described in.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of electronic device, including memory and processor, It is characterized in that, computer program is stored in the memory, and the processor is arranged to hold by the computer program Method described in row any of the above-described.
In embodiments of the present invention, using detect presence from off-line state be converted to the state of reaching the standard grade target participate in There is the target resource locked by target transaction in the resource of person, wherein target participant is the participant of target transaction, target Resource is the resource needed for the object run in performance objective affairs;It is carried from affairs, participant and operation with correspondence The corresponding object run of target participant for obtaining target transaction in status information is handed over to submit status information, wherein object run Status information is submitted to be used to indicate submission state of the target participant to object run;State instruction target is submitted in object run In the case that operation is not submitted, the object run is executed to the target resource of the target participant, alternatively, in target In the case that operation submits state instruction object run to have been filed on, the mode of the locking to target resource is released, establishes affairs, ginseng The correspondence between status information, operation is submitted to submit the behaviour of status information instruction participant in the transaction with person and operation Make submission state, when the presence of target participant is from the case that off-line state is converted to the state of reaching the standard grade, from above-mentioned correspondence The corresponding target operational state of target participant is obtained in relationship submits information, if information instruction object run is not submitted, Indicate that target participant operates target resource performance objective, to complete the operation in target transaction, if the information indicates mesh Mark operation has been filed on, then the locking to target resource is released, to by realizing the record for operating submission state even if mesh Mark participant be in off-line state in operation presentation stage, also can on it after line realization to the object run in target transaction Submission so that the success rate of affairs is significantly promoted, to realize the skill for the treatment of effeciency for improving and being handled affairs Art effect, and then solve the relatively low technical problem for the treatment of effeciency in the related technology to affairs.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the processing method of optional affairs according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of application environment schematic diagram of the processing method of optional affairs according to the ... of the embodiment of the present invention;
Fig. 3 is the schematic diagram one according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Fig. 4 is the schematic diagram two according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Fig. 5 is the schematic diagram three according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Fig. 6 is the schematic diagram four according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Fig. 7 is the schematic diagram five according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Fig. 8 is the schematic diagram six according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Fig. 9 is the schematic diagram seven according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Figure 10 is the schematic diagram eight according to a kind of processing method of optional affairs of alternative embodiment of the present invention;
Figure 11 is a kind of schematic diagram of the processing unit of optional affairs according to the ... of the embodiment of the present invention;
Figure 12 is a kind of application scenarios schematic diagram of the processing method of optional affairs according to the ... of the embodiment of the present invention;And
Figure 13 is a kind of schematic diagram of optional electronic device according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
One side according to the ... of the embodiment of the present invention provides a kind of processing method of affairs, as shown in Figure 1, this method Including:
S102 detects that presence is converted in the resource of the target participant for the state of reaching the standard grade that there are quilts from off-line state The target resource of target transaction locking, wherein target participant is the participant of target transaction, and target resource is performance objective thing The resource needed for object run in business;
S104 submits the mesh that target transaction is obtained in status information from the affairs with correspondence, participant with operation It marks the corresponding object run of participant and submits status information, wherein object run submits status information to be used to indicate target participation Submission state of the person to object run;
S106, in the case where object run submits state instruction object run not submit, to the target of target participant Resource performance objective operates, alternatively, in the case where object run submits state instruction object run to have been filed on, releases to target The locking of resource.
Optionally, in the present embodiment, the processing method of above-mentioned affairs can be applied to 202 institute of equipment as shown in Figure 2 In the hardware environment of composition.As shown in Fig. 2, equipment 202 detects that presence is converted to the mesh for the state of reaching the standard grade from off-line state Mark the target resource for existing in the resource of participant and being locked by target transaction, wherein target participant is the participation of target transaction Person, target resource be performance objective affairs in object run needed for resource, from correspondence affairs, participant with Operation submits the corresponding object run of target participant for obtaining target transaction in status information to submit status information, wherein mesh Mark operation submits status information to be used to indicate submission state of the target participant to object run, submits state to refer in object run In the case of showing that object run is not submitted, the target resource performance objective of target participant is operated, alternatively, being carried in object run In the case of handing over state instruction object run to have been filed on, the locking to target resource is released.
Optionally, in the present embodiment, the processing method of above-mentioned affairs can be, but not limited to execute on the terminal device, Can be, but not limited to execute on server apparatus, or can with but be not limited to by server apparatus and terminal device interaction hold Row.
Optionally, in the present embodiment, the processing method of above-mentioned affairs can be, but not limited to be applied to affairs In the scene of reason.Wherein, the processing method of above-mentioned affairs can be, but not limited to be applied to various types of clients, for example, Line educates client, instant communication client, community space client, game client, shopping client, browser clients End, financial client end, multimedia client, live streaming client etc..Specifically, can be, but not limited to be applied in above-mentioned game visitor In the scene handled affairs in the end of family, or can with but be not limited to be applied in above-mentioned multimedia client to affairs In the scene handled, to improve the treatment effeciency handled affairs.Above-mentioned is only a kind of example, right in the present embodiment This does not do any restriction.
Optionally, in the present embodiment, can be, but not limited to by can persistence lock realize to target participant to target The processing of affairs.As shown in figure 3, compared to the traditional lock mechanism for state of only reaching the standard grade, can persistence lock be divided into and reaching the standard grade and offline Two states.Can persistence lock can be, but not limited to include two parts:Data and logic, when it is reached the standard grade, data and logic are all It is active;Persistence then is carried out to data when offline, is not involved in any logic.Can persistence lock data include two Part:The dogging beam data of all affairs dogging beam data in total and each affairs.Can persistence lock logic refer to upper layer Lockable amount inspection of the business to a certain resource, a part of due to certain class resource may be locked by other business, and cannot make With, therefore can check whether surplus resources are enough before using such resource.
Optionally, in the present embodiment, target resource can be, but not limited to include:User data and other are various types of The data handled in affairs.
Optionally, in the present embodiment, with the affairs of correspondence, participant and operation submit status information can with but It is not limited to be recorded by tables of data and stored, which is properly termed as transaction status table, in things state table can also remember The execution state of copyist's business.As shown in figure 4, transaction status table can be used for recording execution state and the affairs participants of affairs Submit record.In transaction status table, each it is carrying out or just in the corresponding transaction status note of the affairs of suspended state Record, all records constitute the data portion of transaction status table.Every transaction status record by affairs id, current transaction status and The submission record of affairs participant is constituted.The logic of transaction status table refers to asking for response transactions coordinator and affairs participant It asks, record is submitted in setting or inquiry transaction state and setting participant.
In an optional embodiment, in game client, game player buys equipment 1 with 20 game tokens, For 20 game tokens that target participant is the game player, target resource is the game player, detect presence from Off-line state is converted to 20 game tokens for existing in the resource of the game player of the state of reaching the standard grade and being locked by target transaction, from tool There are the affairs of correspondence, participant's object run corresponding with the game player is obtained in operation submission status information to submit shape State information holds 20 game tokens of locking in the case where object run is submitted state instruction to deduct token-operated and do not submitted Row deducts operation, alternatively, in the case where object run is submitted state instruction to deduct token-operated and had been filed on, releases and plays to 20 The locking of token.
As it can be seen that through the above steps, establishing the correspondence between affairs, participant and operation submission status information, behaviour Make that status information instruction participant operation in the transaction is submitted to submit state, when the presence of target participant is from offline In the case that state is converted to the state of reaching the standard grade, the corresponding target operational state of target participant is obtained from above-mentioned correspondence and is carried Information being handed over, if information instruction object run is not submitted, it indicates that target participant operates target resource performance objective, to The operation in target transaction is completed, if information instruction object run has been filed on, the locking to target resource is released, to logical Cross that realized to the record for operating submission state can be if operating presentation stage and being in off-line state even if target participant It realizes the submission to the object run in target transaction after reaching the standard grade so that the success rate of affairs is significantly promoted, to realize The technique effect of the treatment effeciency handled affairs is improved, and then solves the treatment effeciency to affairs in the related technology Relatively low technical problem.
Further include after being operated to the target resource performance objective of target participant as a kind of optional scheme:
S1 detects whether successfully to operate the target resource performance objective of target participant;
S2, detect successfully the target resource performance objective of target participant is operated in the case of, will be used to refer to Show that the object run that object run is not submitted submits state information updating to be had been filed on to be used to indicate object run.
It optionally, in the present embodiment, can be with root after being operated to the target resource performance objective of target participant Status information is submitted to be updated object run according to the submission state of object run.Such as:As shown in figure 5, participant P2 is carried Successful information will be submitted to be sent to transaction status table after handing over successfully, state is submitted into the operation of participant P2 in transaction status table Information is updated to have been filed on by not submitting.
Optionally, in the present embodiment, when the operation of whole participants of a transaction journal in transaction status table is submitted Status information is that can delete this transaction journal when having been filed on state, to save transaction status table the space occupied. Alternatively, this transaction journal can also be retained, in order to the inquiry and backtracking to completed affairs.Or it can also be by this Transaction journal is deleted from affairs state table, and is stored to the storage location for storing completed transaction journal, from And the memory space of transaction status table had both been saved, it also can easily inquire and recall completed affairs.
As a kind of optional scheme, submits in status information and obtain with operation from the affairs with correspondence, participant The corresponding object run of the target participant of target transaction is taken to submit the status information to include:
S1 sends inquiry request to transaction status table, wherein target of the inquiry request for requesting query target transaction is joined Operation corresponding with person submits status information, transaction status table to be used to record affairs, participant and operation with correspondence Submit status information;
S2 receives the request response message that transaction status table response inquiry request returns, wherein taken in request response message Status information is submitted with object run.
Optionally, in the present embodiment, when detecting that target participant is transformed into the case where reaching the standard grade state from off-line state Under, status information can be submitted by getting the corresponding object run of target participant with the interaction of transaction status table.
Such as:As shown in fig. 6, detecting that participant P2 is converted to the state of reaching the standard grade and the money of participant P2 by off-line state There is the target resource (locking data as shown in Figure 6) locked by target transaction in source, then sends and inquire to transaction status table Request carrys out requesting query participant P2 corresponding operations in target transaction and status information, transaction status table is submitted to inquire ginseng Status information is submitted in corresponding operation is not submit in target transaction with person P2, then will carry and be used to indicate participant P2 and exist It is that the request response message that do not submit returns that status information is submitted in corresponding operation in target transaction.
As a kind of optional scheme, detect that presence is converted to the target participant for the state of reaching the standard grade from off-line state Resource in exist and by the target resource that target transaction locks include:
S1 receives the submission request that the coordinator of target transaction sends, wherein request is submitted to be used to indicate target participant Target resource performance objective is operated, object run is submitted status information to be used to indicate object run and do not submitted;
The presence of request detection target participant is submitted in S2, response;
S3 continues to detect target participant in the case where it is off-line state to detect the presence of target participant Presence whether from off-line state be converted to the state of reaching the standard grade;
S4, detect the presence of target participant be converted to from off-line state reach the standard grade state in the case of, detection To there is the target resource that is locked by target transaction in the resource of target participant.
Optionally, in the present embodiment, it can be, but not limited to control each participant in affairs by transaction coordination person Submit respective operation.Such as:The coordinator of target transaction sends to the participant of target transaction submits request each to indicate Participant submits object run, as shown in fig. 7, target participant receives the submission request of coordinator's transmission, responds the submission The presence of request detection target participant continues whether to detect target participant if presence is off-line state The state of reaching the standard grade is converted to from off-line state, is locked by target transaction if it is, whether there is in the resource of detection target participant Fixed target resource, to detect the target resource locked by target transaction.
Further include before the submission request that the coordinator for receiving target transaction sends as a kind of optional scheme:
S1 receives the resource lock request that coordinator sends, wherein resource lock request is for asking in target participant Resource in lock onto target operation needed for resource;
Resource needed for object run in the resource of target participant is determined as target and provided by S2, resource response locking request Source, and lock onto target resource.
Optionally, in the present embodiment, transaction coordination person can be, but not limited to each participant in control affairs to thing Resource is locked needed for business.Such as:The coordinator of target transaction sends resource lock request to the participant of target transaction and comes The resource needed for lock onto target operation in the resource of target participant is asked, as shown in figure 8, target participant receives coordination The resource lock request that person sends responds resource lock request by the resource needed for object run in the resource of target participant It is determined as target resource, and lock onto target resource.
As a kind of optional scheme, resource response locking request will be needed for object run in the resource of target participant Resource is determined as target resource, and lock onto target resource includes:
S1, whether the presence that resource response locking request detects target participant is the state of reaching the standard grade;
S2 detects the money of target participant in the case where it is to reach the standard grade state to detect the presence of target participant Whether the first resource amount of the available resources in source is more than or equal to the Secondary resource amount of the resource needed for object run;
S3, in the case where detecting that first resource amount is more than or equal to Secondary resource amount, from the money of target participant The available resources of Secondary resource amount are obtained in source, and the available resources of Secondary resource amount are determined as target resource;
S4, lock onto target resource, and send the first locking information to coordinator, wherein the first locking information is used to indicate Target resource locks successfully.
Optionally, in the present embodiment, during being locked to target resource, target participation can be detected first Whether the presence of person is the state of reaching the standard grade, and if it is the state of reaching the standard grade, then detects the available resources in the resource of target participant Stock number whether enough performance objectives operation, if enough, the target resource of enough stock numbers is obtained from available resources, And lock onto target resource, while the first locking information is sent to notify the locked success of coordinator's target resource.
Optionally, in the present embodiment, as shown in figure 9, if each participant of target transaction returns to coordinator's Be the first locking information, then the transaction state information in transaction status table can be updated in affairs submission by coordinator, from And it indicates the target transaction and enters the presentation stage of operation.
As a kind of optional scheme, it is off-line state in the presence for detecting target participant or detects the In the case that one stock number is less than Secondary resource amount, further include:
S1 sends the second locking information to coordinator, wherein the second locking information is used to indicate target resource locking and loses It loses.
Optionally, in the present embodiment, if the stock number of available resources is insufficient in the resource of target participant, alternatively, Target participant is in off-line state in the locked stage of resource, then can lead to target resource locking failure, can be to coordination Person sends the second locking information to indicate target resource locking failure.
Optionally, in the present embodiment, as shown in Figure 10, if it is there are one in each participant of target transaction or more What a participant returned to coordinator is the second locking information, then the target thing that coordinator can will record in transaction status table The transaction journal of business understands.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be expressed in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to the ... of the embodiment of the present invention additionally provides a kind of for implementing the processing method of above-mentioned affairs The processing unit of affairs, as shown in figure 11, which includes:
First detection module 1102, for detect presence from off-line state be converted to the state of reaching the standard grade target participate in There is the target resource locked by target transaction in the resource of person, wherein target participant is the participant of target transaction, target Resource is the resource needed for the object run in performance objective affairs;
Acquisition module 1104, for submitting in status information and obtaining with operation from the affairs with correspondence, participant Status information is submitted in the corresponding object run of target participant of target transaction, wherein object run submits status information to be used for Indicate submission state of the target participant to object run;
First processing module 1106, for object run submit state instruction object run do not submit in the case of, it is right The target resource performance objective of target participant operates, alternatively, submitting state instruction object run to have been filed in object run In the case of, release the locking to target resource.
Optionally, in the present embodiment, the processing unit of above-mentioned affairs can be applied to 202 institute of equipment as shown in Figure 2 In the hardware environment of composition.As shown in Fig. 2, equipment 202 detects that presence is converted to the mesh for the state of reaching the standard grade from off-line state Mark the target resource for existing in the resource of participant and being locked by target transaction, wherein target participant is the participation of target transaction Person, target resource be performance objective affairs in object run needed for resource, from correspondence affairs, participant with Operation submits the corresponding object run of target participant for obtaining target transaction in status information to submit status information, wherein mesh Mark operation submits status information to be used to indicate submission state of the target participant to object run, submits state to refer in object run In the case of showing that object run is not submitted, the target resource performance objective of target participant is operated, alternatively, being carried in object run In the case of handing over state instruction object run to have been filed on, the locking to target resource is released.
Optionally, in the present embodiment, the processing unit of above-mentioned affairs can be, but not limited to execute on the terminal device, Can be, but not limited to execute on server apparatus, or can with but be not limited to by server apparatus and terminal device interaction hold Row.
Optionally, in the present embodiment, the processing unit of above-mentioned affairs can be, but not limited to be applied to affairs In the scene of reason.Wherein, the processing method of above-mentioned affairs can be, but not limited to be applied to various types of clients, for example, Line educates client, instant communication client, community space client, game client, shopping client, browser clients End, financial client end, multimedia client, live streaming client etc..Specifically, can be, but not limited to be applied in above-mentioned game visitor In the scene handled affairs in the end of family, or can with but be not limited to be applied in above-mentioned multimedia client to affairs In the scene handled, to improve the treatment effeciency handled affairs.Above-mentioned is only a kind of example, right in the present embodiment This does not do any restriction.
Optionally, in the present embodiment, can be, but not limited to by can persistence lock realize to target participant to target The processing of affairs.As shown in figure 3, compared to the traditional lock mechanism for state of only reaching the standard grade, can persistence lock be divided into and reaching the standard grade and offline Two states.Can persistence lock can be, but not limited to include two parts:Data and logic, when it is reached the standard grade, data and logic are all It is active;Persistence then is carried out to data when offline, is not involved in any logic.Can persistence lock data include two Part:The dogging beam data of all affairs dogging beam data in total and each affairs.Can persistence lock logic refer to upper layer Lockable amount inspection of the business to a certain resource, a part of due to certain class resource may be locked by other business, and cannot make With, therefore can check whether surplus resources are enough before using such resource.
Optionally, in the present embodiment, target resource can be, but not limited to include:User data and other are various types of The data handled in affairs.
Optionally, in the present embodiment, with the affairs of correspondence, participant and operation submit status information can with but It is not limited to be recorded by tables of data and stored, which is properly termed as transaction status table, in things state table can also remember The execution state of copyist's business.As shown in figure 4, transaction status table can be used for recording execution state and the affairs participants of affairs Submit record.In transaction status table, each it is carrying out or just in the corresponding transaction status note of the affairs of suspended state Record, all records constitute the data portion of transaction status table.Every transaction status record by affairs id, current transaction status and The submission record of affairs participant is constituted.The logic of transaction status table refers to asking for response transactions coordinator and affairs participant It asks, record is submitted in setting or inquiry transaction state and setting participant.
In an optional embodiment, in game client, game player buys equipment 1 with 20 game tokens, For 20 game tokens that target participant is the game player, target resource is the game player, detect presence from Off-line state is converted to 20 game tokens for existing in the resource of the game player of the state of reaching the standard grade and being locked by target transaction, from tool There are the affairs of correspondence, participant's object run corresponding with the game player is obtained in operation submission status information to submit shape State information holds 20 game tokens of locking in the case where object run is submitted state instruction to deduct token-operated and do not submitted Row deducts operation, alternatively, in the case where object run is submitted state instruction to deduct token-operated and had been filed on, releases and plays to 20 The locking of token.
As it can be seen that by above-mentioned apparatus, the correspondence between affairs, participant and operation submission status information, behaviour are established Make that status information instruction participant operation in the transaction is submitted to submit state, when the presence of target participant is from offline In the case that state is converted to the state of reaching the standard grade, the corresponding target operational state of target participant is obtained from above-mentioned correspondence and is carried Information being handed over, if information instruction object run is not submitted, it indicates that target participant operates target resource performance objective, to The operation in target transaction is completed, if information instruction object run has been filed on, the locking to target resource is released, to logical Cross that realized to the record for operating submission state can be if operating presentation stage and being in off-line state even if target participant It realizes the submission to the object run in target transaction after reaching the standard grade so that the success rate of affairs is significantly promoted, to realize The technique effect of the treatment effeciency handled affairs is improved, and then solves the treatment effeciency to affairs in the related technology Relatively low technical problem.
As a kind of optional scheme, above-mentioned apparatus further includes:
Second detection module, for detecting whether successfully being operated to the target resource performance objective of target participant;
Update module, for detecting the case where successfully being operated to the target resource performance objective of target participant Under, will be used to indicate the object run that object run is not submitted and submit state information updating is to be used to indicate object run to have carried It hands over.
It optionally, in the present embodiment, can be with root after being operated to the target resource performance objective of target participant Status information is submitted to be updated object run according to the submission state of object run.Such as:As shown in figure 5, participant P2 is carried Successful information will be submitted to be sent to transaction status table after handing over successfully, state is submitted into the operation of participant P2 in transaction status table Information is updated to have been filed on by not submitting.
Optionally, in the present embodiment, when the operation of whole participants of a transaction journal in transaction status table is submitted Status information is that can delete this transaction journal when having been filed on state, to save transaction status table the space occupied. Alternatively, this transaction journal can also be retained, in order to the inquiry and backtracking to completed affairs.Or it can also be by this Transaction journal is deleted from affairs state table, and is stored to the storage location for storing completed transaction journal, from And the memory space of transaction status table had both been saved, it also can easily inquire and recall completed affairs.
As a kind of optional scheme, acquisition module includes:
Transmission unit, for sending inquiry request to transaction status table, wherein inquiry request is used for requesting query target thing The corresponding operation of target participant of business submits status information, transaction status table to be used to record affairs, ginseng with correspondence Status information is submitted with person and operation;
First receiving unit, the request response message returned for receiving transaction status table response inquiry request, wherein ask It asks and carries object run submission status information in response message.
Optionally, in the present embodiment, when detecting that target participant is transformed into the case where reaching the standard grade state from off-line state Under, status information can be submitted by getting the corresponding object run of target participant with the interaction of transaction status table.
Such as:As shown in fig. 6, detecting that participant P2 is converted to the state of reaching the standard grade and the money of participant P2 by off-line state There is the target resource (locking data as shown in Figure 6) locked by target transaction in source, then sends and inquire to transaction status table Request carrys out requesting query participant P2 corresponding operations in target transaction and status information, transaction status table is submitted to inquire ginseng Status information is submitted in corresponding operation is not submit in target transaction with person P2, then will carry and be used to indicate participant P2 and exist It is that the request response message that do not submit returns that status information is submitted in corresponding operation in target transaction.
As a kind of optional scheme, first detection module includes:
Second receiving unit, the submission request that the coordinator for receiving target transaction sends, wherein request is submitted to be used for Indicate that target participant operates target resource performance objective, object run is submitted status information to be used to indicate object run and do not carried It hands over;
First detection unit, for responding the presence for submitting request detection target participant;
Second detection unit, in the case where it is off-line state to detect the presence of target participant, continuing Whether the presence for detecting target participant from off-line state is converted to the state of reaching the standard grade;
Third detection unit, for detecting that the presence of target participant is converted to the state of reaching the standard grade from off-line state In the case of, detect the target resource for existing in the resource of target participant and being locked by target transaction.
Optionally, in the present embodiment, it can be, but not limited to control each participant in affairs by transaction coordination person Submit respective operation.Such as:The coordinator of target transaction sends to the participant of target transaction submits request each to indicate Participant submits object run, as shown in fig. 7, target participant receives the submission request of coordinator's transmission, responds the submission The presence of request detection target participant continues whether to detect target participant if presence is off-line state The state of reaching the standard grade is converted to from off-line state, is locked by target transaction if it is, whether there is in the resource of detection target participant Fixed target resource, to detect the target resource locked by target transaction.
As a kind of optional scheme, above-mentioned apparatus further includes:
Receiving module, the resource lock request for receiving coordinator's transmission, wherein resource lock request is for asking Resource in the resource of target participant needed for lock onto target operation;
Second processing module is used for resource response locking request by the money needed for object run in the resource of target participant Source is determined as target resource, and lock onto target resource.
Optionally, in the present embodiment, transaction coordination person can be, but not limited to each participant in control affairs to thing Resource is locked needed for business.Such as:The coordinator of target transaction sends resource lock request to the participant of target transaction and comes The resource needed for lock onto target operation in the resource of target participant is asked, as shown in figure 8, target participant receives coordination The resource lock request that person sends responds resource lock request by the resource needed for object run in the resource of target participant It is determined as target resource, and lock onto target resource.
As a kind of optional scheme, Second processing module includes:
4th detection unit, whether the presence that target participant is detected for resource response locking request is upper threadiness State;
5th detection unit, in the case where it is to reach the standard grade state to detect the presence of target participant, detecting Whether the first resource amount of the available resources in the resource of target participant is more than or equal to the resource needed for object run Secondary resource amount;
Acquiring unit, for detect first resource amount be more than or equal to Secondary resource amount in the case of, from target The available resources of Secondary resource amount are obtained in the resource of participant, and the available resources of Secondary resource amount are determined as target money Source;
Processing unit is used for lock onto target resource, and sends the first locking information to coordinator, wherein the first locking letter Breath is used to indicate target resource and locks successfully.
Optionally, in the present embodiment, during being locked to target resource, target participation can be detected first Whether the presence of person is the state of reaching the standard grade, and if it is the state of reaching the standard grade, then detects the available resources in the resource of target participant Stock number whether enough performance objectives operation, if enough, the target resource of enough stock numbers is obtained from available resources, And lock onto target resource, while the first locking information is sent to notify the locked success of coordinator's target resource.
Optionally, in the present embodiment, as shown in figure 9, if each participant of target transaction returns to coordinator's Be the first locking information, then the transaction state information in transaction status table can be updated in affairs submission by coordinator, from And it indicates the target transaction and enters the presentation stage of operation.
As a kind of optional scheme, above-mentioned apparatus further includes:
Sending module, for for off-line state or detecting first resource in the presence for detecting target participant In the case that amount is less than Secondary resource amount, the second locking information is sent to coordinator, wherein the second locking information is used to indicate mesh Mark resource lock failure.
Optionally, in the present embodiment, if the stock number of available resources is insufficient in the resource of target participant, alternatively, Target participant is in off-line state in the locked stage of resource, then can lead to target resource locking failure, can be to coordination Person sends the second locking information to indicate target resource locking failure.
Optionally, in the present embodiment, as shown in Figure 10, if it is there are one in each participant of target transaction or more What a participant returned to coordinator is the second locking information, then the target thing that coordinator can will record in transaction status table The transaction journal of business understands.
The application environment of the embodiment of the present invention can be, but not limited to reference to the application environment in above-described embodiment, the present embodiment In this is repeated no more.An embodiment of the present invention provides the optional tools of one kind of the connection method for implementing above-mentioned real-time Communication for Power Body application example.
As a kind of optional embodiment, the processing method of above-mentioned affairs can be, but not limited to be applied to as shown in figure 12 In the scene handled affairs.In this scene, a kind of transactional framework of final consistency is provided, the frame packet It includes:Final consistency task manager, can persistence lock and transaction status table.Final consistency task manager can be deployed in Transaction coordination person, to can persistence lock publication " locking " order, to transaction status table publication " state setting " order, can be lasting Affairs participant can be deployed in by changing lock, to transaction status table publication " status inquiry " request, and be replied according to status inquiry Carry out respective handling.
Optionally, in the present embodiment, specific transaction process is as follows:
In affairs mounting phase, the processing state that target transaction in transaction status table is arranged in transaction coordination person is locking shape State, and affairs participant is recorded in transaction status table, meanwhile, transaction coordination person sends locking request to all participants. After affairs participant receives locking request, the data needed for locking transaction are attempted, and locking result is replied to coordinator.Work as institute Some affairs participants reply lock successfully after, coordinator be arranged transaction status table be affairs submit in state, affairs enter Presentation stage.After any one participant returns to locking failure, transaction coordination person removes in transaction status table to this affairs State recording sends affairs cancellation notice to all participants, terminates this affairs and executes flow.
After affairs enter presentation stage, coordinator sends to all participants and submits request.If participant is online, The data locked before are unlocked, and execute submission operation, returns and submits successful information to coordinator;If participant is not online, It is offline then directly participant to be returned to coordinator.Transaction coordination person is after receiving participant and submitting successfully notice, by affairs shape Corresponding participant submits state to be set as having been filed in state table;It is without any processing after receiving participant's offline notification.When After transaction coordination person receives reply (submitting successfully/participant offline) or the presentation stage time-out of all participants, coordinator sets It is that affairs terminate state, and enter next stage to set transaction status table:Affairs mend presentation stage.
Presentation stage is mended in affairs, after offline participant reaches the standard grade again after the affairs price raising stage, according to recording before Locking data and affairs participate in data, initiate status query request to transaction status table.If its submission state is not submit, Participant executes submission action, and notifies transaction status table, is set the submission state of the participant to by transaction status table It submits;Otherwise, if the state of submission is to have been filed on, participant removes locking data and affairs participate in data.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of electronics for implementing the processing of above-mentioned affairs Device, as shown in figure 13, which includes:One or more (one is only shown in figure) processors 1302, memory 1304, sensor 1306, encoder 1308 and transmitting device 1310 are stored with computer program in the memory, the processing Device is arranged to execute the step in any of the above-described embodiment of the method by computer program.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 detects that presence is converted in the resource of the target participant for the state of reaching the standard grade from off-line state and exists by mesh Mark the target resource of affairs locking, wherein target participant is the participant of target transaction, and target resource is performance objective affairs In object run needed for resource;
S2 submits the target that target transaction is obtained in status information from the affairs with correspondence, participant with operation Status information is submitted in the corresponding object run of participant, wherein object run submits status information to be used to indicate target participant To the submission state of object run;
S3, in the case where object run submits state instruction object run not submit, target participant is to target for instruction Resource performance objective operates, alternatively, in the case where object run submits state instruction object run to have been filed on, releases to target The locking of resource.
Optionally, it will appreciated by the skilled person that structure shown in Figure 13 is only to illustrate, electronic device also may be used To be smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, palm PC and mobile internet device The terminal devices such as (Mobile Internet Devices, MID), PAD.Figure 13 it does not make the structure of above-mentioned electronic device At restriction.For example, electronic device may also include more than shown in Figure 13 or less component (such as network interface, display dress Set), or with the configuration different from shown in Figure 13.
Wherein, memory 1302 can be used for storing software program and module, such as the place of the affairs in the embodiment of the present invention Corresponding program instruction/the module of method and apparatus is managed, processor 1304 is stored in the software journey in memory 1302 by operation Sequence and module realize the control method of above-mentioned target element to perform various functions application and data processing.It deposits Reservoir 1302 may include high speed random access memory, can also include nonvolatile memory, such as one or more magnetic storage Device, flash memory or other non-volatile solid state memories.In some instances, memory 1302 can further comprise relatively In the remotely located memory of processor 1304, these remote memories can pass through network connection to terminal.Above-mentioned network Example includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 1310 is used to receive via a network or transmission data.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 1310 includes a network adapter (Network Interface Controller, NIC), can be connected with other network equipments with router by cable so as to interconnection Net or LAN are communicated.In an example, transmitting device 1310 is radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
Wherein, specifically, memory 1302 is for storing application program.
The embodiments of the present invention also provide a kind of computer readable storage medium, computer is stored in the storage medium Program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1 detects that presence is converted in the resource of the target participant for the state of reaching the standard grade from off-line state and exists by mesh Mark the target resource of affairs locking, wherein target participant is the participant of target transaction, and target resource is performance objective affairs In object run needed for resource;
S2 submits the target that target transaction is obtained in status information from the affairs with correspondence, participant with operation Status information is submitted in the corresponding object run of participant, wherein object run submits status information to be used to indicate target participant To the submission state of object run;
S3, in the case where object run submits state instruction object run not submit, target participant is to target for instruction Resource performance objective operates, alternatively, in the case where object run submits state instruction object run to have been filed on, releases to target The locking of resource.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, one of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of step be that can be completed come command terminal device-dependent hardware by program, which can be stored in In one computer readable storage medium, storage medium may include:Flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (15)

1. a kind of processing method of affairs, which is characterized in that including:
Detect that presence is converted in the resource of the target participant for the state of reaching the standard grade from off-line state and exists by target transaction The target resource of locking, wherein the target participant is the participant of the target transaction, and the target resource is execution institute State the resource needed for the object run in target transaction;
The target that the target transaction is obtained in status information is submitted with operation from the affairs with correspondence, participant Status information is submitted in the corresponding object run of participant, wherein the object run submits status information to be used to indicate the mesh Mark submission state of the participant to the object run;
In the case that the object run described in state instruction is submitted in the object run is not submitted, to the institute of the target participant It states target resource and executes the object run, alternatively, submitting object run described in state instruction to have been filed in the object run In the case of, release the locking to the target resource.
2. according to the method described in claim 1, it is characterized in that, in the target resource execution to the target participant After the object run, the method further includes:
It detects whether successfully to execute the object run to the target resource of the target participant;
Detect successfully to the target resource of the target participant execute the object run in the case of, will use It is to be used to indicate the object run to submit state information updating in the object run that the instruction object run is not submitted It has been filed on.
3. according to the method described in claim 1, it is characterized in that, being carried from affairs, participant and operation with correspondence The corresponding object run of the target participant for obtaining the target transaction in status information is handed over to submit status information packet It includes:
Inquiry request is sent to transaction status table, wherein the inquiry request is described for target transaction described in requesting query The corresponding operation of target participant submits status information, the transaction status table to be used to record affairs, ginseng with correspondence Status information is submitted with person and operation;
It receives the transaction status table and responds the request response message that the inquiry request returns, wherein the request response letter The object run is carried in breath submits status information.
4. according to the method described in claim 1, it is characterized in that, detecting that presence is converted to upper threadiness from off-line state Exist by the target resource that target transaction locks in the resource of the target participant of state and includes:
Receive the submission request that the coordinator of the target transaction sends, wherein the submission request is used to indicate the target Participant executes the object run to the target resource, and the object run submits status information to be used to indicate the target Operation is not submitted;
Respond the presence of target participant described in the submission request detection;
In the case where it is off-line state to detect the presence of the target participant, continue to detect the target participant Presence whether from off-line state be converted to the state of reaching the standard grade;
Detect the presence of the target participant be converted to from off-line state reach the standard grade state in the case of, detect institute State the target resource for existing in the resource of target participant and being locked by target transaction.
5. according to the method described in claim 4, it is characterized in that, the submission sent in the coordinator for receiving the target transaction Before request, the method further includes:
Receive the resource lock request that the coordinator sends, wherein the resource lock request is for asking in the target The resource needed for the object run is locked in the resource of participant;
The resource lock request is responded to be determined as the resource needed for object run described in the resource of the target participant The target resource, and lock the target resource.
6. according to the method described in claim 5, it is characterized in that, responding the resource lock request by the target participant Resource described in resource needed for object run be determined as the target resource, and lock the target resource and include:
Whether the presence for responding target participant described in the resource lock request detection is the state of reaching the standard grade;
In the case where it is to reach the standard grade state to detect the presence of the target participant, the money of the target participant is detected Whether the first resource amount of the available resources in source is more than or equal to the Secondary resource amount of the resource needed for the object run;
In the case where detecting that the first resource amount is more than or equal to the Secondary resource amount, from the target participant Resource in obtain the available resources of the Secondary resource amount, and the available resources of the Secondary resource amount are determined as the mesh Mark resource;
The target resource is locked, and the first locking information is sent to the coordinator, wherein first locking information is used for Indicate that the target resource locks successfully.
7. according to the method described in claim 6, it is characterized in that, the presence for detecting the target participant be from Linear state detects the first resource amount less than in the case of the Secondary resource amount, and the method further includes:
The second locking information is sent to the coordinator, wherein second locking information is used to indicate the target resource lock Fixed failure.
8. a kind of processing unit of affairs, which is characterized in that including:
First detection module is converted to the resource of the target participant for the state of reaching the standard grade for detecting presence from off-line state It is middle to there is the target resource locked by target transaction, wherein the target participant is the participant of the target transaction, described Target resource is the resource needed for the object run in the execution target transaction;
Acquisition module obtains the target for being submitted in status information with operation from the affairs with correspondence, participant Status information is submitted in the corresponding object run of the target participant of affairs, wherein status information is submitted in the object run It is used to indicate submission state of the target participant to the object run;
First processing module is right in the case of submission for the object run described in object run submission state instruction The target resource of the target participant executes the object run, alternatively, submitting state instruction in the object run In the case that the object run has been filed on, the locking to the target resource is released.
9. device according to claim 8, which is characterized in that described device further includes:
Second detection module, for detecting whether successfully executing the target to the target resource of the target participant Operation;
Update module, for detecting successfully to the target resource of the target participant execution object run In the case of, will be used to indicate the object run that the object run is not submitted and submit state information updating is to be used to indicate The object run has been filed on.
10. device according to claim 8, which is characterized in that the acquisition module includes:
Transmission unit, for sending inquiry request to transaction status table, wherein the inquiry request is for mesh described in requesting query The corresponding operation of the target participant for marking affairs submits status information, the transaction status table to have corresponding close for recording The affairs of system, participant submit status information with operation;
First receiving unit responds the request response message that the inquiry request returns for receiving the transaction status table, In, the object run is carried in the request response message submits status information.
11. device according to claim 8, which is characterized in that the first detection module includes:
Second receiving unit, the submission request that the coordinator for receiving the target transaction sends, wherein the submission request It is used to indicate the target participant and the object run is executed to the target resource, status information is submitted in the object run The object run is used to indicate not submit;
First detection unit, the presence for responding target participant described in the submission request detection;
Second detection unit, in the case where it is off-line state to detect the presence of the target participant, continuing Whether the presence for detecting the target participant from off-line state is converted to the state of reaching the standard grade;
Third detection unit, for detecting that the presence of the target participant is converted to the state of reaching the standard grade from off-line state In the case of, detect the target resource for existing in the resource of the target participant and being locked by target transaction.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Receiving module, the resource lock request sent for receiving the coordinator, wherein the resource lock request is for asking Seek the resource locked in the resource of the target participant needed for the object run;
Second processing module, for responding the resource lock request by object run described in the resource of the target participant Required resource is determined as the target resource, and locks the target resource.
13. device according to claim 12, which is characterized in that the Second processing module includes:
4th detection unit, for respond target participant described in the resource lock request detection presence whether be Linear state;
5th detection unit, in the case where it is to reach the standard grade state to detect the presence of the target participant, detecting Whether the first resource amount of the available resources in the resource of the target participant is more than or equal to needed for the object run Resource Secondary resource amount;
Acquiring unit, for detect the first resource amount be more than or equal to the Secondary resource amount in the case of, from Obtain the available resources of the Secondary resource amount in the resource of the target participant, and by the available money of the Secondary resource amount Source is determined as the target resource;
Processing unit sends the first locking information for locking the target resource, and to the coordinator, wherein described the One locking information is used to indicate the target resource and locks successfully.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer program in the storage medium, wherein The computer program is arranged to execute the method described in any one of claim 1 to 7 when operation.
15. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to execute the side described in any one of claim 1 to 7 by the computer program Method.
CN201810433992.5A 2018-05-08 2018-05-08 Transaction processing method and device, storage medium and electronic device Active CN108628666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810433992.5A CN108628666B (en) 2018-05-08 2018-05-08 Transaction processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810433992.5A CN108628666B (en) 2018-05-08 2018-05-08 Transaction processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN108628666A true CN108628666A (en) 2018-10-09
CN108628666B CN108628666B (en) 2023-11-14

Family

ID=63696032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810433992.5A Active CN108628666B (en) 2018-05-08 2018-05-08 Transaction processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN108628666B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273333A (en) * 2005-04-13 2008-09-24 普罗格雷斯软件公司 Fault tolerant distributed lock management
US20090300074A1 (en) * 2008-05-29 2009-12-03 Mark Cameron Little Batch recovery of distributed transactions
US20120190453A1 (en) * 2011-01-25 2012-07-26 Bossa Nova Robotics Ip, Inc. System and method for online-offline interactive experience
CN105187536A (en) * 2015-09-15 2015-12-23 贵阳朗玛信息技术股份有限公司 Data uploading method and data forwarding server
CN106462544A (en) * 2014-03-31 2017-02-22 亚马逊科技公司 Session management in distributed storage systems
CN106598992A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Database operating method and device
CN107402822A (en) * 2017-07-06 2017-11-28 腾讯科技(深圳)有限公司 Deadlock treatment method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273333A (en) * 2005-04-13 2008-09-24 普罗格雷斯软件公司 Fault tolerant distributed lock management
US20090300074A1 (en) * 2008-05-29 2009-12-03 Mark Cameron Little Batch recovery of distributed transactions
US20120190453A1 (en) * 2011-01-25 2012-07-26 Bossa Nova Robotics Ip, Inc. System and method for online-offline interactive experience
CN106462544A (en) * 2014-03-31 2017-02-22 亚马逊科技公司 Session management in distributed storage systems
CN105187536A (en) * 2015-09-15 2015-12-23 贵阳朗玛信息技术股份有限公司 Data uploading method and data forwarding server
CN106598992A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Database operating method and device
CN107402822A (en) * 2017-07-06 2017-11-28 腾讯科技(深圳)有限公司 Deadlock treatment method and device

Also Published As

Publication number Publication date
CN108628666B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN100395766C (en) Method and system for limiting time of network gaming user
CN107993149A (en) Account information management method, system and readable storage medium storing program for executing
CN108052398A (en) A kind of feedback method of order processing state and polymerization payment platform
CN103312549B (en) A kind of office management method and device and system
CN107509178A (en) Express delivery information sharing Notification Method and device
CN110083620A (en) Based on the data query method and device of block chain, storage medium, electronic device
CN108040004A (en) Control method, device, equipment and the readable storage medium storing program for executing of virtual robot
CN105245620B (en) The method, apparatus and system of information transmission
CN106254206A (en) A kind of information processing method and equipment
CN108510315A (en) A kind of resource issuing method and relevant device
CN110266807A (en) Internet of things data processing method and processing device
CN106982158A (en) The sharing method and device of movement locus
CN108898728A (en) Intelligent interaction device and its voting method, device and system
CN108898368A (en) Transfer method and device, storage medium, the electronic device of resource
CN109586930A (en) Participant user adding method, first terminal, second terminal and processing server
CN109819023A (en) Distributed transaction processing method and Related product
CN108322443A (en) Equipment interactive communication method, apparatus, storage medium and computer equipment
CN110728558A (en) Virtual article package sending method, device, equipment and storage medium
CN106056436A (en) Data fallback method, device and system
CN107392430A (en) A kind of product processes and device based on Internet of Things
CN109559219A (en) A kind of loan fund monitoring method and device
CN110363556A (en) Determine method, server, client and the system of customer problem
CN110120908A (en) Group message processing method, device and server
CN108415768A (en) A kind of data batch processing method and system
CN104363257B (en) A kind of user interface data method for refreshing and equipment

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
GR01 Patent grant
GR01 Patent grant