Back to blog

GDPR Architecture Diagram: Visualizing Data Privacy Compliance (2026)

How to draw a GDPR architecture diagram. Document data flows, consent management, data subject rights, retention policies, and cross-border transfer safeguards visually for privacy audits and DPIAs.

R
Ryan·Senior AI Engineer
·

A GDPR architecture diagram maps where personal data lives in your system, how it flows between services, who can access it, and what controls enforce compliance with the General Data Protection Regulation. Unlike a generic system diagram, a GDPR diagram makes the data subject's perspective central: consent capture, lawful basis per processing activity, data subject rights flows, retention schedules, and cross-border transfer safeguards must all be explicit.

Whether you're preparing a Data Protection Impact Assessment (DPIA), responding to a regulator inquiry, or onboarding a new DPO, a clear GDPR architecture diagram cuts weeks of documentation effort. This guide shows you what to include, the most common pattern variants, and ready-to-use prompt templates for generating GDPR diagrams from plain English.

Six components every GDPR architecture diagram must include

  • Personal data inventory: Every service, database, or third-party integration that stores or processes personal data. Annotate the data categories (name, email, health data, location, device identifiers) and the sensitivity classification (standard vs. special-category per Art. 9).
  • Lawful basis mapping: For each processing activity, label the GDPR lawful basis — consent (Art. 6.1.a), contract performance (Art. 6.1.b), legal obligation (Art. 6.1.c), or legitimate interests (Art. 6.1.f). This is what auditors check first.
  • Consent management platform (CMP): Show how consent is captured (cookie banner, sign-up form), stored (consent database with timestamp and version), propagated to downstream systems (consent API, Kafka event), and respected at processing time (consent check before marketing sends).
  • Data subject rights workflow: The end-to-end flow for handling DSRs (Data Subject Requests): access (Art. 15), rectification (Art. 16), erasure / right to be forgotten (Art. 17), portability (Art. 20), restriction (Art. 18), and objection (Art. 21). Include the identity verification step and the 30-day SLA clock.
  • Data retention and deletion: Retention schedules per data category, the automated deletion pipeline (job scheduler → data stores → backups → audit log), and the tombstoning pattern for systems where hard deletion is impractical (e.g., event-sourced architectures).
  • Cross-border transfer mechanism: If personal data flows outside the EEA, show the transfer mechanism (Standard Contractual Clauses, Adequacy Decision, BCRs) annotated on the data flow arrow between the EU system and the recipient country.

Prompt templates for GDPR architecture diagrams

SaaS product — core data flow diagram

"Our SaaS application collects user registration data (name, email, company) stored in PostgreSQL in AWS eu-west-1. User behavior events (clicks, feature usage) are sent to Segment, which forwards them to Mixpanel (analytics, SCCs in place) and our data warehouse in BigQuery EU. For marketing, Mailchimp receives email addresses of opted-in users via a Segment destination — consent is captured at signup via a checkbox and stored with timestamp in the users table. A GDPR DSR portal allows users to download their data as JSON or request deletion; deletion triggers a saga that removes records from PostgreSQL, Mixpanel, Mailchimp, and marks the user as deleted in BigQuery (PII replaced with a pseudonymous hash). All deletion events are logged to an audit table with operator ID, timestamp, and affected records count."

Consent management and propagation

"A cookie consent banner (OneTrust CMP) captures user consent choices on page load. Choices are stored in a Consent Service (PostgreSQL) with user ID, consent version, timestamp, and individual purpose flags (analytics, marketing, personalization). On consent change, the Consent Service publishes a ConsentUpdated event to Kafka. Downstream consumers: the Analytics Service subscribes and enables/disables tracking calls; the Email Service subscribes and adds/removes users from marketing lists; the Personalization Service subscribes and enables/disables behavioral profiling. A nightly reconciliation job checks that consent flags in each downstream system match the canonical Consent Service state and pages the on-call engineer on mismatch."

Data Subject Request (DSR) handling flow

"Users submit DSRs via a self-service portal or email to privacy@company.com. Requests are logged in a DSR Tracker (Jira project) with a 30-day SLA timer. The DPO team verifies identity via a one-time code sent to the registered email. For erasure requests: a deletion saga orchestrator sends delete commands to PostgreSQL, Redis, S3 (user uploads), Intercom (support history), and Stripe (payment methods) in sequence, collecting success/failure receipts. For access requests: a data export job queries all systems, assembles a JSON package, encrypts it, and emails a download link. All actions are logged to an immutable audit trail in CloudWatch Logs with 7-year retention per Art. 5.2 accountability principle."

