Replies: 1 comment 23 replies
-
You can implement delays longer than 15 min with subsequent dispatches using just php code. Downside: using multiple messages for a single message, but sqs messages are cheap anyway. |
Beta Was this translation helpful? Give feedback.
23 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a need to create an additional feature for SQS integration, specifically for adding a delay longer than 15 minutes? This could be achieved using AWS Step Functions and Lambda. For instance, in the configuration, we could introduce an option like "enable_long_term_delay" or "enable_aws_delay." When set to true, this option would route all jobs first through a Step Function to accommodate the extended delay, and then add them to SQS via Lambda.
What advantages does it add?
-You can easily remove/abort long/short-term delayed jobs because you can just stop the Step Function from executing and nothing will be sent to SQS.
-Easy processes management - via the AWS panel, you can see all StateMachine-related processes so if you are attaching many jobs to one object, you can easily add an ID to the StateMachine and you will have all jobs in one place.
Do you find this approach useful?
Beta Was this translation helpful? Give feedback.
All reactions