java - kafka中partition设计的优点是什么?
滿天的星座
滿天的星座 2017-06-23 09:13:28
0
1
1075

提高并发写入吗? 磁盘io同一时刻只能写入一个文件吧?
提高并发读取吗? 磁盘io同一时刻只能读取一个文件吧?
提高单次写入速度吗?貌似跟partiton没啥关系吧?
提高单次读取速度吗?多segment不就解决了?

滿天的星座
滿天的星座

全部回复(1)
ringa_lee

原答案:难道不是topic的扩展能力吗?不然单topic的容量只能限制在物理机上了
更新后的答案:
The partitions in the log serve several purposes. First, they allow the log to scale beyond a size that will fit on a single server. Each inpidual partition must fit on the servers that host it, but a topic may have many partitions so it can handle an arbitrary amount of data. Second they act as the unit of parallelism—more on that in a bit.
官方文档(见上文)。
partitions 主要有两个目的,1 增强扩展能力,让其可以处理任意多的数据 2 作为并行单元,提高并行能力(主要鉴于此点考虑)。
第一次回答我只记住第一点了~~sorry

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!