知识卡片
重复流水造成库存错算
库存服务把销售、损耗等减项和收货、退货等加项累计为现存量,再依据阈值报警。若一个输入重复应用,库存会被多加或多减;若漏处理,也会使阈值判断偏离真实库存。根因是业务状态累计与消费进度没有受到同一个成功边界保护,重试可再次执行已生效计算。
关联:[[事务绑定状态进度输出]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Stateful Streaming · 查看原书依据
This stock accounting service is quite simple. It calculates the current running total of stock based off of the event stream changes and stores it in its data store. The business logic filters on a threshold value and decides whether to issue a notification to stock management about low or oversold stock. It must be ensured that each input event is applied effectively once to the aggregated state, as applying
参考来源
- 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第07章《Stateful Streaming》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch07.xhtml;规范化段落起句:This stock accounting service is quite simple)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:库存服务把销售、损耗等减项和收货、退货等加项累计为现存量,再依据阈值报警。本卡同时保留其适用条件与失败边界。
- 原始内容:This stock accounting service is quite simple. It calculates the current running total of stock based off of the event stream changes and stores it in its data store. The business logic filters on a threshold value and decides whether to issue a notification to stock management about low or oversold stock. It must be ensured that each input event is applied effectively once to the aggregated state, as applying