Mastering C4 Container Diagrams: Architecture of an Internet Banking System

In the realm of software architecture, clarity is currency. When you zoom in from a high-level system overview to the nitty-gritty of how applications function, you need a language that bridges the gap between abstract requirements and concrete implementation. This is where the C4 Model shines, specifically the Container Diagram. Using tools like Visual Paradigm, we can visualize complex systems—such as an Internet Banking System—in a way that is both technically accurate and easily digestible.
This tutorial breaks down the architecture of the Internet Banking System shown in the accompanying diagram. We will explore how the system is organized, the specific technologies involved, and the data flows that keep the bank running securely.
1. The C4 Model: A Brief Context
The C4 model is a hierarchical approach to software architecture documentation. It consists of four levels: Context, Container, Component, and Code. The diagram provided is a Level 2 Container Diagram. While a Context Diagram shows how a system interacts with users and other systems, a Container Diagram reveals the internal structure of that system.
In this specific diagram, we are looking at the Internet Banking System as a Software System. Inside this boundary, we find several Containers—the building blocks of the system.
2. Deconstructing the Internet Banking System
The diagram illustrates a classic three-tier architecture pattern, supported by external services. Let’s break down the key containers visible within the Internet Banking System boundary.
2.1 The Front-End: UI and Static Content
At the top of the internal stack, we have the user interface. This is split into two distinct containers:
- UI Container: This is the Single Page Application (SPA) that the user interacts with. The diagram specifies that it is built using Javascript and Angular. It is a dynamic application that runs in the browser, handling the logic for viewing balances and making payments.
- Static Content Container: This container serves the foundational assets—HTML, CSS, and JavaScript libraries—required to load the application. It acts as a repository for the “shell” of the website.
2.2 The Back-End: The Brain of the Operation
The Backend container is the most critical internal component. It acts as the bridge between the user’s browser and the bank’s internal data. The diagram notes that this container is built using Java and Spring Boot.
Its responsibilities include:
- Exposing a JSON/HTTPS API for the UI to consume.
- Reading from and writing to the Database.
- Communicating with the external Core Banking System for transactional integrity.
- Interacting with the Statement Store.
2.3 Data Storage: Databases and Archives
Data persistence is handled by two distinct containers, reflecting a separation of concerns:
- Database: This container uses MySQL. It stores the operational data required for the banking system to function in real-time, such as user account information and access logs.
- Statement Store: This container uses Amazon Web Services (AWS) Simple Storage Service (S3). This is a cloud-based object storage solution. It holds bank account statements rendered as PDF files. This separation makes sense because PDF generation and storage are often distinct from the high-speed transactional needs of a SQL database.
3. External Interactions and Ecosystem
No banking system exists in a vacuum. The diagram highlights two crucial external systems that the Internet Banking System relies upon.
3.1 The Core Banking System
This is the legacy or primary system of record for the bank. The Internet Banking System does not store the “truth” about every transaction here; instead, it queries the Core Banking System to perform operations. The diagram shows the Backend container making API calls (via XML/HTTPS) to this system to handle customer information and transactions.
3.2 Amazon Web Services Simple Email Service
Communication with the customer (the Personal Banking Customer) happens via email. The system connects to AWS Simple Email Service (SES) to send notifications, such as transaction confirmations or alerts. This is a classic example of using a PaaS (Platform as a Service) to handle non-core functionality like email delivery.
4. Data Flows and Protocols
The arrows in the diagram are not just lines; they represent specific communication protocols and data flows:
- JSON/HTTPS: The UI and Backend communicate via modern RESTful APIs using JSON over HTTPS. This ensures a lightweight, fast, and secure data exchange.
- XML/HTTPS: The Backend communicates with the Core Banking System using XML. This is typical for older enterprise banking systems that prefer structured, verbose data formats.
- REST/HTTP: The Backend reads and writes to the Statement Store (AWS S3) using standard REST/HTTP protocols, which is the native way to interact with cloud object storage.
5. Modeling Best Practices: Why Use Containers?
When creating a diagram like this, you are making architectural decisions visible. You are deciding that the UI is separate from the Backend, and that the Database is separate from the Statement Store. This separation allows developers to deploy, scale, and secure these parts independently. For example, if you need to handle more PDF generation, you scale the Statement Store without affecting the MySQL database.
Conclusion
This C4 Container diagram provides a high-level yet detailed view of the Internet Banking System. It clearly delineates the responsibilities of the Angular frontend, the Java backend, and the supporting data stores. By visualizing these interactions with AWS and the Core Banking System, architects and stakeholders can quickly understand the system’s complexity and dependencies, facilitating better decision-making for future development and maintenance.