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

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.

主站蜘蛛池模板: 永胜县| 大厂| 微山县| 山东省| 平果县| 沂源县| 且末县| 绥江县| 东丰县| 思茅市| 原阳县| 乌苏市| 呼伦贝尔市| 河曲县| 三穗县| 青冈县| 光山县| 江城| 广饶县| 日喀则市| 辽阳县| 孝昌县| 年辖:市辖区| 黔西| 孟津县| 思南县| 大名县| 伊通| 买车| 舞阳县| 连云港市| 信阳市| 于都县| 岳西县| 北安市| 宁夏| 封开县| 孝感市| 白银市| 边坝县| 平湖市|