You asked "which is better?" but you have not really presented two alternatives. If you are using two instances of MySQL in the second diagram, I don't see where the need to design a protocol arises. If you are proposing a different database on the second server in the second diagram, which one is it?