I have a hazelcast Queue (shared across the server instances) which has 1000's of records in it. Records are some kind of Jobs (like sending email, SMS etc). I need to process these records by picking them from the queue. To make it fast I am thinking of using executor service so that records get processed by multiple threads asynchronously.
This application will be deployed on multiple servers so i am bit confused with the processing order of records in the queue multiple servers. How should I configure my executor so that it pick up the records from queue and process them. Do i need to set up my executor to get invoked after every second so it keep hitting fetching the records from processing.
I am not sure if I am ble to explain the problem properly but just trying to use the executor service on the shared Queue (across server instances) .
Thanks in Advance!!