BackgroundService vs IHostedService vs Hangfire for background jobs in .NET 11
Pick BackgroundService for in-process loops, raw IHostedService when you need fine lifecycle control, and Hangfire when jobs must survive a restart. A decision matrix with code and the one gotcha that picks for you.