We need to have an in-memory key/value storage which can be replicated to other data centers.
Here is our requirements:
1. All data centers must have the same database (a little resynchronization is acceptable like 30-60 seconds). I know that we can have only one master server and it is OK. Only one database in one data center will be a master. But if the master server dies then we need to elect a new master.
2. We need to be able to send write requests to any of the slave nodes and it will send it to the master node directly.
I know that there is a Redis cluster which can accept all write requests but it isn't suitable for us because data are distributed among nodes (So, all servers in all data centers will handle different data but we need to have the same data in all data centers because we have only 5% of writes and 95% of reads).
Is it possible to realize with the Redis?