IHostedService, BackgroundService, Worker Service, scoped services in background, Hangfire comparison


Not all work in a .NET application happens within an HTTP request.

Scheduled jobs, message queue consumers, cache warmers, health check pollers — these all run in the background, independently of the request pipeline.







...