Serverless Architecture — Reladraw template

无服务器架构. Copy the source, paste into the official playground, done. No coordinates — every position is stated relative to something else.

Preview

API Gateway Authorizer Lambda handler SQS queue Lambda worker DynamoDB verify enqueue

Source (.reladraw)

node gw "API Gateway"
node auth "Authorizer"  right of gw
node fn "Lambda handler"  below gw
node queue "SQS queue"  right of fn
node worker "Lambda worker"  below queue
node table "DynamoDB"  below fn
edge gw -> fn
edge gw -> auth "verify"
edge fn -> queue "enqueue"
edge queue -> worker
edge fn -> table

How to use

  1. Open the Reladraw playground
  2. Paste the source above — the diagram re-solves live
  3. Export SVG from the playground, or render locally: npx reladraw serverless-architecture.reladraw -o out.svg

When to use this template

Event-driven serverless: gateway to function to queue to worker with a table at the bottom.. Use it to explain pay-per-request systems where the queue is the buffer between burst and steady state.

How to customize

  1. Add a step or node. Insert one line: node new_id 'New label' below anchor — placement is relative, so the solver re-flows the whole diagram instantly.
  2. Relabel an edge. Edit the text after the arrow: edge a -> b 'your label' — labels are the fastest way to carry rates, protocols or percentages.
  3. Change reading order. Swap a placement word: below to right of rotates a branch sideways without touching any other line.

FAQ

How do I draw this in Reladraw?

Declare each box with node, connect them with edge, and state one position per node relative to another. Paste the source from this page into the official playground and it renders immediately.

Can I use this template commercially?

Yes — the source is free to copy, modify and ship in docs, READMEs, books or client decks. No attribution required.

How do I export an image?

Render in the playground and export SVG, or run it locally: npx reladraw file.reladraw -o out.svg for CI-friendly builds.

Related templates

CI/CD PipelineUser Onboarding FlowAPI Call Sequence