~/talk

Background Services in ASP.NET Core and .NET

Talkat NDC London 2024 · 2024-01-29..02-02· [microservices, devops-and-delivery]
slides:none on file

Demonstrates turning a console app into a long‑running host using Microsoft.Extensions.Hosting, registers hosted work via BackgroundService, and shows the worker service template, container deployment, and new .NET 8 options to start/stop services concurrently. Builds a channel-based producer/consumer demo and a two‑service pipeline using S3 + SQS (localstack) that successfully moves upload processing off the request path. Covers gotchas: blocking start methods, fire‑and‑forget risks, synchronous work-before-first-await and Task.Yield as a workaround, plus the niche IHostedLifecycleService hooks.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54ASP.NET Core Host
  3. 8:08Console app to service
  4. 11:18Host internals lifecycle
  5. 22:54Basic background service
  6. 33:34Worker Service template
  7. 35:59Host lifecycle recap
  8. 40:09Offload work from requests
  9. 42:11Queue processing with services
  10. 47:27Out-of-process queue processing
  11. 51:39Real-world queue demo
  12. 52:02Exception handling in services
  13. 54:53Graceful shutdown draining
  14. 55:53Common pitfalls gotchas
  15. 56:36Key takeaways best practices
  16. 59:01Q&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.