scenario
I have two databases from which one should to be my main database “db1” where all the data will store and another should be my cache database “db2” will be only used to fetch current data.
Condition:
The application by default fetch data from database “db2” first If data is not found in “db2” then only it should be able to hit main database “db1”
This should be done on local server and also on cloud server using MySQL.
New contributor
Gunwant is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.