Cache refresh sequence
Show a self-message and fresh-versus-stale cache behavior.
Capability: render-only specialized family.
Read the Mermaid source
sequenceDiagram
participant Browser
participant Gateway
participant Cache
participant Origin
Browser->>Gateway: Request dashboard
Gateway->>Cache: Read cached response
alt Entry is fresh
Cache-->>Gateway: Return cached response
else Entry is stale
Cache->>Cache: Acquire refresh lease
Cache->>Origin: Fetch current dashboard
Origin-->>Cache: Return current data
Cache-->>Gateway: Return refreshed response
end
Gateway-->>Browser: Render dashboard
Rendered output
Suggested prompt
Render the cache exchange and make sure the refresh lease is visible. Use examples/sources/18-cache-refresh-sequence.mmd and show me the result.
Use the Beautiflow skill. Render the cache exchange and make sure the refresh lease is visible. Use examples/sources/18-cache-refresh-sequence.mmd and show me the result. Use examples/sources/18-cache-refresh-sequence.mmd as the semantic reference; preserve its named participants, relationships, labels and authored values. Explain the system to a reader unfamiliar with this example. Keep fictional measurements and scenarios explicitly illustrative. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
2 · Diagram
Generated with:
beautiflow render examples/sources/18-cache-refresh-sequence.mmd --format png --theme catppuccin-latte --transparent --output examples/rendered/18-cache-refresh-sequence.png
Try it
Keep the live result open:
beautiflow server examples/sources/18-cache-refresh-sequence.mmd
Run Beautiflow directly:
beautiflow render examples/sources/18-cache-refresh-sequence.mmd --format svg
Or ask an agent with the Beautiflow skill:
Render the cache exchange and make sure the refresh lease is visible.
Use examples/sources/18-cache-refresh-sequence.mmd and show me the result.
