Skip to content
FlowScript templates

FlowScript — service architecture

Engineering-vertical FlowScript example — C4 container view from `service`, `datastore`, `actor` types.

Template previewFlowScript
SaaS platformC4 — container view · Platform teamCustomer[user]SYSTEM BOUNDARYEDGECOREDATAWeb app[Container: Next.js]EDGEAPI[Container: Go gRPC]COREWorker[Container: Go]COREPrimary store[Datastore: postgres]DATAUploads[Datastore: s3]DATACustomer → Web app (assumed entry point: declare depends: [...] on the actor)

Make it your own.

system saas {
  title: "SaaS platform"
  owner: "Platform team"
}

actor customer { title: "Customer", kind: "user" }

service web    { title: "Web app",  runtime: "Next.js", tier: "edge" }
service api    { title: "API",      runtime: "Go gRPC", tier: "core", depends: [web] }
service worker { title: "Worker",   runtime: "Go",      tier: "core", depends: [api] }

datastore primary { kind: "postgres", title: "Primary store" }
datastore blob    { kind: "s3",       title: "Uploads" }

view containers: c4_container(saas)