Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【疑问】出入队列是否全局有序? #1

Closed
FelixHo opened this issue Sep 12, 2017 · 2 comments
Closed

【疑问】出入队列是否全局有序? #1

FelixHo opened this issue Sep 12, 2017 · 2 comments
Labels

Comments

@FelixHo
Copy link

FelixHo commented Sep 12, 2017

找不到提问社区,请允许我在这里提问.

【问题】
请问 "出入队严格有序" 这一个feature指的是 全局队列有序 还是指 单一队列(我的理解就是一个Store)的出入严格有序?如果是后者,要满足全量数据严格有序的话 producer 在入队列的时候就需要做数据倾斜(例如 通过key来约束)? 谢谢~

@unixliang
Copy link
Collaborator

unixliang commented Sep 12, 2017

你好,
从Store的角度来看单一队列是出入严格有序的,因为一条队列只归属于一个Paxos Group;
但是从Consumer的角度来看默认是相同key出入严格有序,因为Consumer有批量处理特性,其中相同key的数据保证串行处理,不同key的数据会并发处理,这是提高消费效率的一个特性;如果关掉这个特性,那从外部看来,就是单一队列出入严格有序的。

@FelixHo
Copy link
Author

FelixHo commented Sep 12, 2017

@unixliang 感谢你详细清晰解释~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@unixliang @FelixHo and others