Lets say we have 3 servers on a local area network:
APP - php app server
MASTER - master Mysql db server
SLAVE - slave Mysql db server (replicating MASTER)
In the one code block (php) APP inserts into MASTER, retrieving the last_insert_id which it then uses to select the data it just inserted from SLAVE.
So the question is, will the replication have happened in time for SLAVE to have the data from MASTER? Is this influenced by load put on either MASTER or SLAVE?
And lastly, if there is a issue with the data being available, is there a way to ensure the latest data is received from SLAVE?