I have a task like sending an email that I want to ensure is sent fault tolerant after saying that a user was created. Can I use Spring Retry & # 39; s
RetryContextCache to persist in some way in the task of sending the email, and if the application crashes before the email is sent, select the Spring Retry action from the cache and try again when the application starts again.
I use email sending as an example, but I suppose sending emails is securely idempotent. I would like this to be generic enough to "schedule" any type of task or service call similar to the outbox pattern used in microservice architectures, but use Spring Retry or perhaps Quartz as a backup store.