Building a High-Performance App on Cloud Run

ADVANCED
180 minutes
5 tasks

In this advanced lab, you will build a fully functional, high-performance application deployed on Google Cloud Run. You'll integrate Cloud SQL for data storage and use IAM for security access control. The lab will teach you how to configure concurrency, instance settings, and request handling, along with enabling tracing and logging for monitoring application performance. This lab offers a practical scenario where your application must sustain a load of 1000 concurrent users while minimizing latency to under 200ms.

Scenario

A travel booking company needs to quickly deploy a scalable application that handles increased traffic efficiently. The company targets maintaining under 200ms latency while supporting up to 1000 concurrent users. Using Google Cloud Run and Cloud SQL, you will construct an application architecture that meets these demands while implementing robust security and monitoring.

Learning Objectives

  • Deploy a scalable application on Google Cloud Run
  • Integrate with Cloud SQL for persistent data storage
  • Configure instances for optimal performance and concurrency
  • Implement IAM for secure application access
  • Enable tracing and logging for monitoring purposes

tasks (5)

task 1: Create and configure a Cloud SQL instance

25 min

task 2: Deploy the application on Cloud Run

35 min

task 3: Integrate with Cloud SQL and apply IAM roles

40 min

task 4: Enable application monitoring with Cloud Trace and Logging

30 min

task 5: Optimize application performance and concurrency settings

50 min

Prerequisites

  • Basic understanding of Cloud Run and its settings
  • Familiarity with IAM roles and policies
  • Experience with SQL databases, specifically Cloud SQL
  • Understanding of Google Cloud monitoring tools

Skills Tested

Deploy using Google Cloud RunIntegrate applications with Cloud SQLConfigure IAM roles for secure accessOptimize application performance and concurrency settingsEnable advanced logging and tracing