I want to get your thoughts/suggestions on where do you store/save the library of jobs that you execute for the Hangfire Server. Also, would calling a WebAPI in the background job breaking any best practices.
- Do i create separate projects for each domain/logical library that intend to execute?
For example, if i have 10 libraries with 10 different connections strings (EF), does that mean that my Hangfire Server will have 10 different connection strings as well? Also, this could potentially grow every time i add a new library that i need Hangfire to execute.
- Is it ok to call a WebAPI inside a background job or would you recommend keeping all the logic inside the background tasks?