I have 2 servers.
Server 1: (Master Server)
- Master Database MariaDB
- PHP Service
+ Reader from Master Database
+ Writer into Master database
Server 2: (Slave Server)
- Slave Database from Server 1
- PHP Service
+ Reader from Slave Database
So, I want to create Writer into Master Database for Server 2.
And I drawing and two way for insert data into Master Server in this image (The direction of the arrow is the direction the data will come.).
I do not know which the way to choose for optimization and I do not have much time to program both tests.
Anyone who has experience in this or a new idea. thank you