Comments (4)
👍。找code,意外发现这里。 :)
关于顺序性:
Pulsar这个是一个Partiton。 如果对一个Partition要保证顺序性消费,就只能使用Exclusive/Failover的订阅模式,不能用share模式。
Kafka的一个Partition应该只能是类似Exclusive/Failover的消费模式;一个Partiton,只能有一个active的Consumer来消费。
from blog.
@jiazhai Pulsar的话写的比较简单, 改天我再完善一下,Exclusive/Failover模式应该是只能单个consumer消费所有partition的消息吧,kafka的话类似shared模式,但是多了个partition分配的过程,特定的分区同一时刻只会分配给一个consumer,但pulsar的share模式类似是RoundRobin,所以才不支持顺序性。Exclusive/Failover模式不知道理解的对不对,晚点我再确认下
from blog.
那么这里就会有几个问题,由于网络延迟、每个consumer启动的时间不一样,那么consumer获取到变化的时机就会不一样,也就是说数据会不一致,导致在某段时间内 某个分区被多个客户端同时消费
hi,你好,偶尔查到你的wiki,写的很棒。不过上面这段话不敢苟同,我之前有个问题正好分析测试了下,记录到了这里。
也就是说某个分区被多个客户端同时消费基本上是不可能的,因为一旦rebalance,subVersion必然会更新,你有空可以做个测试验证一下。
from blog.
@gaoyf 赞! 这篇博客写的比较久了,我晚点验证下
from blog.
Related Issues (20)
- Running Spring Boot in a Docker cluster
- How to run Apache Kafka using IntelliJ IDEA
- 分布式消息队列Apache RocketMQ源码剖析-Producer分析 HOT 1
- 日志: 分布式系统的核心 HOT 2
- 分布式消息队列实现概要
- Java并发工具类之LongAdder原理总结 HOT 10
- 下一代分布式消息队列Apache Pulsar从入门到实现(一) HOT 2
- CopyOnWriteArrayList内部工作原理剖析
- 基于JVM之上的并发编程模式剖析 HOT 3
- Redis用于频率限制上踩过的坑 HOT 10
- Java线程池ThreadPoolExecutor实现原理剖析 HOT 2
- Spring Cloud Ribbon踩坑记录及原理解析 HOT 13
- Etcd Raft使用入门及原理解析
- 注册中心的设计与实现 HOT 3
- 标题修改为“注册中心的设计与实现”
- API网关异步化改造技术选型 HOT 4
- 一文带你搞懂API网关 HOT 8
- 线性一致性实现原理剖析
- Cloudflare接口服务中断故障复盘与思考 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.