Book Image

The Definitive Guide to Modernizing Applications on Google Cloud

By : Steve (Satish) Sangapu, Dheeraj Panyam, Jason Marston
Book Image

The Definitive Guide to Modernizing Applications on Google Cloud

By: Steve (Satish) Sangapu, Dheeraj Panyam, Jason Marston

Overview of this book

Legacy applications, which comprise 75–80% of all enterprise applications, often end up being stuck in data centers. Modernizing these applications to make them cloud-native enables them to scale in a cloud environment without taking months or years to start seeing the benefits. This book will help software developers and solutions architects to modernize their applications on Google Cloud and transform them into cloud-native applications. This book helps you to build on your existing knowledge of enterprise application development and takes you on a journey through the six Rs: rehosting, replatforming, rearchitecting, repurchasing, retiring, and retaining. You'll learn how to modernize a legacy enterprise application on Google Cloud and build on existing assets and skills effectively. Taking an iterative and incremental approach to modernization, the book introduces the main services in Google Cloud in an easy-to-understand way that can be applied immediately to an application. By the end of this Google Cloud book, you'll have learned how to modernize a legacy enterprise application by exploring various interim architectures and tooling to develop a cloud-native microservices-based application.
Table of Contents (26 chapters)
1
Section 1: Cloud-Native Application Development and App Modernization in Google Cloud
5
Section 2: Selecting the Right Google Cloud Services
10
Section 3: Rehosting and Replatforming the Application
17
Section 4: Refactoring the Application on Cloud-Native/PaaS and Serverless in Google Cloud

Using Cloud SQL

To start using Cloud SQL, we will now provision an instance by performing the following steps:

  1. From the navigation menu, select SQL:

    Figure 11.13 – SQL menu option

  2. From the Cloud SQL Instances page, click CREATE INSTANCE:

    Figure 11.14 – CREATE INSTANCE

  3. From the Create an instance page, click Choose MySQL:

    Figure 11.15 – Choose MySQL

  4. Provide an Instance ID and Root password, select the Region, and click Show configuration options:

    Figure 11.16 – Show configuration options

  5. In the Connectivity section, select Private IP and unselect Public IP:

    Figure 11.17 – Cloud SQL network settings

  6. In the Flags section, click Add item:

    Figure 11.18 – Add item to flags

  7. Enter sql_mode in the Database flags field and select sql_mode:

    Figure 11.19 – sql_mode

  8. Enter the following in the sql_mode field: ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, ALLOW_INVALID_DATES, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER,...