A lighter sequence in ZenUML text
ZenUML describes a sequence in a lighter text than a full sequence diagram. It fits async calls and short service stories you want to read as sentences and still render.
A sequence diagram is the neighbor when you need the full picture: many participants, careful ordering, and notes on the lifelines. Use ZenUML when that ceremony is more than the story needs.
ZenUML or a sequence diagram
Choose ZenUML for a compact async exchange you can skim. Choose a sequence diagram when reviewers expect classic participants and message arrows. Choose a flowchart when the logic is branching steps, not calls.
Keep the text small
1. Name the callers
State who calls whom. If the draft invents an extra service, remove that sentence from the prompt.
2. Mark the async wait
Say which call returns later. If the draft drew it as an immediate reply, correct that wording and generate again.
3. Promote a dense story
When you need loops, alts, and many participants, move to a sequence diagram. ZenUML should stay short.
How to phrase the prompt
Write the calls in order, in plain sentences: the client asks the API, the API asks the queue, the worker answers later. Mention ZenUML so the draft stays in that form. Skip class fields and packet layouts.
ZenUML questions
- Is the result still Mermaid I can edit?
- You get a diagram draft from the ZenUML description and can fix the wording, then generate again or adjust the result in the editor.
- When is a sequence diagram the better page?
- When the review depends on lifelines, sync versus async arrows, and several participants. ZenUML is the lighter writeup for a short async story.
- The draft added branches I did not ask for. What now?
- Delete the extra conditions from the prompt. If the branches are real, a flowchart or a full sequence diagram will hold them more clearly.