News for hackers. Stuff that matters.
Re:Deno Cron by aleksiy123 on Wednesday November 29, 2023 @12:52PM (#38462617)
Nice, I was just wondering if there was an opportunity for a product similar to vercel for batch jobs.

This isn't quite that but close.

From my experience there 5 main components for larger scale system.

- Request server

- database

- queue

- background worker

- offline batch jobs

I feel like so far serverless has the first 3 fairly well developed but the last two are still underdeveloped.

But maybe I'm just not aware of other solutions?

Re:Deno Cron by danfarrelly on Wednesday November 29, 2023 @01:24PM (#38463079)
This is pretty much what Inngest is (https://www.inngest.com/). Runs on Deno as well.
Re:Deno Cron by aleksiy123 on Wednesday November 29, 2023 @02:40PM (#38464191)
Ingest is definitely nice. Its design is an orchestrator/scheduler where you offload your workers as serverless functions.

The only issue is for background jobs you need to design it in such way to not run in to timeouts.

Which makes it slightly more complex then just having a single executable running periodically.

There is also https://www.defer.run/ which run your code on their infra and don't have timeouts. But they only support node/bun at the moment.

Re:Deno Cron by danfarrelly on Wednesday November 29, 2023 @04:52PM (#38465827)
We'll also be supporting long-running services as well in the near future which subscribe to updates from Inngest, rather than get invoked via HTTP.

Currently, to get beyond the ~5 min limit per step, you'd need to deploy to something non-serverless like Fly.io, Render, or your own instance running Express.js or similar.

Re:Deno Cron by rubenfiszel on Wednesday November 29, 2023 @03:30PM (#38464858)
That's exactly what windmill.dev is (https://windmill.dev)
Re:Deno Cron by TheIronYuppie on Wednesday November 29, 2023 @01:59PM (#38463611)
This is really interesting - we’ve tried really hard to solve some of these with Bacalhau[1] - a much simpler distributed compute platform. Would love your feedback!

[1] https://github.com/bacalhau-project/bacalhau

Disclosure: I confounded Bacalhau

Re:Deno Cron by aleksiy123 on Wednesday November 29, 2023 @03:40PM (#38464994)
Huh, this is pretty cool.

I took a quick look through the docs and from what I understand you can just submit docker containers to be run on a cluster. The default one is a public cluster. In some way it seems similar to Google Borg.

What I don't understand though is do you have to pay? Who provides the compute?

Maybe possible to build a vercel type service on top of the private cluster where people can just submit their code?

Re:Deno Cron by TheIronYuppie on Friday December 01, 2023 @12:36PM (#38489524)
Thanks! The idea is that it’s up to you - we offer a demo network, and there are ISPs who are interested in doing this privately, but the default is to allow you to trivially setup your own cluster (much easier and more maintainable than many cluster providers today - no hate! Just different)
Re:Deno Cron by goostavos on Wednesday November 29, 2023 @01:03PM (#38462793)
EventBridge + Lambda or ECS gets you pretty far for the last two imo
Re:Deno Cron by vvpan on Wednesday November 29, 2023 @01:24PM (#38463080)
But then you need to set it up. On small fast moving teams having something that just works from the code is a massive win and I'd rather not cross the infra/code barrier.
Re:Deno Cron by slig on Wednesday November 29, 2023 @02:02PM (#38463645)
You should check Windmill.dev.
Re:Deno Cron by aleksiy123 on Wednesday November 29, 2023 @02:43PM (#38464239)
I will check out windmill. Though it does look somewhat complex.

One tangentially related is I'm looking for somewhere to just run a python script once a day.

I'll see if I can do that with windmill.

Re:Deno Cron by jrklabs_com on Wednesday November 29, 2023 @04:23PM (#38465523)
We have been using a self-hosted Windmill instance for running batch processes in Production for a while now. It has been a very nice upgrade from cron jobs for us (adding captured job outputs, status info, ability to re-run jobs, etc).
Re:Deno Cron by kkoppenhaver on Wednesday November 29, 2023 @02:59PM (#38464440)
(disclaimer: Dev Advocate for Airplane)

Seems like that would be a good fit for Airplane's Schedules: https://www.airplane.dev/schedules.

It's pretty much as straightforward as deploying your Python script (and any dependencies with requirements.txt) and setting up your schedule for when you want it to run!

Re:Deno Cron by aleksiy123 on Wednesday November 29, 2023 @05:23PM (#38466113)
I will try this as well thank you!
Re:Deno Cron by slig on Wednesday November 29, 2023 @04:07PM (#38465340)
Yes, you can do that quite trivially on WM.
Re:Deno Cron by 8note on Wednesday November 29, 2023 @08:52PM (#38468262)
I'd add a 6th one:

- workflow system

Re:Deno Cron by mfateev on Thursday November 30, 2023 @01:13AM (#38470275)
Check out temporal.io. It has support for schedules as well.