CN104077111A - Concurrent access control method and device for service operations - Google Patents

Concurrent access control method and device for service operations Download PDF

Info

Publication number
CN104077111A
CN104077111A CN201410284930.4A CN201410284930A CN104077111A CN 104077111 A CN104077111 A CN 104077111A CN 201410284930 A CN201410284930 A CN 201410284930A CN 104077111 A CN104077111 A CN 104077111A
Authority
CN
China
Prior art keywords
lock
access
business
application
access lock
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
CN201410284930.4A
Other languages
Chinese (zh)
Other versions
CN104077111B (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.)
You Pu Information Technology Co Ltd Of Ufsoft
Original Assignee
You Pu Information Technology Co Ltd Of Ufsoft
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 You Pu Information Technology Co Ltd Of Ufsoft filed Critical You Pu Information Technology Co Ltd Of Ufsoft
Priority to CN201410284930.4A priority Critical patent/CN104077111B/en
Publication of CN104077111A publication Critical patent/CN104077111A/en
Application granted granted Critical
Publication of CN104077111B publication Critical patent/CN104077111B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a concurrent access control method for service operations. The concurrent access control method comprises the steps that a server-side sends an operation request based on a client-side and puts the access lock control in the single service processing process; the server-side refines classification and applies for an access lock based on a service operation corresponding to the operation request in multiple preset service operations; the server-side executes corresponding operation based on an application result of the access lock. The invention further provides a concurrent access control device for service operations. By adopting the technical scheme, access control of the single service operation is fully utilized to finish concurrent access control of multiple service operations based on a concurrent access control mode of existing service operations, and a single service operation participated universal and unified access control concept oriented to the concurrent access control of multiple service operations is established.

Description

The concurrent access control method of business operation and device
Technical field
The present invention relates to field of computer technology, particularly, relate to a kind of concurrent access control method of business operation and a kind of Parallel access control device of business operation.
 
Background technology
In the system of applying at a lot of management softwares, all relate to the Concurrency Access operation of data.Concurrency Access refers to same data or has many data of correlativity to be accessed by multiple operations simultaneously, at this time, need to solve by Parallel access control technology, thereby prevent from producing and influencing each other between multiple operations.
For example, in the time that a function is ongoing, may needs to load some data and calculate and affect and revise other data, at this time, if other feature operation also needs to revise these related datas simultaneously, just may cause occurring data perturbation or dirty situation about reading.Between these two or more functions, just exist the problem of Concurrency Access operation.
At present, general use-pattern is that the mode of utilizing the lock mechanism of database self or increase application access lock in the time of business operation is carried out the service concurrence control of coarseness.Generally the Parallel access control of use is to realize by the lock mechanism of database self, in the situation that multi-user exists Concurrency Access, database provides a set of lock mechanism, by locking in the data to accessed, and allow other concurrent operations wait in line, prevent that data are modified simultaneously.
This mode is that the shortcoming of first kind of way is: can only lock to access amendment identical data, can not lock by a batch data how identical or related service impact and amendment, not be suitable for slightly complicated any service application.
The second way is that the function of carrying out by the request to user is applied for access lock at server end, and the management of the lock that conducts interviews, if applied for successfully, continues to carry out business by visit data and carry out this request.If applied for unsuccessfully, application server directly returns to the message that request cannot be processed.
For example, in patent (application) number is 200810161293.6 patent (application) document, disclose a kind of concurrent access control method and device, had to solve current Database lock mechanism that database burden increases the weight of, the easy problem of produce of deadlock.This concurrent access control method comprises: server end receives request of access; Confirm whether described request needs application access lock, if so, application access lock; If application access is locked successfully, carry out this request by accessing database; After this request is finished, discharge described access lock.This concurrent access control method and device provide the lock mechanism of a set of application level rank, and this mechanism is by Parallel access control at application server end, and request was just employed server end and filters before arriving database, had filtered out concurrent request.Therefore, effectively controlled Concurrency Access and the amendment of data multi-user, there is Concurrency Access in the situation that, can alleviate the load of database, and can effectively reduce the abnormal conditions such as deadlock, wait of database.
But the shortcoming that this mode is the second way is: the granularity of access lock is excessively thick, if concurrent user measures in more situation, is very easy to the mistake that the continuous request of appearance cannot be processed, affects user's use.
Therefore, need a kind of Parallel access control technology of new business operation, can be on the Parallel access control mode basis of existing business operation, the access control that makes full use of single business operation completes the Parallel access control of multi-service operation, sets up general, the unified access control thinking of the Parallel access control towards multi-service operation of single business operation participation.
 
