Skip to content

Deployment Strategies

The testing chapters discuss how to validate our builds. The chapter on Release Operations helps us organize releases. Yet we have not covered how to ship these artifacts to customers. First-time installations are pretty straightforward: the user downloads an installer or runs a setup script. However, when we deploy updates, each release replaces the behavior of the previous distribution.

Any change to a working system risks degrading it, and we cannot reliably test against every variable across all our customers' systems. Yet we want to deliver features, and we need to deliver bug fixes and security patches. In fact, our SLAs demand it. The paradox of stable updates lies in deploying changes more frequently. The more often we perform a task, the more competent we become at it. In this chapter, we explore how to mitigate the risk of shipping a faulty update and reduce the impact of genuine errors.

Validating Preview Builds

Before shipping updates, we need to be confident about two things. First, do the product changes benefit our users? Second, can we ensure that the changes do not introduce adverse effects? Internal testing can take us only so far. To answer both questions, we look beyond our organization and validate our changes with active customers in real-world environments.

To gather these insights, we distribute previews of upcoming changes. Historically, we distinguished between Alpha versions, used to test functionality, and Beta versions, used to test usability. In the age of development builds, Alpha, late Alpha, early Beta, private Beta, public Beta, and Early Access, these terms have lost much of their descriptive value. Rather than rely on increasingly ambiguous labels, we'll discuss the different stages of previewing features.

(Also, as a side note, go ahead and ask a user to disregard all feedback on "usability" and focus on nothing but "functionality." Let me know how that goes.)

Qualitative previews

The crux of every preview-build format lies in the selection of participants. When shaping a product release, we need input from power users and subject-matter experts to design and iterate on a feature. Their feedback allows us to course-correct our design before making changes becomes expensive.

Industry expertise lays the core foundation for inviting customers into our preview program, but it is not enough. For participants to thrive in this role, they need to take an active part in the development of the product. Unfortunately, this disqualifies some customers who have excellent insights but are too successful and too busy in their day jobs to dedicate time to working with us.

Secondly, we look for a specific personality. Ideally, we want someone with strong opinions on a given feature and who can express them constructively, yet can step back and consider use cases beyond their own. Someone patient and empathetic enough to understand the team's release deadlines and recognize that perfect is the enemy of done. Now… we probably won't find that person. And if we do, we try to allocate the budget and hire them onto our product team.

The good news: we don't need many such people for early preview builds. In fact, keeping the group small but insightful streamlines development. Once users notably outnumber developers, qualitative previews turn into support exercises rather than validation efforts. Larger programs require dedicated personnel to oversee them. We need people with both product knowledge and communication skills, as managing these programs is much less a technical role than a mediatory one.

We want an engineer working side by side with one, maybe two, participants. Screen-recordings and asynchronous reports of issues help the team a lot, but ideally we share our screen on meeting calls and actively iterate on a feature with the user. As our developers share updates of work in progress, the best preview participants understand the current technical limitation and guide our engineers to the eventual practical needs of the customer.

At this point, feedback shapes the feature. Our initial thesis adapts as we expose it to our users, and we stay flexible to adjust its scope and timeline of development. During the early stages, we may discover that our proposed changes are less urgent than believed or that our concept works better in a different shape. Qualitative preview-programs lose their value if we already communicated a deadline to leadership and disregard feedback in order to release "on time".

Participants need to see how their feedback influences the changes we make. Often, our software forms the basis of our users' livelihoods, and detrimental changes can provoke an emotional response. We communicate why we make product decisions during the preview-program and how their input affected development, even if we ultimately shelved their ideas. Not every feedback needs to be acted on.

Inversely, we require our participants to accept the limits of developing and shipping software, even if these realities become frustrating. We can excuse occasional disagreements, but if we find that a preview-program participant causes more harm than good, we remove them from the program. Our engineers should focus on their work, not spend their time and energy arguing on the internet.

I keep mentioning a preview-build program. When we developed the first version of our product, we probably packaged it on our own machine and sent it to a friend via email. That approach doesn't scale. As we acquire more customers and employees, we transition to robust tooling to manage our preview process.

First, we provide a link or form through which users can apply to join preview programs. Once selected, participants gain access to a dedicated forum or similar communication platform. Before joining, they must accept specific licenses and terms of service. We distribute internal builds under limited warranties, making it explicit that participants are installing experimental software that should not be used with sensitive or irreplaceable data. If an update corrupts a user's data, we need maximum legal protections against liability.

Also, our users cannot opt out of telemetry and observability in preview builds; gathering data is the entire point of the exercise and we need written consent of the participants for waivers and data collection.

We use the forum to distribute builds to our preview-program participants. This means building dedicated automation and release pipelines specifically for this purpose. We bundle the appropriate licenses, add debugging, telemetry, and reporting tools, and embed the changelog metadata discussed in the chapter on Source and Artifact Management. As we iterate on features, our developers use trunk-based development and feature flags to share multiple builds per day. The high amount of artifacts become confusing if we cannot attribute each build to a specific commit and its corresponding set of changes.

Qualitative preview builds are an excellent way to gather insights that help shape and harden our development process, but they come at a cost. As work-in-progress features inevitably lack concise documentation, they require additional hand-holding by our staff. If our engineers spend more time setting up builds for our users than working on the actual feature, we shall never release.

Thus, we extend our infrastructure, build automation, and bug-reporting tools to accommodate active preview-program participants. We send them install scripts and configuration files with feature toggles enabled. As for the engineering side, we enforce a disciplined approach to trunk-based development and integrate changes frequently. If every engineer veers off to address incoming feedback in isolation, we end up in merge hell by the time we're "ready" to ship.

Open Tech Previews

Not every team can afford to manage the community required for a qualitative preview program, and our product may not even benefit from one. If our team has hands-on experience with the problem our software solves, involving external participants may add nothing but overhead in the form of an outside committee. Yet we still need external quality control.

One solution is to build in the open. Rather than catering to a specific list of individuals, we continuously publish the current state of our software. This practice takes its name from its release frequency: daily builds, nightly builds, weekly builds, or tech streams.


  • Enjoying the chapter? Unlock the rest.

    Behind the paywall: What open tech previews catch that internal testing cannot and we list deployment strategies, from the big bang to controlled releases.

    Engineering Collaboration is currently available as an Advanced Reading Copy for select readers.

    Get in touch with the author