Is Hangfire designed to be used as a queue similar to Redis pub/sub pattern?

Tags: #<Tag:0x00007f499ec37668>


For example, to write a lot of logs, simply enqueue the logging method. This sounds totally practical to me. The only query would be how many jobs can be queued and can those jobs be executed only sequentially or can be in parallel? Or Hangfire isn’t designed to be used like this?


Yes, if you want to use Hangfire to write lots just enqueue the log method and it will be processed in parallel by default.

Large numbers of jobs can be queued although I’ve not done very big numbers myself but many others here do large numbers of queued jobs.

Here’s where you control the number of worker threads that can run jobs in parallel:


I meant “logs” not "lots’