Better HN
topnewbestaskshowjobs
Log inSign up

igorzi

18 karma · joined Apr 28, 2023 (3y ago) · 6 submissions

https://github.com/igorzi
Submissions

comment 2y ago · link · parent

If you need to manipulate state - you should use Deno KV or some other persistent database. V8 isolates are created on-demand to handle Deno.cron and Deno.serve requests, potentially in different regions. You should not make assumptions that the same isolate will be used to handle all requests.

comment 2y ago · link · parent

This is being worked on: https://github.com/denoland/deno/issues/21122. Should be available with the next Deno release.

comment 2y ago · link · parent

Yes, we're anticipating more spiky workloads because of this. Deno Deploy is already designed to handle spikes, but we also have a few additional mitigations in place for Cron. For example, we will limit concurrent dispatches for the same project/user/organization, which may slightly delay the execution of specific cron tasks.

comment 2y ago · link · parent

We're gathering more feedback for supporting self-hosted cron environment. Can you describe how you would use it?

comment 2y ago · link · parent

Not currently, but this is on the roadmap

comment 2y ago · link · parent

It currently runs in us-east by default. Specifying a region is on our roadmap.