
Explore why background services matter in .NET and how Hangfire enables reliable asynchronous work, from order creation to inventory checks, payments, and emails.
Explore on demand tasks and recurring or scheduled background tasks, such as transactional emails, payments, webhooks, data processing, monthly reports, and Azure Blob Storage cleanup.
What's coming soon in the course?
What's changed in the course since last time you were here?
This is a talk I presented at NDC London 2023 on building background services in .NET. There are many tactics covered in this talk, including HangFire!
Learn to set up an ASP.NET Core web app and a SQL Server database for Hangfire, including Docker-based installation, project creation, and installing Hangfire via dotnet add package.
Learn to integrate the Hangfire dashboard into an ASP.NET app, view real-time job dashboards, manage servers, queues, retries, and recurring jobs.
This module explores adding SQLite support for HangFire. While not officially supported, it's easy to do!
Understand how Hangfire treats a job as any class you build, with dependencies. See a web puller that fetches RSS feeds, parses items, outputs JSON, and downloads HTML to files.
Inject IBackgroundJobClient in a .NET Hangfire app to enqueue a job that fetches RSS item URLs async via a web puller and saves results to a temp path.
Explore how Hangfire handles errors, retries up to ten, and debugging via the dashboard, including 404s, HTTP request exceptions, and manual requeue or delete of failed jobs.
Explore cron syntax and five-element expressions used in HangFire. Learn how asterisks, slashes, and time fields define schedules from minutes to months with practical examples.
Trigger a reoccurring job on demand by refactoring code to call the reoccurring job manager from the pool endpoint, demonstrating on demand execution and verifying runs in the HangFire dashboard.
Worried about unauthorized users? Worry no more! Let's discuss how to protect your HangFire dashboard.
This comprehensive course is designed to teach you how to build background services in .NET using HangFire, a powerful open-source library that makes it easy to create and manage background jobs. Throughout the course, you'll learn from Kevin Griffin, a Microsoft MVP with over 17 years of experience in software development, who will guide you through the entire process, from setting up HangFire to building and managing background jobs.
With Kevin's guidance, you'll start by exploring the fundamental concepts of background jobs and how they can improve the performance and scalability of your .NET application. You'll then dive into HangFire and learn how to set it up and configure it for your needs. You'll learn how to create and manage background jobs using the HangFire dashboard and how to schedule recurring jobs that run automatically at specified intervals.
In addition to these core concepts, Kevin will also cover more advanced topics, such as handling errors that may occur during job execution, using HangFire with other .NET libraries and frameworks, and scaling background services to handle large volumes of jobs. You'll also learn best practices for building efficient and reliable background services that can help you optimize your application's performance and scalability.
By the end of the course, you'll have a deep understanding of how to build background services in .NET using HangFire, and you'll be ready to apply these skills to your projects. Whether you're a seasoned .NET developer looking to take your skills to the next level, or a newcomer to the world of background services, this course has something for everyone. So why wait? Sign up now and start building efficient and reliable background services in .NET today!