~/talk

The Background on Background Tasks in .NET 6

slides:none on file

Demos cover four concrete approaches: IHostedService, BackgroundService, Worker Service, and Hangfire. Example implements a cache refresher backed by Redis and shows that IHostedService blocks startup if awaited, while BackgroundService cancels gracefully and avoids that footgun. Worker Service is the same background logic in a console app (host with systemd or Windows Service). Hangfire persists jobs to SQL Server or Redis, exposes a UI, and does Hangfire retries 10 times with exponential backoff and dead‑lettering; cloud options (Functions, Lambdas, Cloud Scheduler) are listed.

AI-written summary · about

  1. 0:00Background tasks in .NET 6
  2. 1:03Background tasks use cases
  3. 8:00IHostedService deep dive
  4. 15:05IHostedService pros and cons
  5. 19:22BackgroundService explained
  6. 26:25When to use BackgroundService
  7. 29:57WorkerService introduction
  8. 34:14Hosting WorkerService
  9. 37:43HangFire overview
  10. 47:31HangFire features
  11. 50:43Cloud alternatives
  12. 55:18Messaging buses vs tasks
  13. 1:00:34Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.