Flowchart template
A top-down flowchart of a cache lookup: a request comes in, the payload is validated, and a decision asks whether the answer is cached. One branch returns the cached value; the other queries the database and writes to the cache before responding.
Good for
- Mapping a process or an algorithm step by step
- Documenting a decision with yes and no branches
- Runbooks and how-to guides
How to use it
- Press Use this template. It opens on the canvas in your browser, free, with no sign-up.
- Double-click any shape to rename it, or press / and type a line such as
Client -> API -> DBto add to it. - Share it as a link, present it with Shift+P, or export PNG, SVG or PDF.
In this diagram
- Request in
- Validate payload
- In cache?
- Return cached
- Query database
- Write to cache
- Response
- yes
- no