DEV Community

Discussion on: A serverless solution to just-in-time scheduling

Collapse
 
m0ltzart profile image
Roman • Edited

You can use a step function with Wait step. Which can accept both relative seconds and absolute ISO timestamps.

docs.aws.amazon.com/step-functions...

Collapse
 
guiyome profile image
Guillaume Égée Serverless By Theodo

Step functions are probably the best way to schedule an isolated task.
However, to manage lots of scheduled events, you would create multiple step functions that are difficult to manage (unless you use a database to index them) and impossible to make evolve once created.
Using this CDK scheduler, the scheduling feature is managed by an isolated micro-service which is only responsible of its function: scheduling.

Collapse
 
adelegauvrit profile image
Adèle Gauvrit Serverless By Theodo

Thanks for the feedback Roman, I'll look into this solution as well for scheduling