I have developed an WCF application in VB.NET which fetches records(unique) one by one from database (for now MS ACCESS, later it will be moved to SQL) and work on that and update the same record accordingly. Now I want to run multiple instance of this application on multiple virtual server, I am afraid that at any point of time more than one instance of the application might pick the same record and result an error. How can I avoid picking up same record?
I have tried updating a field while picking up the record and check for the value in that field while picking up records to know whether that record has already been picked up by other instance of the application. As of now it has worked when I am running multiple instance in the same server. Not sure whether it will work while working on different server running simultaneously.