Stay organized with collections
Save and categorize content based on your preferences.
This guide helps you understand the Three tier web app application template,
which helps you quickly deploy a three tier web application stack to
Google Cloud.
The three tier web app includes the following:
Containerized apps that are deployed as serverless services:
A web-based frontend.
An API layer in the middle tier.
A SQL database backend.
An in-memory cache that serves frequently accessed data.
Products used
The application contains the following Google Cloud products:
Cloud Run: A fully managed
service that lets you build and deploy serverless containerized apps.
Google Cloud handles scaling and other infrastructure tasks so that you can
focus on the business logic of your code.
Cloud SQL: A fully managed PostgreSQL
database in Google Cloud.
Memorystore for Redis: A service
that provides application caching using a scalable, secure, and highly
available in-memory service for Redis.
Architecture
The following is the request processing flow of the application:
A web-based frontend receives requests from clients. The frontend is a
Cloud Run service, which renders an HTML client in the user's
browser.
The frontend sends requests to an API layer, which is also deployed as a
Cloud Run service.
Data that is read frequently is cached in and served from a
Memorystore for Redis instance.
Requests that can't be served from the in-memory Redis cache are sent by the
API layer to a Cloud SQL database.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-12 UTC."],[[["This guide explains the \"Three tier web app\" template, which facilitates the rapid deployment of a three-tier web application stack on Google Cloud."],["The application includes containerized apps (frontend and API layer), a SQL database backend, and an in-memory cache for frequently accessed data, all deployed as serverless services."],["The Google Cloud products utilized in this template include Cloud Run for serverless containerized apps, Cloud SQL for a managed PostgreSQL database, and Memorystore for Redis for application caching."],["The application's request processing flows from a web frontend to an API layer, utilizing a Redis cache and a SQL database for data retrieval."]]],[]]