Hello
I would like to know the best way to implement concurrency control in 3 tier application?
May first thought is:
- A client wants to edit a record from a dataset.
- send a request to the server asking a lock on that record
- the server accepts/denies the edit request based on lock table
Based on this scenario the locks should have a reference to both the record locked and client using that record.
The client has to send periodic keep alive messages to the server. The keep alive is used to free locked records in case we lost the client in meddle of editing operation.
I will be using Delphi with datasnap. Maybe this is a novice question but I have to ask!!