I am confused between choosing Web API or DLL reference for a project I am working on and want to understand recommendations for both the approach.
We are having a Web API which exposes an interface for the business logic(BL). We are using HTTP based service and the code is C#. We also have a Web Application which internally uses the BL. When I compile I get separate DLL for BL which can also be referenced and reused.
Now, I want to create a C# console app which will be run through task scheduler at a specific time of the day. I will be requiring to use the same BL to proceed with my logic. It's a background service and performance is not a major concern. What will be a better approach here, using compiled DLL or calling Web API? What things to consider when you have to decide between the two approach?
One more thing I would like to mention is that my organization is moving towards microservice architecture. Anything in this context will be highly appreciated.