知识卡片

普通读书笔记卡 · 5381.d

SEDA按阶段隔离处理

理解等级:高级

分阶段事件驱动架构SEDA用队列连接多个处理阶段,各阶段可有自己的线程数和阻塞或非阻塞策略,像流水线一样允许专门化。它在无法使全部调用非阻塞时提供折中,但需要正确划阶段、调容量和理解队列等待;阶段不平衡时只是把瓶颈搬到队列。普通业务若默认线程模型已足够,不必为了模式名称引入这套调度复杂度。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 服务端架构 · 查看原书依据

      As Figure 11.4 illustrates, SEDA consists of multiple stages connected by queues. Each stage can use either a blocking or a nonblocking architecture. It often uses runtime tuning to find the best parameters (e.g., number of threads) for different stages.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第11章《Server Architectures》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch11.xhtml) - 结论依据:摘录说明分阶段事件驱动架构SEDA用队列连接多个处理阶段,各阶段可有自己的线程数和阻塞或非阻塞策略,像流水线一样允许专门化。其余条件结合本章相邻例子与取舍说明,数字示例不作当前性能承诺。 - 原始内容:As Figure 11.4 illustrates, SEDA consists of multiple stages connected by queues. Each stage can use either a blocking or a nonblocking architecture. It often uses runtime tuning to find the best parameters (e.g., number of threads) for different stages.