Hello.
I need to deploy infraestructure which will have 1 master server and 1 slave server. I will use this method: https://www.yiiframework.com/doc/guide/2.0/en/db-dao#read-write-splitting but I wonder how it will work when saving the sessions. By default the sessions are stored as files on server ( https://www.yiiframework.com/doc/guide/2.0/en/runtime-sessions-cookies#custom-session-storage ), but what if one request from the same user is on server1 and next request is on server2? Does it will be on data corruption/mismatch due to the session of the same user is saved in two different servers in a short lapse time?
Take in account that slave server and master server are able to receive reading requests since the web application is balanced and some reading requests are dispatched from master server and other requests are dispatched from slave server.
Thanks.