Replies: 1 comment 2 replies
-
I like the idea. This is definitely something that many apps end up needing. Also, I feel fairly straightforward to implement. A common use case I see is needing to attach a payload to the scheduled notification, to provide context to the handler. I've seen this payload passed as query parameters on the target URL, and also as JSON to the target url. JSON feels more kosher to me, personally. So model might be:
Additionally, clients will need to be able to verify requests from hyper, so some sort of strategy will need to be implemented/documented for clients to check that the request came from hyper, and hasn't been tampered with. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
Many times, applications need to schedule things to happen in a re-occurring manner, giving the ability for the application to submit a scheduled job/task, that consists of criteria that identifies the time of notification and a target endpoint to notify, can allow applications to programmatically schedule job/tasks to be performed while coding the job/task via a web service endpoint.
Features
Model (What is a job/task)
Proposed Adapters
hyper-adapter-eventbridge uses AWS EventBridge to create scheduled Events + Lambda
See: https://aws.amazon.com/blogs/mt/build-scheduler-as-a-service-amazon-cloudwatch-events-amazon-eventbridge-aws-lambda/
hyper-adapter-cron uses a deno cron library and local persistent store (dndb) to create a scheduler service
See: https://github.com/rbrahul/deno_cron, https://deno.land/x/[email protected]
Beta Was this translation helpful? Give feedback.
All reactions