Giter VIP home page Giter VIP logo

Comments (4)

jiazhai avatar jiazhai commented on June 19, 2024

👍。找code,意外发现这里。 :)
关于顺序性:
Pulsar这个是一个Partiton。 如果对一个Partition要保证顺序性消费,就只能使用Exclusive/Failover的订阅模式,不能用share模式。
Kafka的一个Partition应该只能是类似Exclusive/Failover的消费模式;一个Partiton,只能有一个active的Consumer来消费。

from blog.

aCoder2013 avatar aCoder2013 commented on June 19, 2024

@jiazhai Pulsar的话写的比较简单, 改天我再完善一下,Exclusive/Failover模式应该是只能单个consumer消费所有partition的消息吧,kafka的话类似shared模式,但是多了个partition分配的过程,特定的分区同一时刻只会分配给一个consumer,但pulsar的share模式类似是RoundRobin,所以才不支持顺序性。Exclusive/Failover模式不知道理解的对不对,晚点我再确认下

from blog.

gaoyf avatar gaoyf commented on June 19, 2024

那么这里就会有几个问题,由于网络延迟、每个consumer启动的时间不一样,那么consumer获取到变化的时机就会不一样,也就是说数据会不一致,导致在某段时间内 某个分区被多个客户端同时消费

hi,你好,偶尔查到你的wiki,写的很棒。不过上面这段话不敢苟同,我之前有个问题正好分析测试了下,记录到了这里
image

也就是说某个分区被多个客户端同时消费基本上是不可能的,因为一旦rebalance,subVersion必然会更新,你有空可以做个测试验证一下。

from blog.

aCoder2013 avatar aCoder2013 commented on June 19, 2024

@gaoyf 赞! 这篇博客写的比较久了,我晚点验证下

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.