flowchart LR
subgraph Client
UI[Web app]
Cache[(Local cache)]
end
subgraph Services
API[API gateway]
Auth[Auth service]
Orders[Order service]
end
subgraph Storage
DB[(Orders DB)]
end
UI --> API
UI --> Cache
API --> Auth
API --> Orders
Orders --> DB
Auth -. token .-> UISyntax
flowchart(orgraph) and a direction:TB,TD,BT,LRorRL.A[text]is a node; the brackets pick the shape —(round),([stadium]),[(database)],((circle)),{decision},{{hexagon}}.-->is an arrow,---a line,-.->dotted,==>thick;-- text -->or-->|text|labels it.subgraph name … endgroups nodes, anddirectioninside one sets its own.classDef,classandstylerestyle nodes.