Summary of the invention
The present invention is just based on the problems referred to above, a kind of Parallel access control technology of new business operation has been proposed, can be on the Parallel access control mode basis of existing business operation, the access control that makes full use of single business operation completes the Parallel access control of multi-service operation, sets up general, the unified access control thinking of the Parallel access control towards multi-service operation of single business operation participation.
In view of this, the present invention proposes a kind of concurrent access control method of business operation, comprising: step 102: the operation requests that service end is sent based on client, is placed on single business procession by the control of access lock; Step 104: service end is based on the business operation corresponding with this operation requests in default multiple business operations, and classification application access is locked; Step 106: the application result of service end based on access lock, carry out corresponding operating.In this technical scheme, by the refinement control to access lock, can greatly reduce the Concurrency Access conflict of business, meanwhile, also can bring good experience to user.
In technique scheme, preferably, described step 102 specifically comprises: step 202: client is sent operation requests, and service end receives the operation requests that client is sent; Step 204: service end is carried out the corresponding current business of operation requests of sending with client, a business operation in the corresponding default multiple business operations of this current business.In this technical scheme, by the control of access lock is placed on single business procession, can make the time locking become shorter, and the situation that occurs access conflict between user is minimized.
In technique scheme, preferably, described step 104 specifically comprises: step 206: service end is based on business operation corresponding to current execution business, and application access is locked; Further, described service end is based on business operation corresponding to current execution business, and the flow process of application access lock, also comprises: in the time that the operation of this application access lock is read lock operation, judge whether to exist this access lock: if there is the operation of writing lock, the operation failure of this application access lock; If when having the operation of read lock or not having this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock; When the operation of this application access lock is while writing latching operation, judge whether to exist this access lock: if there is the operation of writing the operation of lock or having read lock, the operation failure of this application access lock; If while there is not this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock.In this technical scheme, the classification refinement of access lock, is divided into read lock and writes lock, and multiple business operations, in the time carrying out read lock operation, are correlated with and are not conflicted.
In technique scheme, preferably, described step 106 specifically comprises: step 208: when access lock is applied for successfully, this business operation is carried out accessing database; Step 210: when this business operation accessing database finishes, discharge access lock.In this technical scheme, in the time that business operation does not clash in due course, business is normally carried out.
In technique scheme, preferably, described step 106 specifically also comprises: step 212: when access lock is applied for unsuccessfully, service end is waited for after default duration, automatically retry application access lock preset times, according to the result of retry application access lock, execution step 214 or execution step 2161; Step 214: if retry application access is locked successfully in preset times, this business operation normally carries out; Step 216: if retry application access lock is unsuccessful in preset times, return to current operation request and other user's operating collision, the message that just a moment,please carries out to client; Step 218: the monitoring interface that client is locked by application shows and manage the application situation of corresponding access lock, for corresponding service, situation about breaking down is carried out in operation, allows user oneself carry out corresponding access lock and manages operation.In this technical scheme, by after makeing mistakes, wait for a very little time, and again apply for the mode of access lock, carry out automatic retry, can not make mistakes under conflict situations between reaching in due course, business is normally carried out; And for the situation of long-time conflict, after the predetermined number of times of retry configuration, just return to request and other user's operating collision, the message of execution that just a moment,please; Meanwhile, by the application situation that provides the monitoring interface of application lock to show and manage lock, the special circumstances that break down for system, allow user oneself manage operation to lock.
According to a further aspect of the invention, also propose a kind of Parallel access control device of business operation, having comprised: single Service Processing Unit, the operation requests of sending based on client for service end, is placed on single business procession by the control of access lock; Access lock classification application unit, for service end, based on default multiple business operations business operation corresponding with this operation requests, classification application access is locked; Access lock application result performance element, the application result for service end based on access lock, carries out corresponding operating.In this technical scheme, by the refinement control to access lock, can greatly reduce the Concurrency Access conflict of business, meanwhile, also can bring good experience to user.
In technique scheme, preferably, described single Service Processing Unit, specifically comprises: operation requests transceiver module, send operation requests for client, and service end receives the operation requests that client is sent; Current business execution module, carries out the corresponding current business of operation requests of sending with client for service end, a business operation in the corresponding default multiple business operations of this current business.In this technical scheme, by the control of access lock is placed on single business procession, can make the time locking become shorter, and the situation that occurs access conflict between user is minimized.
In technique scheme, preferably, described access lock classification application unit, specifically comprises: access lock application module, based on business operation corresponding to current execution business, apply for access lock for service end; Read lock module, in the time that the operation of this application access lock is read lock operation, judges whether to exist this access lock: if there is the operation of writing lock, and the operation failure of this application access lock; If when having the operation of read lock or not having this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock; Write lock module, for being while writing latching operation when the operation of this application access lock, judge whether to exist this access lock: if there is the operation of writing the operation of lock or having read lock, the operation failure of this application access lock; If while there is not this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock; Access lock application result feedback module, for based on read lock module and the result of writing lock module, feeds back to access lock application result performance element.In this technical scheme, the classification refinement of access lock, is divided into read lock and writes lock, and multiple business operations, in the time carrying out read lock operation, are correlated with and are not conflicted.
In technique scheme, preferably, described access lock application result performance element, specifically comprises: processing module when access lock apply for successfully, lock while applying for successfully this business operation execution accessing database for accessing; And, while end for this business operation accessing database, discharge access lock.In this technical scheme, in the time that business operation does not clash in due course, business is normally carried out.
In technique scheme, preferably, described access lock application result performance element, specifically also comprise: processing module when access lock apply for unsuccessfully, for accessing lock while applying for unsuccessfully, service end wait is preset after duration, automatically retry application access lock preset times, according to the result of retry application access lock, carry out following operation: if retry application access is locked successfully in preset times, this business operation normally carries out; If retry application access lock is unsuccessful in preset times, return to current operation request and other user's operating collision, the message that just a moment,please carries out to client; The monitoring interface that client is locked by application shows and manages the application situation of corresponding access lock, and for corresponding service, situation about breaking down is carried out in operation, allows user oneself carry out corresponding access lock and manages operation.In this technical scheme, by after makeing mistakes, wait for a very little time, and again apply for the mode of access lock, carry out automatic retry, can not make mistakes under conflict situations between reaching in due course, business is normally carried out; And for the situation of long-time conflict, after the predetermined number of times of retry configuration, just return to request and other user's operating collision, the message of execution that just a moment,please; Meanwhile, by the application situation that provides the monitoring interface of application lock to show and manage lock, the special circumstances that break down for system, allow user oneself manage operation to lock.
By above technical scheme, can be on the Parallel access control mode basis of existing business operation, the access control that makes full use of single business operation completes the Parallel access control of multi-service operation, sets up general, the unified access control thinking of the Parallel access control towards multi-service operation of single business operation participation.
 
