1
minute
20. Add publish and subscribe components
Date: 2024-12-16
Status
Accepted
Supercedes 18. Add publish and subscribe components
Context
We want to implement asynchronous component to process Markdown file.
Decision
As we rely on Dapr, we will use Pub/Sub component with Redis to implement asynchronous process as describe in Dapr documentation.
Consequences
We will implement a Python App based on FastAPI as a Dapr Subscriber to process our Markdown file.
We will rely on Azure Service Bus as a message broker with Queue pattern for one-to-one communication.
---
config:
look: handDrawn
theme: neutral
---
flowchart LR
MS[Node Service] --> PUB{{Dapr Pub}} --Publish--> ServiceBus[Queue] --Subsribe-->SUB{{Dapr Sub}} --> PR[Python Process]
mitigated.