Using Cloud Spanner
Although we will not be using Cloud Spanner for our application at this point, it is important to understand how to provision a Cloud Spanner instance and configure our application to use it. We will examine the following:
- Provisioning Cloud Spanner
- Updating our application build to use the open source Cloud Spanner JDBC library
- Updating our application settings to support this new configuration
The key thing is that, to our application, Cloud Spanner will look just like any JDBC-enabled relational database, and so we will not have to change any of the source code, just the configuration.
Provisioning Cloud Spanner
To provision Cloud Spanner, we need to perform the following steps:
- From the navigation menu, select Spanner:
- Click CREATE INSTANCE:
- Enter the Instance name:
- Choose the region as...