Event-Driven Architecture (D2) — Dead-Letter Queue
Producer, topic, consumers and a dead-letter queue.
What this template contains
- Source
- 10 lines
Make it your own.
producer -> topic: publish
topic -> consumer1: subscribe
topic -> consumer2: subscribe
consumer1 -> db1
consumer2 -> db2
topic.shape: queue
db1.shape: cylinder
db2.shape: cylinder
dlq: Dead Letter Queue
consumer1 -> dlq: on error