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

不支持一次消费多条消息么 #48

Open
xiaobingge opened this issue Aug 17, 2021 · 3 comments
Open

不支持一次消费多条消息么 #48

xiaobingge opened this issue Aug 17, 2021 · 3 comments
Labels
question Further information is requested

Comments

@xiaobingge
Copy link

xiaobingge commented Aug 17, 2021

只能一条条消息去消费么?

@Yurunsoft
Copy link
Member

现在协议上是批量取消息,然后是内部循环每条消息,触发回调或者 $consumer->consume() 方法返回

@Yurunsoft Yurunsoft added the question Further information is requested label Aug 18, 2021
@xiaobingge
Copy link
Author

为啥找不到 max.poll.records 的配置 每次是取出分区所有数据在循环么

@Yurunsoft
Copy link
Member

没有实现max.poll.records这个配置,kafka 的 Fetch 是根据等待时间、最小字节数、最大字节数来返回数据的,每次消息条数不固定。java 版的max.poll.records是在客户端层面实现,后面会考虑是否引入这个特性。

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

No branches or pull requests

2 participants