The problem is that they've requested me to follow the bad way: it was
required that the data must be stored on the minor, local server
first, and replicated to the central server after. I know it is
multimaster replication and it is dangerous, not kosher and whatnot,
but they insist on using this topology. Also, they don't want to use
some other external application. The problem is that the Internet
links are very unstable here, and expecting a write on the central
server and its posterior replication can stop an office for some days.