I have serverless microservices using API gateway/lambda/dynamodb. We have a stream of measurements coming in from Kinesis and if an alarm condition is detected, it needs to be triggered after x seconds. What's the best way to trigger a task after x seconds in this case? X is configurable by the user for different conditions and cases.
Asked
Active
Viewed 85 times
1 Answers
0
Maybe this can help How do I delay processing of AWS Kinesis messages?
- use SQS delay message
- delay x seconds in lambda, if it is not too long(max 15min for a lambda to run)

izayoi
- 129
- 5
-
SQS delay would be a constant at the queue level. The delay here is configurable by the users – systemdebt Mar 31 '22 at 23:47
-
Besides the delay can be a lot longer than 15 mins. – systemdebt Jan 23 '23 at 05:51