知识卡片
变更订阅触发增量处理
change feed在数据变化后提供增量输入,可触发函数即时验证、解析和传播,减少自建轮询工作者。它简化反应链路,但仍需核实起点、保留、重复和删除语义,不能把“有变更流”当成完整业务事件契约。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event and Notification Management · 查看原书依据
An alternative to polling is to generate events using a trigger-based approach. A trigger is a piece of procedural code, like a stored procedure or database hook, that is only executed when a given event happens. For example, you might have a trigger that is executed each time data is added to a table. This trigger then would either move the records to an events
参考来源
- 位置:《Data Management at Scale》第06章《Event and Notification Management》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292,源文件:extracted/Data Management at Scale/_epub-src/OEBPS/ch06.html)
- 结论依据:原文对change feed的解释、约束及上下文支持本卡;内容为中文归纳,不把架构建议当作所有组织的必然规律。
- 原始内容:An alternative to polling is to generate events using a trigger-based approach. A trigger is a piece of procedural code, like a stored procedure or database hook, that is only executed when a given event happens. For example, you might have a trigger that is executed each time data is added to a table. This trigger then would either move the records to an events