AWS recently introduced Amazon EventBridge Scheduler, a new feature of Amazon EventBridge that enables organizations to create, run, and manage scheduled tasks at scale.
Amazon EventBridge is a serverless event bus that enables AWS services, Software-as-a-Service (SaaS), and custom applications to communicate with each other using events. The scheduler is the latest feature added to the service since its launch, with several updates including the schema registry and event replay.
Marcia VillalbaAs Senior Developer Advocate at Amazon Web Services explains in an AWS Compute blog post:
With EventBridge Scheduler, you can schedule tens of millions of one-off or recurring tasks across many AWS services without provisioning or managing the underlying infrastructure.
Source: https://aws.amazon.com/eventbridge/scheduler/
Developers can create schedules using the AWS CLI. Schedules specify when events and actions are triggered, automate IT and business processes, and provide scheduling capabilities within applications. The EventBridge scheduler allows developers to configure schedules down to 1 minute increments.
YanchoiAWS Serverless Hero, murmured:
It’s great to finally have an ad-hoc scheduling service on AWS. My only downside is that it’s minute and granular, but that doesn’t matter most of the time.
This feature provides at-least-once event delivery to targets, and allows you to set delivery windows, retries, time to hold events, and dead-letter queues (DLQs) to suit different delivery patterns. You can create schedules to coordinate). For example:
$ aws scheduler create-schedule --name SendEmailOnce \
--schedule-expression "at(2022-11-01T11:00:00)" \
--schedule-expression-timezone "Europe/Helsinki" \
--flexible-time-window "{\"Mode\": \"OFF\"}" \
--target "{\"Arn\": \"arn:aws:sns:us-east-1:xxx:test-chronos-send-email\", \"RoleArn\": \" arn:aws:iam::xxxx:role/sam_scheduler_role\" }"
See the User Guide for configuration details.
Past developers have used other means. Respondents in the Reddit thread said:
I’ve been using AWS rules as a scheduler for some time, but this scheduler they created doesn’t seem to be able to do everything a rule can do.
but, Mustafa Akinan AWS Community Builder, and Tweet:
I have been waiting for this service for a long time. For this reason, many of us have had to write custom schedulers. I am using SQS with time delay. This works, but it’s not ideal. Now you can remove some code and rejoice in peace.
haven’t received a reply yet Zafer GençkayaEngineering Manager, Atlassian’s OpsGenie, state:
Another nice use case for vendor locks – this one we’ve been waiting for a long time. A lot of backend logic becomes redundant. I’d also like to see one-off delivery support — for an additional fee, of course.
Amazon EventBridge Scheduler is now generally available in the US East (N. Virginia), US West (Oregon), US East (Ohio), EU (Ireland), EU (Frankfurt), EU (Stockholm), and Asia Pacific AWS regions. increase. (Sydney), Asia Pacific (Tokyo), and Asia Pacific (Singapore). Pricing details for the service are available on the pricing page.