Brief description of the drawings
Fig. 1 shows the process flow diagram of the concurrent access control method of business operation according to an embodiment of the invention;
Fig. 2 shows the detail flowchart of the concurrent access control method of business operation according to an embodiment of the invention;
Fig. 3 shows the failed processing flow chart of access lock application according to an embodiment of the invention;
Fig. 4 shows the classification refinement process flow diagram of access lock according to an embodiment of the invention;
Fig. 5 shows the block diagram of the Parallel access control device of business operation according to an embodiment of the invention.
 
Embodiment
In order more clearly to understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, in the situation that not conflicting, the feature in the application's embodiment and embodiment can combine mutually.
A lot of details are set forth in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not subject to the restriction of following public specific embodiment.
Fig. 1 shows the process flow diagram of the concurrent access control method of business operation according to an embodiment of the invention.
As shown in Figure 1, the concurrent access control method of business operation according to an embodiment of the invention, comprising: step 102: the operation requests that service end is sent based on client, is placed on single business procession by the control of access lock; Step 104: service end is based on the business operation corresponding with this operation requests in default multiple business operations, and classification application access is locked; Step 106: the application result of service end based on access lock, carry out corresponding operating.In this technical scheme, by the refinement control to access lock, can greatly reduce the Concurrency Access conflict of business, meanwhile, also can bring good experience to user.
In technique scheme, preferably, as shown in Figure 2 and Figure 4, step 102 specifically comprises: step 202: client is sent operation requests, and service end receives the operation requests that client is sent; Step 204: service end is carried out the corresponding current business of operation requests of sending with client, a business operation in the corresponding default multiple business operations of this current business.In this technical scheme, by the control of access lock is placed on single business procession, can make the time locking become shorter, and the situation that occurs access conflict between user is minimized.
In technique scheme, preferably, as shown in Figure 2 and Figure 4, step 104 specifically comprises: step 206: service end is based on business operation corresponding to current execution business, and application access is locked; Further, service end is based on business operation corresponding to current execution business, and the flow process of application access lock, also comprises: in the time that the operation of this application access lock is read lock operation, judge whether to exist this access lock: if there is the operation of writing lock, the operation failure of this application access lock; If when having the operation of read lock or not having this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock; When the operation of this application access lock is while writing latching operation, judge whether to exist this access lock: if there is the operation of writing the operation of lock or having read lock, the operation failure of this application access lock; If while there is not this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock.In this technical scheme, the classification refinement of access lock, is divided into read lock and writes lock, and multiple business operations, in the time carrying out read lock operation, are correlated with and are not conflicted.
In technique scheme, preferably, as shown in Figure 2, step 106 specifically comprises: step 208: when access lock is applied for successfully, this business operation is carried out accessing database; Step 210: when this business operation accessing database finishes, discharge access lock.In this technical scheme, in the time that business operation does not clash in due course, business is normally carried out.
In technique scheme, preferably, as shown in Figure 2, step 106 specifically also comprises: step 212: when access lock is applied for unsuccessfully, service end is waited for after default duration, retry application access lock preset times automatically, according to the result of retry application access lock, execution step 214 or execution step 2161; Step 214: if retry application access is locked successfully in preset times, this business operation normally carries out; Step 216: if retry application access lock is unsuccessful in preset times, return to current operation request and other user's operating collision, the message that just a moment,please carries out to client; Step 218: the monitoring interface that client is locked by application shows and manage the application situation of corresponding access lock, for corresponding service, situation about breaking down is carried out in operation, allows user oneself carry out corresponding access lock and manages operation.In this technical scheme, by after makeing mistakes, wait for a very little time, and again apply for the mode of access lock, carry out automatic retry, can not make mistakes under conflict situations between reaching in due course, business is normally carried out; And for the situation of long-time conflict, after the predetermined number of times of retry configuration, just return to request and other user's operating collision, the message of execution that just a moment,please; Meanwhile, by the application situation that provides the monitoring interface of application lock to show and manage lock, the special circumstances that break down for system, allow user oneself manage operation to lock.
Fig. 5 shows the block diagram of the Parallel access control device of business operation according to an embodiment of the invention.
As shown in Figure 5, the block diagram of the Parallel access control device of business operation according to an embodiment of the invention, comprise: single Service Processing Unit 302, the operation requests of sending based on client for service end, is placed on single business procession by the control of access lock; Access lock classification application unit 304, for service end, based on default multiple business operations business operation corresponding with this operation requests, classification application access is locked; Access lock application result performance element 306, the application result for service end based on access lock, carries out corresponding operating.In this technical scheme, by the refinement control to access lock, can greatly reduce the Concurrency Access conflict of business, meanwhile, also can bring good experience to user.
In technique scheme, preferably, single Service Processing Unit 302, specifically comprises: operation requests transceiver module 3021, send operation requests for client, and service end receives the operation requests that client is sent; Current business execution module 3022, carries out the corresponding current business of operation requests of sending with client for service end, a business operation in the corresponding default multiple business operations of this current business.In this technical scheme, by the control of access lock is placed on single business procession, can make the time locking become shorter, and the situation that occurs access conflict between user is minimized.
In technique scheme, preferably, access lock classification application unit 304, specifically comprises: access lock application module 3041, for service end, based on business operation corresponding to current execution business, application access is locked; Read lock module 3042, in the time that the operation of this application access lock is read lock operation, judges whether to exist this access lock: if there is the operation of writing lock, and the operation failure of this application access lock; If when having the operation of read lock or not having this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock; Write lock module 3043, for being while writing latching operation when the operation of this application access lock, judge whether to exist this access lock: if there is the operation of writing the operation of lock or having read lock, the operation failure of this application access lock; If while there is not this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock; Access lock application result feedback module 3044, for based on read lock module and the result of writing lock module, feeds back to access lock application result performance element.In this technical scheme, the classification refinement of access lock, is divided into read lock and writes lock, and multiple business operations, in the time carrying out read lock operation, are correlated with and are not conflicted.
In technique scheme, preferably, access lock application result performance element 306, specifically comprises: the processing module 3061 when access lock apply for successfully, lock while applying for successfully this business operation execution accessing database for accessing; And, while end for this business operation accessing database, discharge access lock.In this technical scheme, in the time that business operation does not clash in due course, business is normally carried out.
In technique scheme, preferably, access lock application result performance element 306, specifically also comprise: the processing module 3062 when access lock apply for unsuccessfully, for accessing lock while applying for unsuccessfully, service end wait is preset after duration, automatically retry application access lock preset times, according to the result of retry application access lock, carry out following operation: if retry application access is locked successfully in preset times, this business operation normally carries out; If retry application access lock is unsuccessful in preset times, return to current operation request and other user's operating collision, the message that just a moment,please carries out to client; The monitoring interface that client is locked by application shows and manages the application situation of corresponding access lock, and for corresponding service, situation about breaking down is carried out in operation, allows user oneself carry out corresponding access lock and manages operation.In this technical scheme, by after makeing mistakes, wait for a very little time, and again apply for the mode of access lock, carry out automatic retry, can not make mistakes under conflict situations between reaching in due course, business is normally carried out; And for the situation of long-time conflict, after the predetermined number of times of retry configuration, just return to request and other user's operating collision, the message of execution that just a moment,please; Meanwhile, by the application situation that provides the monitoring interface of application lock to show and manage lock, the special circumstances that break down for system, allow user oneself manage operation to lock.
Technical scheme of the present invention, relates generally to method and the device of a kind of Parallel access control of database related management software, particularly its business operation.
In order to address the above problem, the present invention has increased by 3 improvement projects on the basis of the above-mentioned second way:
(1) the granularity of access lock, is locked in user's operation and there is no need for adding access, and a user's operation can comprise multiple concrete business processions, and these multiple business processions have plenty of need to carry out lock control, and what have does not need.By the control of access lock is placed on single business procession, make the time locking become shorter, between user, occur that the situation of access conflict minimizes.
(2) the failed processing of access lock application, in the time occurring that access lock is applied for unsuccessfully, the end that generally another business operation can be very fast, now, the message that the request of directly returning cannot be processed gives user bad interactive experience.And by after makeing mistakes, wait for a very little time, and and again apply for the mode of access lock, carry out automatic retry, can not make mistakes under conflict situations between reaching in due course, business is normally carried out.And for the situation of long-time conflict, after the predetermined number of times of retry configuration, just return to request and other user's operating collision, and the message of execution that just a moment,please, corresponding principle can be referring to the relevant statement in Fig. 3.
(3) the classification refinement of access lock, is divided into read lock and writes lock, and multiple business operations, in the time carrying out read lock operation, are correlated with and are not conflicted.If having a business is that while writing lock, other business can not operate simultaneously.Concrete logic is the logical diagram that locks, can be referring to the relevant statement in Fig. 4.
Meanwhile, by the application situation that provides the monitoring interface of application lock to show and manage lock, the special circumstances that break down for system, allow user oneself manage operation to lock.
Empirical tests, technical scheme of the present invention, in the ERP of UFSOFT product U9, implement after the technical program, not only reduce greatly the Concurrency Access conflict of business, meanwhile, also make to have brought good product experience to user, brought obvious effect for the raising of the concurrent user number of product.
More than be described with reference to the accompanying drawings technical scheme of the present invention, considered the solution that there is no easy, the unified Parallel access control for complicated business operation in correlation technique.Existing Parallel access control cannot complete the Parallel access control process that complicated business operation participates in.Therefore, the present invention proposes a kind of concurrent access control method of business operation and a kind of Parallel access control device of business operation, can be on the Parallel access control mode basis of existing business operation, the access control that makes full use of single business operation completes the Parallel access control of multi-service operation, sets up general, the unified access control thinking of the Parallel access control towards multi-service operation of single business operation participation.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a concurrent access control method for business operation, is characterized in that, comprising:
Step 102: the operation requests that service end is sent based on client, is placed on single business procession by the control of access lock;
Step 104: service end is based on the business operation corresponding with this operation requests in default multiple business operations, and classification application access is locked;
Step 106: the application result of service end based on access lock, carry out corresponding operating.
2. the concurrent access control method of business operation according to claim 1, is characterized in that, described step 102 specifically comprises:
Step 202: client is sent operation requests, service end receives the operation requests that client is sent;
Step 204: service end is carried out the corresponding current business of operation requests of sending with client, a business operation in the corresponding default multiple business operations of this current business.
3. the concurrent access control method of business operation according to claim 1 and 2, is characterized in that, described step 104 specifically comprises:
Step 206: service end is based on business operation corresponding to current execution business, and application access is locked; Further,
Described service end is based on business operation corresponding to current execution business, and the flow process of application access lock, also comprises:
In the time that the operation of this application access lock is read lock operation, judge whether to exist this access lock: if there is the operation of writing lock, the operation failure of this application access lock; If when having the operation of read lock or not having this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock;
When the operation of this application access lock is while writing latching operation, judge whether to exist this access lock: if there is the operation of writing the operation of lock or having read lock, the operation failure of this application access lock; If while there is not this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock.
4. the concurrent access control method of business operation according to claim 3, is characterized in that, described step 106 specifically comprises:
Step 208: when access lock is applied for successfully, this business operation is carried out accessing database;
Step 210: when this business operation accessing database finishes, discharge access lock.
5. the concurrent access control method of business operation according to claim 4, is characterized in that, described step 106 specifically also comprises:
Step 212: when access lock is applied for unsuccessfully, service end is waited for after default duration, retry application access lock preset times automatically, according to the result of retry application access lock, execution step 214 or execution step 2161;
Step 214: if retry application access is locked successfully in preset times, this business operation normally carries out;
Step 216: if retry application access lock is unsuccessful in preset times, return to current operation request and other user's operating collision, the message that just a moment,please carries out to client;
Step 218: the monitoring interface that client is locked by application shows and manage the application situation of corresponding access lock, for corresponding service, situation about breaking down is carried out in operation, allows user oneself carry out corresponding access lock and manages operation.
6. a Parallel access control device for business operation, is characterized in that, comprising:
Single Service Processing Unit, the operation requests of sending based on client for service end, is placed on single business procession by the control of access lock;
Access lock classification application unit, for service end, based on default multiple business operations business operation corresponding with this operation requests, classification application access is locked;
Access lock application result performance element, the application result for service end based on access lock, carries out corresponding operating.
7. the Parallel access control device of business operation according to claim 6, is characterized in that, described single Service Processing Unit, specifically comprises:
Operation requests transceiver module, sends operation requests for client, and service end receives the operation requests that client is sent;
Current business execution module, carries out the corresponding current business of operation requests of sending with client for service end, a business operation in the corresponding default multiple business operations of this current business.
8. according to the Parallel access control device of the business operation described in claim 6 or 7, it is characterized in that, described access lock classification application unit, specifically comprises:
Access lock application module, for service end, based on business operation corresponding to current execution business, lock is accessed in application;
Read lock module, in the time that the operation of this application access lock is read lock operation, judges whether to exist this access lock: if there is the operation of writing lock, and the operation failure of this application access lock; If when having the operation of read lock or not having this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock;
Write lock module, for being while writing latching operation when the operation of this application access lock, judge whether to exist this access lock: if there is the operation of writing the operation of lock or having read lock, the operation failure of this application access lock; If while there is not this access lock, the operation success of this application access lock, increases the lock information corresponding with the operation of this application access lock;
Access lock application result feedback module, for based on read lock module and the result of writing lock module, feeds back to access lock application result performance element.
9. the Parallel access control device of business operation according to claim 8, is characterized in that, described access lock application result performance element, specifically comprises:
Processing module when access lock apply for successfully, locks while applying for successfully this business operation execution accessing database for accessing; And, while end for this business operation accessing database, discharge access lock.
10. the Parallel access control device of business operation according to claim 9, is characterized in that, described access lock application result performance element, specifically also comprises:
Processing module when access lock apply for unsuccessfully, for accessing lock while apply for unsuccessfully, service end is waited for after default duration, retry application access lock preset times automatically, the result of locking according to retry application access, operates below execution:
If retry application access is locked successfully in preset times, this business operation normally carries out;
If retry application access lock is unsuccessful in preset times, return to current operation request and other user's operating collision, the message that just a moment,please carries out to client;
The monitoring interface that client is locked by application shows and manages the application situation of corresponding access lock, and for corresponding service, situation about breaking down is carried out in operation, allows user oneself carry out corresponding access lock and manages operation.
CN201410284930.4A 2014-06-24 2014-06-24 The concurrent access control method and device of business operation Active CN104077111B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410284930.4A CN104077111B (en) 2014-06-24 2014-06-24 The concurrent access control method and device of business operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410284930.4A CN104077111B (en) 2014-06-24 2014-06-24 The concurrent access control method and device of business operation

