I want to implement highly safe system storage with mysql.
My case is:
- I need to store records.
- For more safety i want to have N separate physical mysql nodes.
- Then client save record and get OK response at this moment I want to be sure that data durable written in all N nodes.
Can mysql cover this? I am not familiar with mysql replication can it cover this?
- Then client save key value and get OK response - at this moment I want to be sure that data durable written in all N nodes.
So I am afraid that then client get "ok" on saving row in mysql the data can be written in one node (other replicas not sync) and if at this moment crash happens in only one node that holds client row i can't restore it (replicas not in sync).
So i want be sure that all nodes written then client get OK.
Should i use mysql replication or I must implement this on applicaion level by do N separate INSERTS to N servers or something other?