A completely serverless, high-precision scheduler for ad hoc jobs.
Send a POST request the to scheduler endpoint with at least the following payload:
{
"endpoint": "http://example.com/my-webhook",
"scheduleAt": "2021-08-21T22:00:00.000+0200"
}
The scheduler will make a HTTP request to the defined endpoint soon after the timestamp.
Job details are stored in DynamoDB while the scheduling is managed by a combination of Eventbridge schedules and SQS' Message Delays to reach a precision close to 1 second while maintaining a serverless approach that truly scales.
⚠ Attention
The scheduler exposes a public API that can be used by anyone. If you intend on deploying this project to production you should add an authorizer of your choice to the API Gateway.
-
Clone this repo
-
Copy
.example.env
to.env
. Modify as you see fit. -
Search-replace
irish-luck
inMakeFile
with the name of your S3 bucket. -
make deploy
If you're not comfortable running your own service there are hosted schedulers that will do it for you. 💸