Examples
Immutability | Mutability |
---|---|
Data manipulation | Simuation |
Business apps | Games |
CRUD apps | Articificial Intelligence |
Immutability | Mutability |
---|---|
Each has its own copy | Shared state |
Syncing when connected | Syncing not necessary |
Not very critical | Time critical |
Efficient and faster | Where copying memory is costly, ineffecient and time consuming |
Multiple Machine | Single machine |
When sequence of operations matter | When sequence doesn't matter |
Multiple | Single process |
concurrency model based on immutable state