知识卡片
事件解耦交互时序
请求通常处于正在等待结果的会话中;事件强调某件事已经发生,可由独立处理器稍后响应,例如注册后的欢迎信或文件更新通知。把非即时反馈工作分离可降低前台等待并支持新增处理器,但需定义事件何时可靠记录、失败怎样重放和处理完成如何查询。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 9. Functions and Event-Driven Processing · 查看原书依据
Events, as I see them, instead tend to be single-instance and asynchronous in nature. Events are important and need to be properly handled, but they are fired off from a main interaction and responded to some time later. Examples of events include a user signing up for
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第09章《Chapter 9. Functions and Event-Driven Processing》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch09.html)
- 结论依据:原文以会话、异步单次事件和注册通知区分请求与事件。
- 原始内容:Events, as I see them, instead tend to be single-instance and asynchronous in nature. Events are important and need to be properly handled, but they are fired off from a main interaction and responded to some time later. Examples of events include a user signing up for