![]() ![]() It stores all the information about our jobs – definitions, execution status, etc. It uses a couple of designated tables that Hangfire creates for us. Hangfire storage – This is our database.The client creates the job, serializes its definition, and makes sure to store it into our persistent storage. ![]() Hangfire client – These are the actual libraries inside our application.Let’s see what each component is responsible for: They are closely intertwined in the whole process and depend on each other. There are three main components of Hangfire architecture – the client, the server, and the storage. If a job fails, Hangfire will try to run it again as soon as possible. This feature helps make sure our jobs finish executing even if they run into a transient exception or if the dedicated application pool crashes. It supports multiple queue processing and we can also explicitly choose which queue we want to use for a specific job.īecause the persistent storage saves the job state, we also have a great bonus – job retries. Among other things, it’s notably easy to install and configure, it uses persistent storage and it has a nice UI dashboard to check up on our jobs at any time. Most Notable Hangfire FeaturesĬomparing to other available schedulers, Hangfire offers a lot of advantages. It’s well structured, simple to use, and gives a powerful performance. It’s multi-threaded, easily scalable, and offers a variety of job types. Hangfire is an open-source and well-documented task scheduler for ASP.NET and ASP.NET Core. We can handle all these tasks with a good background task scheduler that takes care of the details for us. ![]() Or we may need to send a notification to our user once, except not right now, but in about three days. Like watching out for inactive users or sending subscription invoices. ![]() We also may need to schedule some tasks to run every hour, week, or maybe a month. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |