Chapter 11: Re-Platforming the Data Layer
At this point, we have a fully working solution that addresses scalability and availability in the application layer by using a Regional Managed Instance Group and an HTTP(S) Load Balancer. In this chapter, we will be looking at the data layer in our application and seeing how we can improve our architecture to address scalability and availability while reducing the administrative overhead of managing virtual machines. The two areas in the data layer we will cover are session handling and persistent relational data. We will do this by examining the services provided by Google Cloud in this area: Cloud Memorystore for handling sessions, then Cloud SQL (with Cloud SQL Proxy), and Cloud Spanner for relational data. Finally, we will take a brief look at importing data into our relational systems.
In this chapter, we will cover the following:
- Designing for scalability and availability
- Using Cloud Memorystore
- Using Cloud SQL ...