We use Hangfire Pro for data import. We’re a SaaS company and we use multi-tier architecture for our clients. Our implementation has one logical issue and you can probably help. When one tenant (client) starts importing data, batch is created and everythign works. However, if another client creates import at the same time, the second batch does not start before the first one is complete. Our questions are:
- How do we allow simultanious multiple batches
- Can we limit / control the number of simultanious batches allowed so that server does not get bombarded with so many background batchwork at the same time?
- Can we further customise it so that if multiple batches are from the same customer it goes in queue but if from different customers, they can go in processing simultaniously?