Summary
In this chapter, we have re-platformed our data layer. We migrated from using a virtual machine to manage our sessions to using Cloud Memorystore. We also migrated from using a virtual machine to host our relational database to using Cloud SQL. Making these changes provided us with the availability and scalability supplied by those services.
To fully make use of Cloud SQL, we switched from connecting directly to using Cloud SQL Proxy, which enhanced our security and availability stance by abstracting those concerns away from our application with regards to accessing our relational database.
Finally, we exported the database from our MySQL virtual machine and imported that into our Cloud SQL instance. In the real world, we would have data to migrate, so exploring how to do this was important.
In the next chapter, we will look at DevOps and how to automate building our application, provisioning the environment, and deploying the application in the Google Cloud.