-
-
Notifications
You must be signed in to change notification settings - Fork 280
Best Practices
Pablo Cantero edited this page Oct 1, 2018
·
5 revisions
SQS provides at-least-once message delivery by default, which means each job you published could end up being delivered more than once by SQS. That's why it is very important that you design your workers to be idempotent (they should be aware that the job might be worked on or already completed by another worker). Shoryuken can NOT handle this case because different workers don't share the knowledge across different jobs so there is no way to detect the job duplication at shoryuken's level.
If idempotency is not an option in your application, have a look at FIFO queues, these calls may be used to reduce the likelihood of duplicate jobs.
Some references on FIFO queues: