FIFO topic 消费端非严格有序 #9306
-
背景:
5.consumer 端代码参考的是example中SimpleConsumer,流程:收到消息后打印log=>模拟消息处理sleep一秒=> 打印log=> ACK,具体代码如下:
测试打印log如下:
问题1 :顺序消息顺序性
从这里看到consumer1 的offset5消息尚未ack,consumer2 已经收到了offset 6 的消息 问题2 :queue 0 没有消息,client 轮询选择了queue0的时,也有消息返回,broker是怎么处理的? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
问题1 golang中也对应找一下呢 问题2 |
Beta Was this translation helpful? Give feedback.
-
目前有一版 go pushconsumer的实现,里面有fifo的支持,感兴趣的可以一起review一下: |
Beta Was this translation helpful? Give feedback.
现在golang应该不支持fifo,grpc协议中的fifo没用被使用。