Context - Converting our on-prem architecture for a web app used for B2B purposes over to cloud-native azure architecture. Feedback, comments, questions on the architecture are appreciated :)
Without seeing every box: put App Service and the database on private endpoints, use managed identity app→db instead of connection strings in config, and run queue/cron on a separate WebJob or Container App so deploys don't kill in-flight work.
Also worth calling out what handles retries/idempotency on the worker side. That's usually where B2B migrations bite after go-live.
One thing I would make explicit is the trust boundary around the API and worker. Give them separate managed identities with least-privilege access to Key Vault, Redis, storage, and the database. Keep Redis and the database on private endpoints with private DNS, then document the outbound path from Container Apps. For BullMQ, also define idempotency keys and a poison-job or dead-letter path so retries cannot duplicate side effects.
6
u/Suitable-Ad5348 Sep 14 '26
Without seeing every box: put App Service and the database on private endpoints, use managed identity app→db instead of connection strings in config, and run queue/cron on a separate WebJob or Container App so deploys don't kill in-flight work.
Also worth calling out what handles retries/idempotency on the worker side. That's usually where B2B migrations bite after go-live.
2
u/Stonks_Beskar Sep 14 '26
One thing I would make explicit is the trust boundary around the API and worker. Give them separate managed identities with least-privilege access to Key Vault, Redis, storage, and the database. Keep Redis and the database on private endpoints with private DNS, then document the outbound path from Container Apps. For BullMQ, also define idempotency keys and a poison-job or dead-letter path so retries cannot duplicate side effects.
1
u/J_tt Sep 15 '26
Are you using a CloudFlare origin cert for the HTTPs to your ingress?