- 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.
推薦閱讀
- Spring Boot開發(fā)與測試實戰(zhàn)
- C語言最佳實踐
- Mastering Unity Shaders and Effects
- Python漫游數(shù)學(xué)王國:高等數(shù)學(xué)、線性代數(shù)、數(shù)理統(tǒng)計及運籌學(xué)
- 零基礎(chǔ)學(xué)單片機C語言程序設(shè)計
- Mastering Apache Maven 3
- Linux Device Drivers Development
- Python數(shù)據(jù)結(jié)構(gòu)與算法(視頻教學(xué)版)
- HTML5 APP開發(fā)從入門到精通(微課精編版)
- Developing SSRS Reports for Dynamics AX
- Domain-Driven Design in PHP
- UI設(shè)計全書(全彩)
- ArcGIS for Desktop Cookbook
- Learning Docker Networking
- Python機器學(xué)習(xí)與量化投資