Hacker News new | ask | show | jobs
by amir734jj 303 days ago
How is it different from hangfire?
2 comments

Hangfire is primarily a job scheduler. It is designed for running jobs at specific times or intervals, and it persists jobs in a database so they survive restarts. It comes with a dashboard, retries, and a lot of infrastructure around long‑term job management. That makes it powerful, but also heavier in terms of setup and overhead.

BusyBee is focused on lightweight background processing. Everything is in‑memory, with no external storage required. It is designed for scenarios where you want to enqueue a task and have it executed immediately in the background, without scheduling or persistence.

A practical example: if you are building an API that accepts file uploads and you want to process the file asynchronously after the request returns, BusyBee is a good fit. You just enqueue the job and it runs in the background right away. If instead you need to schedule a nightly cleanup job or ensure jobs survive application restarts, Hangfire would be the better choice.

So what happens if the application shuts down before the file is processed? I get the appeal of a simple solution, but I don't know if I can ever recall a situation where "push work to the background and no one cares what happens to it" is ok.
How is Hangfire different from the Azure DurableTask library?
- hangfire has very user friendly admin UI

- developer experience - hangfire simpler to use for simple scenarios (in many cases you can run an existing method in background with line of code)

- hangfire has some support for batches/delay/task dependency but DurableTask is way more full featured in my opinion

- hangfire has .net 4.8 framework support :(