Spring Cloud GCP: Setting Up a Cloud SQL Database
1h 19mIntermediate2020-10-07
Authors

Cecili Reid
Senior Software Engineer at Netflix, Speaker
Course details
Cloud SQL is one of the most frequently used products on Google Cloud Platform (GCP). This fully managed relational database service for MySQL, PostgreSQL, and SQL Server provides an alternative to configuring and hosting your own database. Plus, it's relatively easy to integrate Cloud SQL with a Spring Boot app, due to the use of Spring Data Cloud SQL and the Spring Data Java Persistence API. In this course, learn how to set up a Cloud SQL database and effectively test your Spring Boot application. Instructor Cecili Reid discusses why and when to leverage a hosted cloud technology. Cecili steps through how to set up your environment and application to use Cloud SQL, as well as how to connect to the database and send requests. To wrap up, she covers how to incorporate unit and integration testing while mitigating costs.
Skills covered
SpringGoogle CloudWeb Development ToolsGoogleWeb DevelopmentOpen SourceDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Why GCP for Java Spring
- 02 - What you should know
1. Getting Started with GCP SDK
- 03 - What is Spring Data Cloud SQL
- 04 - Setting up your Cloud SQL database
2. GCP Cloud SQL
- 05 - Importing the Spring Data Cloud Library
- 06 - Configuring your application
- 07 - Using the Spring Data Cloud library
- 08 - Challenge - Adding a new entity
- 09 - Solution - Adding a new entity
3. Validating through Testing
- 10 - Unit vs. integration testing
- 11 - Unit testing
- 12 - Integration testing - In Cloud SQL
- 13 - Integration testing - In memory
- 14 - Challenge - Add tests for the GET endpoint
- 15 - Solution - Add tests for the GET endpoint
Conclusion
- 16 - Next steps with Spring Cloud GCP