title: Kafka Consumer In .Net Core
body: <p>I want to use Kafka as message broker in our microservice based project. What is the best practice for implementing consumers ? Should we implement in WebApi as background service with adding hosted services or standalone console application ? Because of the infinite loop for listening queues I have doubts to use in API project for performance and scalibility reasons. In spite of that, I have to use models and classes in WebApi. For easy scaling, it is better to use a dedicated thread for a consumer and use console application. I wonder if there is any best practice or example to implement Kafka consumer in .Net Core ? </p>