Microservice Component Interactions
How the individual project components communicate at runtime.
Request–Response Flow (API)​
Background Worker Flow (Price Sync)​
SQS Message Flow​
Worker Isolation​
The InventoryAlert.Worker runs as a separate Docker container. It communicates with InventoryAlert.Api only via:
- Shared PostgreSQL — reads
StockListing, writesPriceHistory,Notification, etc. - Shared Redis — reads/writes cache, dedup keys, cooldown keys.
- SQS — consumes events published by the API, publishes events for handlers.
- SignalR Backplane (Redis) — pushes real-time notifications from Worker to API-connected clients.
There are no direct HTTP calls between the API and Worker containers.