
🏛️ Government & Public Sector · C4 Architecture · Pro
A single online portal where citizens apply for government services: identity login, a service catalogue, document storage and payments to the treasury.
C4 Architecture diagrams are part of Pro. Anyone can view this one; generating and editing it needs Pro.
Drawing diagram…
A citizen services portal: citizens log in with national digital identity (Aadhaar-based e-KYC) via an identity provider, browse a service catalogue and apply for certificates and licences. A workflow engine routes applications to department back-office systems. Supporting documents are pulled from DigiLocker, and fees are paid through the government payment gateway. Status updates go out by SMS.
C4Container
title Citizen Services Portal
Person(citizen, "Citizen", "Applies for services")
Person(officer, "Department Officer", "Reviews applications")
System_Boundary(portal, "Citizen Services Portal") {
Container(web, "Portal Web App", "Angular", "Service catalogue, applications")
Container(api, "API Gateway", "Nginx", "Routing and throttling")
Container(apps, "Application Service", "Java", "Forms and status")
Container(wf, "Workflow Engine", "Camunda", "Approval routing")
Container(backoffice, "Back Office", "React", "Officer workbench")
ContainerDb(db, "Applications DB", "PostgreSQL", "Applications and decisions")
}
System_Ext(idp, "National Identity", "e-KYC login")
System_Ext(docs, "DigiLocker", "Verified documents")
System_Ext(pay, "Gov Payment Gateway", "Fees and treasury")
Rel(citizen, web, "Uses")
Rel(web, idp, "Logs in via")
Rel(web, api, "Calls", "HTTPS")
Rel(api, apps, "Routes")
Rel(apps, db, "Stores")
Rel(apps, wf, "Starts approval")
Rel(officer, backoffice, "Uses")
Rel(backoffice, wf, "Completes tasks")
Rel(apps, docs, "Fetches documents")
Rel(apps, pay, "Collects fees")How a building permit or trade licence application moves through a government office: scrutiny, site inspection, fees and the final certificate.
How a service verifies a person's identity with a national ID and OTP (e-KYC), with consent and without storing the ID number.
How a taxpayer files an income tax return online: pre-filled data, computation, payment of any balance tax and e-verification.
The states of a citizen complaint in a public grievance system: registration, assignment to a department, resolution, citizen feedback and escalation.
A schema for digitised land records: parcels with survey numbers, owners and shares, mutations, encumbrances and map references.
A city's integrated command and control centre (ICCC): one operations room that brings together traffic, surveillance, emergency response and utilities.