- Functional Kotlin
- Mario Arias Rivu Chakraborty
- 73字
- 2021-06-24 19:15:29
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.
推薦閱讀
- WildFly:New Features
- Java EE 6 企業級應用開發教程
- 云原生Spring實戰
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- R Deep Learning Cookbook
- Python語言實用教程
- 計算機應用技能實訓教程
- 并行編程方法與優化實踐
- Python預測分析實戰
- Java設計模式深入研究
- Test-Driven iOS Development with Swift
- 一覽眾山小:ASP.NET Web開發修行實錄
- HikariCP數據庫連接池實戰
- Distributed Computing with Python
- PhantomJS Cookbook