I have an application that loads a job every 60 seconds. The job polls a table in the database(NoSQL) and If a new row exists it starts some processing in the DB.
Now in order to avoid SPOF I load another instance of the application and I would like to avoid contention over the indicating record.
What are the best practices to avoid contention between multi processes that poll the DB?
(Are there any known/recommended FW)