Strong Consistency
“Always all data is to have integrity”
Eventual Consistency
This ensures all read operations retrieves updated data at the end.
Master Node + Read replica
Index | Strong Consistency | Eventual Consistency |
---|---|---|
Pros | Data consistency and integrity | Scalability, Performance |
Cons | Scalability, Performance | Weak consistency and integrity |
When To Use | Small data </br>context is specific | Large data</br>context is general |
Example use-case | Payment transaction | Likes on instagram picture |
What developers have to decide?
Always consider ‘user-centered’ perspective, Does it affect on user experience?