dqh1992 2019-04-19 04:34
浏览 178
已采纳

消费者不拉卡夫卡消息

We have some micro-services developed in c# and go languages. we use confluent-kafka for messaging and facing a problem: Go services are able to consume messages published from all other services (be it from go or c#/.net micro service). But .net microservices are not getting messages published from go microservice but from .net microservices.

We are on windows platform and using confluent-kafka as kafka server and .net clients. In go we are using kafka-go library (https://github.com/segmentio/kafka-go)

Note: in go we the kafka-go library allows to publish the message as byte-array. whereas in .net we are publishing a message as plain-text. I am not sure if it is a problem for .net services to consume messages published from go-services as byte-array. I can see messages published from go-services in kafka-tool 2.0.

Expected behavior will be .net services are able to pull/consume messages published from go-micro-services.

  • 写回答

1条回答 默认 最新

  • 普通网友 2019-04-19 06:23
    关注

    Found the root cause and resolved. The problem was there is no key-deserializer set in dot net services and dotnet publishers didn't set the key of kafka message but go publishers were setting the key. as there is no key deserializer set in .net, they were getting ConsumerError. Now key deserializer set to .net consumer and the issue perished.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配