4 ms·
An alternative would be to just use AWS lambda: > You can create a Lambda function and direct AWS Lambda to execute it on a regular schedule. You can specify a
by Zombieball 10y ago
An alternative would be to just use AWS lambda:
> You can create a Lambda function and direct AWS Lambda to execute it on a regular schedule. You can specify a fixed rate (for example, execute a Lambda function every hour or 15 minutes), or you can specify a Cron expression.
http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html http://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-e...
It would remove the need of infrastructure for "task workers". Although, depending on your stack / setup, it of course may be easier to have your application tier double as a task worker due to complicated dependencies or startup times.
Additionally, I am not sure if everyone is aware but SQS does offer FIFO delivery with guaranteed once-only "processing". There are some interesting caveats to this, definitely worth looking into though :)
- coredog64 10y agoYes, but... AWS Lambda has a limitation on the number of functions you can attach to a scheduled event. What this means is that you wind up with a shitload of 'every 5 minutes' schedulers that all need unique names. WTF Amazon?
- idbehold 10y agoHook up just one Lambda function to the scheduled event. And have it invoke other Lambda functions.
- deleted 10y ago[deleted]