DEV Community

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

Collapse
 
seriousme profile image
Hans Klunder

What about creating a scheduled rule on EventBridge ?
Its only accurate up to a minute, so less exact than the Stepfunctions suggested ;-)

docs.aws.amazon.com/eventbridge/la...

Collapse
 
guiyome profile image
Guillaume Égée

Yes, cron or rate expressions are useful for recurring tasks, and are the simplest way to schedule tasks with a minute precision. In this use case, I agree that an EventBridge scheduled rule would be the best option!
However, this CDK constructs aims to address another use case : scheduling non-recurring events and be able to manage them. Thanks to the DynamoDB database, you create, delete, count scheduled events, a feature that you won't have with EventBridge nor StepFunctions.