Publications (2)

Publication Number Publication Date
CN104077111A true CN104077111A (en) 2014-10-01
CN104077111B CN104077111B (en) 2018-03-02

Family

ID=51598386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410284930.4A Active CN104077111B (en) 2014-06-24 2014-06-24 The concurrent access control method and device of business operation

Country Status (1)

Country Link
CN (1) CN104077111B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060060A (en) * 2016-06-22 2016-10-26 努比亚技术有限公司 Method and system for client to obtain lock
CN107105064A (en) * 2017-06-02 2017-08-29 上海艾融软件股份有限公司 The method for pushing and system of a kind of Transaction Information
CN107135240A (en) * 2016-02-29 2017-09-05 华为技术有限公司 Order distribution method, apparatus and system in a kind of distributed system
CN107360117A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 The method, apparatus and system of data processing
CN108459913A (en) * 2017-12-26 2018-08-28 阿里巴巴集团控股有限公司 data parallel processing method, device and server
CN110851243A (en) * 2019-11-05 2020-02-28 东软集团股份有限公司 Flow access control method and device, storage medium and electronic equipment
CN112231131A (en) * 2020-09-28 2021-01-15 北京金山云网络技术有限公司 Method, device and equipment for realizing database lock and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5742813A (en) * 1994-11-10 1998-04-21 Cadis, Inc. Method and apparatus for concurrency in an object oriented database using lock inheritance based on class objects
CN101364230A (en) * 2008-09-24 2009-02-11 金蝶软件(中国)有限公司 Concurrent access control method and device
CN103019651A (en) * 2012-08-02 2013-04-03 青岛海信传媒网络技术有限公司 Parallel processing method and device for complex tasks
CN103458036A (en) * 2013-09-03 2013-12-18 杭州华三通信技术有限公司 Access device and method of cluster file system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5742813A (en) * 1994-11-10 1998-04-21 Cadis, Inc. Method and apparatus for concurrency in an object oriented database using lock inheritance based on class objects
CN101364230A (en) * 2008-09-24 2009-02-11 金蝶软件(中国)有限公司 Concurrent access control method and device
CN103019651A (en) * 2012-08-02 2013-04-03 青岛海信传媒网络技术有限公司 Parallel processing method and device for complex tasks
CN103458036A (en) * 2013-09-03 2013-12-18 杭州华三通信技术有限公司 Access device and method of cluster file system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SHARPYUCE: "多线程并发synchronized对象锁的控制与优化", 《HTTP://BLOG.CSDN.NET/SHARPYUCE/ARTICLE/DETAILS/10315123》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135240A (en) * 2016-02-29 2017-09-05 华为技术有限公司 Order distribution method, apparatus and system in a kind of distributed system
CN107135240B (en) * 2016-02-29 2020-12-15 华为技术有限公司 Method, device and system for distributing commands in distributed system
CN112491986A (en) * 2016-02-29 2021-03-12 华为技术有限公司 Method, device and system for distributing commands in distributed system
CN107360117A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 The method, apparatus and system of data processing
CN107360117B (en) * 2016-05-09 2020-03-13 阿里巴巴集团控股有限公司 Data processing method, device and system
CN106060060A (en) * 2016-06-22 2016-10-26 努比亚技术有限公司 Method and system for client to obtain lock
CN107105064A (en) * 2017-06-02 2017-08-29 上海艾融软件股份有限公司 The method for pushing and system of a kind of Transaction Information
CN108459913A (en) * 2017-12-26 2018-08-28 阿里巴巴集团控股有限公司 data parallel processing method, device and server
CN108459913B (en) * 2017-12-26 2022-06-10 创新先进技术有限公司 Data parallel processing method and device and server
CN110851243A (en) * 2019-11-05 2020-02-28 东软集团股份有限公司 Flow access control method and device, storage medium and electronic equipment
CN110851243B (en) * 2019-11-05 2022-04-12 东软集团股份有限公司 Flow access control method and device, storage medium and electronic equipment
CN112231131A (en) * 2020-09-28 2021-01-15 北京金山云网络技术有限公司 Method, device and equipment for realizing database lock and readable storage medium

