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

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.

主站蜘蛛池模板: 鄯善县| 康保县| 绍兴市| 天峻县| 九江市| 郯城县| 和田县| 乳山市| 祁连县| 海城市| 湾仔区| 百色市| 勃利县| 甘泉县| 乾安县| 洞口县| 维西| 九江市| 古丈县| 大同县| 祁东县| 甘泉县| 西盟| 灵寿县| 罗山县| 阿拉尔市| 天等县| 东明县| 汉沽区| 玉溪市| 日喀则市| 沙田区| 晴隆县| 彭州市| 巴塘县| 盐亭县| 新泰市| 金平| 瑞丽市| 京山县| 集贤县|