官术网_书友最值得收藏!

Failure atomicity

In traditional programming, failure in one thread can easily affect the other one. As immutability enforces low coupling, the internal state of the application will be consistent, even when we have exceptions on any module/thread.

The reason is simple, the immutable objects never change state. So, even if failure occurs in one part/module/thread, it stops right there and doesn't get any chance to get spread to other parts of the application.

主站蜘蛛池模板: 哈巴河县| 凉城县| 土默特右旗| 永州市| 桃园县| 锦州市| 佛山市| 商都县| 三亚市| 云浮市| 云浮市| 枣庄市| 甘孜县| 禄劝| 贡嘎县| 静安区| 阳曲县| 寻乌县| 井陉县| 西贡区| 大英县| 金湖县| 工布江达县| 波密县| 定边县| 屯昌县| 新龙县| 张掖市| 广丰县| 梁山县| 澄城县| 米林县| 玛多县| 浮山县| 崇明县| 香格里拉县| 常德市| 永仁县| 九龙县| 渝中区| 敦化市|