GoogleCloudPlatform / bank-of-anthos
Retail banking sample application showcasing Kubernetes and Google Cloud
View on GitHubAI Architecture Analysis
This repository is indexed by RepoMind. By analyzing GoogleCloudPlatform/bank-of-anthos in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewBank of Anthos **Bank of Anthos** is a sample HTTP-based web app that simulates a bank's payment processing network, allowing users to create artificial bank accounts and complete transactions. Google uses this application to demonstrate how developers can modernize enterprise applications using Google Cloud products, including: Google Kubernetes Engine (GKE), Anthos Service Mesh (ASM), Anthos Config Management (ACM), Migrate to Containers, Spring Cloud GCP, Cloud Operations, Cloud SQL, Cloud Build, and Cloud Deploy. This application works on any Kubernetes cluster. If you are using Bank of Anthos, please ★Star this repository to show your interest! **Note to Googlers:** Please fill out the form at go/bank-of-anthos-form. Screenshots | Sign in | Home | | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | | | Service architecture | Service | Language | Description | | ------------------------------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | frontend | Python | Exposes an HTTP server to serve the website. Contains login page, signup page, and home page. | | ledger-writer | Java | Accepts and validates incoming transactions before writing them to the ledger. | | balance-reader | Java | Provides efficient readable cache of user balances, as read from . | | transaction-history | Java | Provides efficient readable cache of past transactions, as read from . | | ledger-db | PostgreSQL | Ledger of all transactions. Option to pre-populate with transactions for demo users. | | user-service | Python | Manages user accounts and authentication. Signs JWTs used for authentication by other services. | | contacts | Python | Stores list of other accounts associated with a user. Used for drop down in "Send Payment" and "Deposit" forms. | | accounts-db | PostgreSQL | Database for user accounts and associated data. Option to pre-populate with demo users. | | loadgenerator | Python/Locust | Continuously sends requests imitating users to the frontend. Periodically creates new accounts and simulates transactions between them. | Interactive quickstart (GKE) The following button opens up an interactive tutorial showing how to deploy Bank of Anthos in GKE: Quickstart (GKE) • Ensure you have the following requirements: • Google Cloud project. • Shell environment with , , and . • Clone the repository. • Set the Google Cloud project and region and ensure the Google Kubernetes Engine API is enabled. Substitute with the ID of your Google Cloud project. • Create a GKE cluster and get the credentials for it. Creating the cluster may take a few minutes. • Deploy Bank of Anthos to the cluster. • Wait for the pods to be ready. After a few minutes, you should see the Pods in a state: • Access the web frontend in a browser using the frontend's external IP. Visit in a web browser to access your instance of Bank of Anthos. • Once you are done with it, delete the GKE cluster. Deleting the cluster may take a few minutes. Additional deployment options • **Workload Identity**: See these instructions. • **Cloud SQL**: See these instructions to replace the in-cluster databases with hosted Google Cloud SQL. • **Multi Cluster with Cloud SQL**: See these instructions to replicate the app across two regions using GKE, Multi Cluster Ingress, and Google Cloud SQL. • **Istio**: See these instructions to configure an IngressGateway. • **Anthos Service Mesh**: ASM requires Workload Identity to be enabled in your GKE cluster. See the workload identity instructions to configure and deploy the app. Then, apply to your cluster to configure frontend ingress. • **Java Monolith (VM)**: We provide a version of this app where the three Java microservices are coupled together into one monolithic service, which you can deploy inside a VM (eg. Google Compute Engine). See the ledgermonolith directory. Documentation • Development to learn how to run and develop this app locally. • Environments to learn how to deploy on non-GKE clusters. • Workload Identity to learn how to set-up Workload Identity. • CI/CD pipeline to learn details about and how to set-up the CI/CD pipeline. • Troubleshooting to learn how to resolve common problems. Demos featuring Bank of Anthos • Tutorial: Explore Anthos (Google Cloud docs) • Tutorial: Migrating a monolith VM to GKE • Tutorial: Running distributed services on GKE private clusters using ASM • Tutorial: Run full-stack workloads at scale on GKE • Architecture: Anthos on bare metal • Architecture: Creating and deploying secured applications • Keynote @ Google Cloud Next '20: Building trust for speedy innovation • Workshop @ IstioCon '22: Manage and secure distributed services with ASM