perrich / Hangfire.MemoryStorage

A memory storage for Hangfire.
Apache License 2.0
131 stars 43 forks source link

Use an event to eliminate latency on job queuing #7

Closed arkanes closed 7 years ago

arkanes commented 8 years ago

The current implementation of FetchNextJob creates a 15 second latency between the startup of the server and the processing of the first event, since everything is running in-process with MemoryStorageProvider we can use an event awaken FetchNextJob and eliminate the latency.

This is the simplest implementation of this solution, FetchNextJob could probably be re-written to eliminate the polling entirely.

DaniilSokolyuk commented 7 years ago

why not merge? 15 second is so big latency