SequenceSystem architectureSimple

Client to server data flow

Sequence of calls from a web client through backend services to the database and cache.

Client to server data flow preview

What this diagram shows

Step 01
Cache-aside read

Service asks cache first. On miss, falls through to the database.

Step 02
Write-through

Fresh rows are written back to the cache so the next read is warm.

Step 03
Response bubble-up

Payload travels back through the gateway to the original client.

About sequence diagrams

Sequence diagrams show how participants exchange messages over time. They are a natural fit for API calls, authentication handshakes, and distributed flows where timing and order matter.

This template is written in Mermaid — plain text you can edit, version in git, and regenerate the image from any time.

View Mermaid sourcePlain-text diagram syntax — copy or edit directly.
diagram.mmd
1sequenceDiagram
2 participant C as Client
3 participant G as Gateway
4 participant S as Service
5 participant DB as Database
6 participant K as Cache
7
8 C->>G: GET /items
9 G->>S: forward request
10 S->>K: lookup
11 K-->>S: miss
12 S->>DB: query
13 DB-->>S: rows
14 S->>K: write-through
15 S-->>G: payload
16 G-->>C: 200 OK