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 任务A:大数据平台搭建(容器环境)怎么做呢?
  • ¥15 r语言神经网络自变量重要性分析
  • ¥15 基于双目测规则物体尺寸
  • ¥15 wegame打不开英雄联盟
  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计