Ask HN: Dynamic Interval Cron

2 points by ed1ted ↗ HN
I have a need for calling a function hosted on aws lambda based on dynamic interval. The function usually needs to be called for few hours a day to do some data processing. Because I’m calling external services, sometimes I would call this function on 5 minute interval or could be longer if I run into rate limit issues. So I’m thinking of writing a service which would allow the endpoints to pass back the time (eg 5m or 1h) as a response header to define when to call the function again.

I know it’s very specific use case but is this something that can be extended for other uses cases? Trying to figure out if it’s worth building a micro SaaS

1 comment

[ 4.2 ms ] story [ 9.7 ms ] thread
Only do this if you a) love chasing down bug reports of lambdas firing at 6 minutes rather than 5 or b) make it really, really clear in your marketing that the only guarantee is firing _after_ the given interval