Also Published As

Publication number Publication date
CN104077111B (en) 2018-03-02

Similar Documents

Publication Publication Date Title
CN104077111A (en) Concurrent access control method and device for service operations
CN107077382B (en) System and method for transaction recovery in a multi-tenant application server environment
US11061884B2 (en) Method and system to accelerate transaction commit using non-volatile memory
US10642704B2 (en) Storage controller failover system
CN107741977B (en) System and method for synchronizing actions in the background of an application
US20120084341A1 (en) Presenting availability statuses of synchronized objects
CN104793988A (en) Cross-database distributed transaction implementation method and device
US9313269B2 (en) Blending single-master and multi-master data synchronization techniques
CN103095686B (en) Focus metadata access control method and service device
CN108874558A (en) News subscribing method, electronic device and the readable storage medium storing program for executing of distributed transaction
CN112039970B (en) Distributed business lock service method, server, system and storage medium
CN109739435B (en) File storage and updating method and device
CN106156231A (en) A kind of website disaster recovery method, Apparatus and system
CN107832159A (en) Manage the method and computer-readable recording medium of distributed lock
CN105635310A (en) Access method and device for storage resource
CN100550894C (en) The N road is shared the efficient lock management of flash copy in the storage system
US8438303B2 (en) Audit logging and role based security using one way proxy architecture
US20210132886A1 (en) Printing system, server, and printing method
US9612776B2 (en) Dynamically updated user data cache for persistent productivity
US10514992B1 (en) Disaster recovery specific configurations, management, and application
US11449241B2 (en) Customizable lock management for distributed resources
US8204853B2 (en) Maintaining client data integrity in a distributed environment using asynchronous data submission
US11138198B2 (en) Handling of unresponsive read only instances in a reader farm system
US20130144842A1 (en) Failover and resume when using ordered sequences in a multi-instance database environment
CN110659303A (en) Read-write control method and device for database nodes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant