Below Snapshot
is current application flow
.
Current Flow
When user Logged
in at these multiple deployments
, then respective SMSAgent(java class) insert user info in database
, SMSHelper
is a java Scheduler
which reads data from database in its local queue,send SMS
and then update user status in database
.
Issue with this flow
Now,In above scenario, Multiple SMS is getting send to Single User
because database is common and both the notification helper takes contact details from database(which may be common) and send SMS to that user.
Existing Solution
Currently, solution to this problem is only available in oracle 11g where select query has for update skip locked support.
Expectation
How to achieve the same with all databases at application level and not at query level ?