Consumer Messaging Platform — WhatsApp-Class System

Solution Architecture v1.0 · Platform Architecture · 2026-08

A global consumer messaging platform architected around one commitment: the device, not the server, is the system of record. Clients hold a persistent authenticated socket, the platform accepts a message and assigns its authoritative order, fanout drives delivery per recipient device, and the ciphertext is deleted the moment delivery is acknowledged. Message content is encrypted end to end with the Signal protocol, so the platform routes what it cannot read.

23 views 23 HTML views23 SVG23 draw.io Updated 2026-08-27
Architecture views

23 views, each in three formats.

Open a view to read it in full. Every SVG carries its diagram source inside it, so it opens in diagrams.net fully editable with no import step; the draw.io files are the same diagrams as plain source.

  1. 01
    System Context

    Who uses the platform, which external services it depends on, and what crosses the boundary — with no internal components shown.

  2. 02
    High-Level Architecture

    The shape of the system in one picture: clients hold a persistent authenticated socket, the core accepts and orders, and fanout drives delivery per device.

  3. 03
    Layered Architecture

    What depends on what. Dependencies point downward only; delivery back to a device re-enters through the edge layer rather than reversing a dependency.

  4. 04
    Container Architecture

    The deployable units, their technology, and the protocol on every link — C4 level 2 for the messaging core.

  5. 05
    Registration & Device Onboarding

    Phone-number sign-up end to end: verification, attestation, identity key generation, prekey publication and contact discovery.

  6. 06
    Message Send and Delivery Path

    The primary flow: compose, encrypt, accept, fan out, deliver and confirm — with the idempotency gate that makes a client retry harmless.

  7. 07
    Delivery and Receipt State Matrix

    Every message state, what triggers it, who emits it, what the sender sees, and how long the server keeps anything at all.

  8. 08
    Fanout by Conversation Class

    Four conversation classes, four fanout strategies — showing where the cost sits and why group messaging stays affordable at 1024 members.

  9. 09
    Offline Queuing and Retry Loop

    The loop that makes delivery survive a device being off, offline or asleep — and the acknowledgement that closes it.

  10. 10
    Media Upload and Download Pipeline

    Photos, video, documents and voice notes: compressed and encrypted on device, stored as opaque bytes, distributed by CDN.

  11. 11
    Presence, Typing and Push Signals

    Three ephemeral signal classes and the privacy gate that decides whether any of them are visible at all.

  12. 12
    End-to-End Encryption Architecture

    From device key material through asynchronous session setup to per-message ratcheting — and where the platform sits, which is outside the trust boundary.

  13. 13
    Multi-Device Linking and Synchronisation

    Linking a companion device, seeding its history, and keeping four devices consistent without making the phone a relay.

  14. 14
    Voice and Video Call Architecture

    WebRTC signalling over the existing chat socket, keys derived from the Signal session, and an SFU that forwards frames it cannot read.

  15. 15
    Status and Stories Pipeline

    Ephemeral posts with an audience resolved at publish time, encrypted per post, and hard-deleted at 24 hours.

  16. 16
    Search, History, Backup and Restore

    Where conversation data actually lives, what the platform can search, and how a user moves history to a new phone without the platform reading it.

  17. 17
    Data Architecture and Ownership Zones

    Data grouped by who owns it and whether it can be rebuilt — the question that decides what a regional outage actually costs.

  18. 18
    Core Data Model

    Thirteen entities covering accounts, devices, keys, conversations, envelopes, receipts and media — and the column that is conspicuously absent.

  19. 19
    Integration and Interface Catalogue

    Every way the platform touches another system, with the protocol and cadence on each interface and the direction of the call.

  20. 20
    Security Trust Zones

    Five zones in decreasing exposure, the attacks that arrive at each, and what stops them — with the flow crossing every boundary labelled.

  21. 21
    Deployment and Multi-Region Topology

    What runs where and what survives a failure: anycast edge, two active regions, three availability zones each, accounts pinned to a home region.

  22. 22
    CI/CD and Environment Progression

    How a change reaches production and what stops a bad one — including the gates that exist specifically because this system carries cryptography.

  23. 23
    Observability and Service Levels

    Six signal classes across five pipeline stages, each ending in a defined action — the matrix form makes a missing cell visible.

The package

Everything as it was delivered.

These files are served exactly as they were produced — the diagram pages keep their own house style because that is the artifact, not a rendering of it.