r/devops • • Sep 14 '26

Architecture Feedback needed on the architecture

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 :)

27 Upvotes

8 comments sorted by

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.

1

u/dealsarelove Sep 14 '26

Thanks for replying. Fair points as I missed explicitly showing the private endpoints on the architecture.

But my plan definitely is to use private endpoints to services where possible and applicable including DB, Key Vault, Redis, etc.

The BullMQ worker is indeed a nodejs based queue (relies on redis) running as a scalable separate container app. Agree with your point..

The retries/idempotency are handled by BullMQ and Redis as it is its job.

Please let me know if I still have missed anything from your point :)

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/dealsarelove Sep 14 '26

Thanks… Yes that’s really helpful. My bad on not showing the PE paths but I definitely intend to have those in place.

1

u/J_tt Sep 15 '26

Are you using a CloudFlare origin cert for the HTTPs to your ingress?

1

u/dealsarelove Sep 15 '26

Yes. For now. I may switch to our own domain issued cert later on.

1

u/J_tt Sep 15 '26

If you do a DNS challenge you can use let’s encrypt and keep CloudFlare on top