Currently I am working on a project where we have to send an SMS to all the users who are enrolled for auto-renewal, before 24 hours of their current expiration date that their subscription will be renewed.
Right after the moment the subscription expires and the auto-renewal is set on the account, we deduct certain amount from the customer's balance. Since the balance on the customer's account changes very quickly, we have to fire an event as soon as the subscription expires. We use an external service to check if the customer has enough balance to renew. So this check has to be asynchronous.
How can I run a job that runs continuously to loop through all the records in the table and fire an event that fetches the balance asynchronously?
We are using Mule, Spring and Hibernate and application runs on Tomcat.
Any suggestions on how to achieve this ?
Aucun commentaire:
Enregistrer un commentaire