Confluent-kafka-dotnet: Develop the consumer in MVC 5 web application to run for forever to get the data from producer.

Created on 22 Mar 2019  路  5Comments  路  Source: confluentinc/confluent-kafka-dotnet

Description

This question for help...

How should I develop the Conluent.kafka consumer in MVC5 web application to run for forever to receive the data from kafka producer. I want to show data with some calculation in UI. Multiple people can access but value should be same at the same time (Stock market website). I am thinking to use the SignalR to broadcast the data to All Client. But, I am not sure how should I develop the consumer so it would not make web app freeze for all user.

I have tried the Thread to run but didn't get success.

Checklist

Please provide the following information:

  • [x] Confluent.Kafka nuget version: 1.0.0-beta3
  • [ ] Apache Kafka version: latest
  • [ ] Operating system: Win 10
question

Most helpful comment

we plan to write an example of how to do this in ASP.NET Core using hosted services ( see here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-2.2 ). stay tuned for that!

All 5 comments

we plan to write an example of how to do this in ASP.NET Core using hosted services ( see here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-2.2 ). stay tuned for that!

Thank you so much for real quick response. I would be waiting for it meanwhile I would try to implement it. Thanks again for give me hint.

we plan to write an example of how to do this in ASP.NET Core using hosted services ( see here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-2.2 ). stay tuned for that!

I have done this in my system, Can I contribute to the community? how?

hi @dhavalsp - you can open a PR to this repo - that'd be great! note that we carefully review every contribution, and we might not get time to do this immediately depending on other priorities. small, high quality contributions is key!

another thing you can do is blog about it, or do something else independently. If I know about it, i'll tweet about it for sure.

@dhavalsp hi. I'd like to see your implementation of this scheme. Is it possible? Or maybe you wrote article about it. @mhowlett is example still in plans?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MihaiComan87 picture MihaiComan87  路  3Comments

Ravindranrajendran picture Ravindranrajendran  路  3Comments

ThomasHjorslevFcn picture ThomasHjorslevFcn  路  3Comments

nitinpi picture nitinpi  路  4Comments

kvandake picture kvandake  路  3Comments