~/talk

The Background on Background Tasks in .NET Core

Talkat NDC Sydney 2020 · 2020-08-31..09-03· [devops-and-delivery]
slides:none on file

Compares concrete options: IHostedService, BackgroundService, Worker Service, and Hangfire with examples and pitfalls. Shows a Redis cache refresher running on a five‑second loop, explains that awaiting a long start in StartAsync blocks Kestrel from listening, and notes StopAsync gives about five seconds for graceful shutdown. Demonstrates Hangfire persisting jobs to SQL Server, a dashboard, automatic retries (default ten with exponential backoff) and concurrency limits. Covers worker services as a console template runnable as Windows Service or systemd and warns about idempotency when scaling out.

AI-written summary · about

  1. 0:00Intro
  2. 2:35What problem do background tasks solve
  3. 7:18What is an IHostedService?
  4. 16:11How does an IHostedService work?
  5. 22:03What is a Background Service?
  6. 25:23How does a Background Service work?
  7. 28:10When do I use Background Service?
  8. 29:09When do I NOT use Background Service?
  9. 31:50What is a WorkerService?
  10. 36:17How does a WorkerService work?
  11. 36:46How do I host WorkerServices?
  12. 37:17When do I use WorkerServices?
  13. 38:28When do I NOT use WorkerServices?
  14. 40:12What is Hangfire?
  15. 48:47How does Hangfire work?
  16. 49:31When do I use Hangfire?
  17. 49:56When do I NOT use Hangfire?
  18. 50:34Cloud options
  19. 51:40Takeaways
  20. 51:59Resources
~/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.