知识卡片

普通读书笔记卡 · 1980.z.1.c

无状态变换与分支合并

理解等级:中级

Filter输出零或一条,Map输出一条并可改键值,MapValue只改值;自定义变换可承载业务处理。分支按条件把结果送到不同流,错误流也是一种分支。合并必须有代表统一业务领域的新schema,否则只是把复杂性推给消费者。改变键后若需同键状态操作,应重新分区,单改键值不会自动搬动数据。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Event-Driven Processing Basics · 查看原书依据

      A transform processes a single event and emits zero or more output events. Transforms, as you might guess, provide the bulk of the business logic operations requiring transformations. Events may need to be repartitioned depending on the operations (more on this shortly). Common transformations include, but are not limited to, the following:

    参考来源

    - 位置:《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;规范化段落起句:A transform processes a single event) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:Filter输出零或一条,Map输出一条并可改键值,MapValue只改值;自定义变换可承载业务处理。本卡同时保留其适用条件与失败边界。 - 原始内容:A transform processes a single event and emits zero or more output events. Transforms, as you might guess, provide the bulk of the business logic operations requiring transformations. Events may need to be repartitioned depending on the operations (more on this shortly). Common transformations include, but are not limited to, the following: