JAVAMS11 Working with Spanner

Опубликовано: 07 Апрель 2026
на канале: Backyard Techmu by Adrianus Yoga
189
4

Overview
In this series of labs, you take a demo microservices Java application built with the Spring framework and modify it to use an external database server. You adopt some of the best practices for tracing, configuration management, and integration with other services using integration patterns.

In a previous lab, you modified the application to use Cloud SQL for database services. Cloud SQL provides a managed database service for applications that require robust relational database services. But when higher performance and transactions are critical to your application, you can use Cloud Spanner to provide high-performance, relational database services. Spanner is an enterprise-grade, globally distributed, strongly consistent database service built for the cloud specifically to combine the benefits of relational database structure with non-relational horizontal scale. This combination delivers high-performance transactions and strong consistency across rows, regions, and continents with enterprise-grade security.

In this lab, you update your application to integrate your Cloud Spanner instance with Spring Data. You will then test the changes locally in Cloud Shell, and then redeploy the backend service to App Engine.

Objectives
In this lab, you learn how to perform the following tasks:
Create a Spanner instance and database
Use the data definition language (DDL) to create a Spanner table
Use Spring to add support for Spanner to an application
Modify a Java application to use Spanner instead of Cloud SQL
#gcp #googlecloud #qwiklabs #learntoearn