'.NET web API and .NET worker in the same project

Is it possible to host a web API and a worker in the same .net project?

Being possible, is it a good practice?

I have a project that started as a web API and added a Kafka consumer, but now I'm not sure if both services will work fine



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source