Cross-border transfer architecture

"EU customer personal data is stored in PostgreSQL in AWS eu-central-1 (Frankfurt). The US-based data science team needs access for model training. Transfer mechanism: Standard Contractual Clauses (SCCs, June 2021 form) between the EU entity (controller) and the US entity (processor). Data minimization: before transfer, a pseudonymization job replaces direct identifiers (name, email, IP) with rotating pseudonyms. The pseudonymized dataset is replicated to AWS us-east-1 via DMS. The mapping table (pseudonym → real identity) stays in eu-central-1 and is never transferred. A transfer impact assessment (TIA) is documented for the US transfer given US surveillance laws."

GDPR compliance component reference

GDPR requirementTechnical implementationDiagram element
Art. 7 — ConsentCMP, consent DB, propagation eventsConsent Service + Kafka topic
Art. 15 — Right of accessData export job, DSR portalExport orchestrator → all data stores
Art. 17 — Right to erasureDeletion saga, tombstoning, backup purgeDeletion orchestrator with rollback
Art. 20 — PortabilityStructured JSON/CSV export, PKCE-authenticated downloadExport service → S3 presigned URL
Art. 25 — Privacy by designData minimization, pseudonymization, encryption at restAnnotated storage nodes with encryption labels
Art. 30 — Records of processingRoPA maintained as code (CSV or IaC comments)Per-service processing activity annotations
Art. 35 — DPIARisk assessment linked to architecture diagramRisk annotations on high-risk flows
Art. 46 — Cross-border transfersSCCs, BCRs, pseudonymization before transferTransfer mechanism label on cross-EEA data flow arrows

Common GDPR architecture diagram mistakes

  • Showing only the happy path — GDPR diagrams must show the DSR handling flow, the deletion pipeline, and the consent withdrawal path, not just data ingestion
  • Missing third-party data processors — every SaaS tool that receives personal data (Stripe, HubSpot, Intercom, Mixpanel) must appear in the diagram with the DPA relationship labeled
  • No retention schedule — annotate how long each data store retains personal data and what triggers automated deletion
  • Treating backups as out of scope — backups contain personal data and must be included in deletion workflows; omitting them is a common audit finding
  • No lawful basis labels — auditors and DPOs need to see the basis for each processing activity directly on the diagram, not in a separate spreadsheet
  • Missing the audit trail — every data access, modification, and deletion event must be logged to an immutable store; show this as a sink in your diagram

Frequently asked questions about GDPR architecture diagrams

What is a GDPR data flow diagram?

A GDPR data flow diagram maps the journey of personal data through your systems — where it enters, where it is stored, how it is processed, which third parties receive it, and where it exits or is deleted. It is the foundational artifact for a DPIA (Data Protection Impact Assessment) and the Record of Processing Activities (RoPA) required under Art. 30 GDPR.

Do I need a separate GDPR diagram or can I annotate my existing architecture diagram?

You can annotate an existing architecture diagram with GDPR-specific overlays — data category labels, lawful basis tags, retention periods, and transfer mechanism annotations. This is often more useful than a separate diagram because it grounds compliance requirements in the actual system topology. Use color coding or icon badges to distinguish GDPR-sensitive data flows from general service communication without cluttering the base diagram.

How does GDPR differ from HIPAA and SOC 2 architecture requirements?

GDPR focuses on individual data subject rights (erasure, access, portability) and requires explicit lawful basis for every processing activity — your architecture must implement rights-fulfillment workflows. HIPAA focuses on Protected Health Information (PHI) safeguards, Business Associate Agreements, and audit controls. SOC 2 is a controls framework (security, availability, confidentiality) without a specific individual rights workflow. Architecture diagrams for regulated systems typically need all three overlays, applied to the same underlying infrastructure.

Related guides: HIPAA architecture diagrams, SOC 2 architecture diagrams, EU AI Act compliance architecture, zero-trust architecture, and threat modeling diagrams.

Ready to try it yourself?

Start Creating - Free