I'm working on a web application that exists at two sites. Each system is hosted on it's own LAMP stack, with access restricted to specific users on the network.
When content is updated via user input on one side, an XML is transferred from that system to the other to update it, so both systems match.
These files are transferred by a 'guaranteed delivery' system. However, sometimes the XMLs get bunched up and arrive in the wrong order, causing problems at the receiving end. This is particularly noticable with rapid user input, as the delay from the transmission system causes the files to 'bump into eachother'.
It was suggested that database replication would be more efficient to keep the systems in sync.
My question is: Is replication suitable for small incremental changes, does it have to update every single item each time or just the part that has changed?
Another question I have is, what protocol would the databases use to communicate from two separate sites?