~/talk

Tactics for Building Background Services in .NET

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [dotnet]
slides:none on file

Compares concrete tactics: using IHostedService for reusable background loops (demo deletes temp files), installing as a Windows Service or Systemd unit, running hosted services inside ASP.NET Core, scheduling with Quartz, using HangFire with a SQL-backed HangFire UI and automatic retries, and moving to Azure Functions for cloud scale (example: processing 4 million items in ~30 seconds). Notes pitfalls: SMTP caused duplicate charges, terabytes of forgotten blobs prompted a cleanup job, HangFire needs a durable store (SQL) and can be separated into job servers.

AI-written summary · about

  1. 0:00Introduction
  2. 7:30Speaker introduction
  3. 10:42Why background services matter
  4. 11:25Types of background tasks
  5. 14:17Hosting options
  6. 16:43Introducing .NET hosted services
  7. 20:55Building Windows services
  8. 22:19Demo: Windows service
  9. 26:56Windows services pros and cons
  10. 29:03ASP.NET Core hosted services
  11. 30:06Demo: ASP.NET Core service
  12. 32:41Scheduling with Quartz.NET
  13. 34:48Demo: Quartz.NET
  14. 39:45Introducing Hangfire
  15. 41:55Demo: Hangfire setup
  16. 51:37Hangfire pros and cons
  17. 53:05Azure Functions for tasks
  18. 55:10Demo: Azure Functions trigger
  19. 58:44Azure Functions pros and cons
  20. 59:26Best practices and closing
~/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.