知识卡片
重分区建立数据局部性
重分区产生新流,可改变分区数、事件键或分区算法。同键记录汇集到单一分区后,消费者仅靠本分区就能获得该键完整输入,支持分片状态处理。增加分区可提高下游并行,但键分布和热点仍限制容量;本质是改变数据放置,需承担写入新流和再次读取的成本。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event-Driven Processing Basics · 查看原书依据
Event streams are partitioned according to the event key and the event partitioner logic. For each event, the event partitioner is applied, and a partition is selected for the event to be written to. Repartitioning is the act of producing a new event stream with one or more of the following properties:
参考来源
- 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第05章《Event-Driven Processing Basics》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch05.xhtml;规范化段落起句:Repartitioning is the act of producing)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:重分区产生新流,可改变分区数、事件键或分区算法。本卡同时保留其适用条件与失败边界。
- 原始内容:Event streams are partitioned according to the event key and the event partitioner logic. For each event, the event partitioner is applied, and a partition is selected for the event to be written to. Repartitioning is the act of producing a new event stream with one or more of the following properties: