You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pablo Cantero edited this page Oct 1, 2018
·
5 revisions
Design your workers to be idempotent
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.