知识卡片
轮询适配流程的取舍
当异步回调受到防火墙配置阻碍,而一分钟延迟与额外负载可以接受时,可改为客户端轮询。把轮询、等待和数据转换封装成本地适配流程,再以库分发,能避免每个业务流程重复实现。代价是所有使用者都需升级库,产生部署耦合;这是一种接受现实约束的局部折衷,并非取代远程服务API的默认方案。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 自治、边界与隔离 · 查看原书依据
But now the polling logic itself yielded some long-running complexity (poll, wait for a minute, poll again, and so on). Every process talking to the document storage service needed to add that polling logic. To prevent this from polluting all the business processes, they extracted the polling to a separate process: the document storage adapter
参考来源
- 位置:《Practical Process Automation》第7章《自治、边界与隔离》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch07.xhtml)
- 结论依据:原文给出的机制、实例与边界支持本卡的解释。
- 原始内容:But now the polling logic itself yielded some long-running complexity (poll, wait for a minute, poll again, and so on). Every process talking to the document storage service needed to add that polling logic. To prevent this from polluting all the business processes, they extracted the polling to a separate process: the document storage adapter