知识卡片

普通读书笔记卡 · 3364

舱壁隔离共享资源故障

理解等级:中级

舱壁模式将不同外部调用组放入独立且有界的线程池或信号量配额。一组调用阻塞或耗尽资源时,故障先止于该组,不继续占满其他调用的执行资源;隔离效果取决于配额和共享资源边界。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第2章《Anti-Patterns: Lack of Isolation》(源文件:`_epub-src/OPS/ch02.xhtml`,归一化正文 [67165:71411)) - 结论依据:原文定义舱壁模式,并以不同出站调用组绑定线程池或信号量说明故障组不能吃掉其他组资源。 - 原始内容:Using Hystrix, outbound service invocations can be grouped and bound to thread pools or semaphores. If one group begins to fail, it can only fully consume one thread pool or fail to release its semaphore, thus not affecting other service invocation groups.