Order workflow with event bus
Prompt
Create an event-driven architecture diagram for order processing: web client, API gateway, order service, payment service, inventory service, notification service, event bus, worker consumers, Redis cache, and separate PostgreSQL databases per service. Show synchronous checkout requests separately from published events and downstream consumers.
Why this prompt works
It gives the model both the request path and the async processing path, which is the key distinction in an event-driven architecture diagram.
Follow-up prompt
Add dead-letter queue handling and annotate which events require idempotent consumers.