r/devops • • Oct 08 '26

Discussion Build and release architecture for large applications and teams

In the past I worked on a small team with about 5 developers, 2 QA, shared technical architect and devops engineer.

We used classic Azure pipelines with a build pipeline and release pipeline for each environment. dev, qa, stg, prod.

The release pipeline had a deploy ARM template step to deploy the infrastructure or any changes.

Deploy multiple app services, Apply EF migrations. Secrets were Azure Key Vault and non secrets in appsettings. This design worked really well and it was rare that we had deployment issues.

Now, I have recently transitioned to a larger team and I need to look into a modern architecture with a build once, deploy and promote to multiple environments. There could be 10 plus teams with multiple developers running builds and deployments constantly. Having the IaC in every deployment does not make sense to me.

I'm looking for suggestions on how to architect something for larger teams with multiple environments. We could have 1-2 dev environments, 1-2 qa environments, etc.

What are some patterns I should look into? If you currently work in a large environment like this what has worked well and what should I avoid.

9 Upvotes

13 comments sorted by

5

u/localhost87 Oct 08 '26 edited Oct 08 '26

Get a handle on domain driven design first. This is an architectural problem first and foremost.

The non functional requirement has changed from 1 team needs to support this, to 10 teams need to support this.

The number of contracts/interfaces that need to maintained is going to explode. You’ll need to look at things like backstage and service meshes depending on technology stack. Also multi repos vs monorepo.

This requires C-Suite involvement, or else you’ll fail and get thrown under the bus.

4

u/singh_abinashi Oct 08 '26

Build once, promote the artifact, and keep environment config out of the artifact. IaC builds the environment, the app pipeline deploys to it. I keep those as separate pipelines, because running both on every deploy means the same commit builds different things.

2

u/nautitrader Oct 08 '26

Thank you. What about appsettings for different environments? how would you handle dev, qa, stg, prd?

1

u/ItTakes2toAhegao Oct 12 '26

those settings need to live with the pipeline that deploys to those environments.

2

u/Adventurous-Hyena220 Oct 09 '26

A common approach is to build immutable artifacts once, promote them through environments, and manage infrastructure changes through a separate, version-controlled IaC workflow with clear ownership and approvals.

1

u/nautitrader Oct 12 '26

Thank you. How would you handle config values for each environment?

1

u/josejulianariza 25d ago

Your instinct is correct: applying the infrastructure template on every deployment is a massive bottleneck for 10 teams. Infrastructure should have its own lifecycle, independent of the app code.

To fix it, what works best is the "build once, deploy many" pattern. In the CI pipeline, you compile the Docker image or artifact exactly once. Then, to move it to QA or Prod, you don't recompile; you just update the version tag in a Git repository using ArgoCD or Flux.

That separation lets infrastructure (like databases or networks) update when it makes sense, and lets dev teams focus only on promoting their version in Git. It's much more auditable and prevents an app deploy from touching things it shouldn't.

1

u/nautitrader 23d ago

Could you tag the image and push to artifactory?

2

u/mralex215 Oct 09 '26

You should never ever ever rebuild after the test stage/integration stage/qa all passed. Rebuilding it invalidates tests/integration/qa etc.

So you take everything that is environment dependent out and externalize it. In theory, you want to have some sort of anchors in the environments so when you deploy something into blue prod you do "deploy <appname> <commit-id> prod-blue" and when you deploy to dev-Zane-7 you "deploy <appname> <commit-id> dev-Zane-7". In both cases if "<appname> <commit-id>" does not exist in the artifact cache it triggers your entire build/test/qa workflow.

For example prod has prod-blue, prod-green, test has test-Xn, dev have dev-Zn. So even the config files are basically the same with the anchors defining the root location/url building rules so you minimize the probability of massively different configs triggering different code paths.

1

u/ChardOk45 Oct 09 '26

the main thing with a large build and release pipeline is avoiding extra stages that add complexity without improving reliability keeping builds reproducible and separating artifact creation from deployment makes troubleshooting much easier trusted tech matters when the architecture stays manageable as the number of services and teams grows