TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Dynamic Interval Cron

2 点作者 ed1ted超过 3 年前
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.<p>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

komon超过 3 年前
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