Configuring data consistency
We should add сonfiguring data consistency to MagnetoDB.
Steps to implement:
1. Add the possibility of adding consistency level in the request via our RESTful API.
2. Add transmitting the consistency level value to storage API and after that - to backend (at the moment - in Cassandra)
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Low
- Drafter:
- Maksym Iarmak
- Direction:
- Needs approval
- Assignee:
- Maksym Iarmak
- Definition:
- Obsolete
- Series goal:
- Accepted for future
- Implementation:
-
Informational
- Milestone target:
- None
- Started by
- Completed by
- Ilya Sviridov
Related branches
Related bugs
Sprints
Whiteboard
(miarmak) We should invent read and write consistency levels for magnetodb.
In this document, on the 1-st sheet you can find Cassandra consistency levels:
https:/
On the 2-nd sheet of this doc, you can find MagnetoDB REST api methods, related to consistency, theirs connection with data read/write and theirs mapping to storage api methods.
So, there are 2 issues for discussion:
1. What consistency levels will be in Magneto?
2. What level will be used by default?
So, I suggest:
1. Use the same consistency levels as in Cassandra (except of EACH_QUORUM, LOCAL_ONE, LOCAL_QUORUM, LOCAL_SERIAL, because it used multiple data center clusters). Maybe when we have more backends or/and multiple data center support, it can be changed.
2. Use QUORUM level by default, because it provides strong consistency.
So, It would be nice, if you share your thoughts and suggestions on this issue.
Work Items
Dependency tree

* Blueprints in grey have been implemented.