Functions vs. Regular Service for Cron
jwaltz
PROOP

a year ago

Is there an advantage to using a Function instead of a regular service with a cron schedule?

Currently, I have a single typescript file as a regular service executed with Bun that runs as a cron job. Should I migrate this to the newly-released Function feature? It appears that a Function will wrap up the file in a Docker container, which is kind of already what the regular service does for a cron-triggered deploy?

Thanks

Solved

3 Replies

jwaltz
PROOP

a year ago

7440ea60-c734-47cc-ba5d-e8cabf480488


a year ago

a function on a cron schedule and a regular service on a cron schedule won't have any advantages over each other, at least cost wise.

functions are just a really easy way to spin up a quick service to do a simple task, they are billed the exact same as anything else


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...