VOOZH about

URL: https://thenewstack.io/pre-production-environments-key-concepts-and-best-practices/

⇱ Pre-Production Environments: Key Concepts and Best Practices - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2021-03-23 10:04:40
Pre-Production Environments: Key Concepts and Best Practices
contributed,sponsor-thundra,sponsored,sponsored-post-contributed,
CI/CD / Observability

Pre-Production Environments: Key Concepts and Best Practices

Pre-production environments — when set up correctly — can drastically improve the performance and time it takes for developers to push code.
Mar 23rd, 2021 10:04am by Ismail Egilmez
👁 Featued image for: Pre-Production Environments: Key Concepts and Best Practices
Feature image via Pixabay.
Thundra sponsored this post.
Ismail Egilmez
Ismail is the Business Development Manager at Thundra. He is enthusiastic about sales, marketing, and growth strategies.

There are several steps between writing code and putting it into production. These steps often fall under the umbrella of “pre-production.” Pre-production refers to the various staging environments that help developers safely develop, test and integrate new code.

You might expect these extra steps to slow down development and progress. But pre-production environments — when set up correctly — can drastically improve the performance and time it takes for developers to push code.

In this article, we’ll explore the various pre-production environments and discuss what components are required to create an ideal one.

The Primary Pre-Production Environments

Pre-production environments are usually built before applications go into production. The two primary environments include:

  • Development environment: The development environment provides a layer on which software engineers can build and test their code. These tests are usually limited and focus mostly on unit-style tests.
  • Test environment: Test environments are usually where QA engineers will run a long list of test cases to make sure the code acts as expected.

In the past, much of this was done manually, but now some of these steps are starting to meld together. In order to understand how this is happening, we’ll cover some other concepts — like CI/CD and environment monitoring.

Key Concepts to Consider When Setting up Your Environment

Setting up pre-production environments is a critical step for any business that maintains software. How your development team organizes its pre-production environments impacts the speed and ease with which they can maintain their code.

Small teams might use manual processes to push changes to code, such as manually pulling code from their repo and replacing the old code with it. But this isn’t sustainable for large companies with large development teams and complex software — and this is where setting up a pre-production environment is key.

Here are some concepts that can improve your pre-production environment.

CI/CD

Continuous integration and continuous delivery (CI/CD) represents a combination of best practices and operating methods that allow engineering teams to push code quickly and reliably.

Continuous integration’s technical goal is to develop, establish and maintain a consistent and automated process to build and test applications. The key word here is consistent. Having a consistent integration process in place ensures that the code being tested and packaged is reliable. With a solid CI system, teams can switch to pushing more commits because they aren’t waiting for manual processes.

Continuous delivery takes up where continuous integration leaves off.

Thundra Foresight empowers developers to build successful CI pipelines by providing deep analytics and debugging capabilities. With observability into the CI process, Thundra Foresight helps optimize build duration, enable more frequent deployments, increase productivity, and lower CI costs.
Learn More
The latest from Thundra

CI/CD acts as a complete code integration and delivery pipeline. The CI portion helps automate integration and then CD finishes the process by pushing the applications to the targeted environments. For example, as the code is pushed through the testing environments it is automatically tested by prewritten test cases. This is much easier than a QA engineer manually testing the code changes and recording the output in a spreadsheet.

Monitoring

Monitoring is not just for your DevOps production systems. Setting up monitoring in your pre-production environments can provide multiple benefits.

Chief among them is knowing that developers haven’t accidentally altered the way the monitors work with their code changes. In particular, monitoring your testing environments, test cases, and possible user paths can provide a lot of insight into what could go wrong when your code goes into production.

It’s difficult to track every possible user path and bug in modern software. Monitoring ensures that you can trace future errors more easily. Even if the test cases pass.

The ability to conditionally monitor various environments is key for your agile development teams and well-orchestrated DevOps processes. Above all, it helps push lots of code changes quickly.

Debugging and Testing Set-Up

Developing a solid testing and debugging process helps your team constantly push out high-quality code. This means implementing automated testing and intentional logging, as well as tracking for bugs.

Many of these systems used to be onsite and/or manually managed. However, with the current cloud-driven development environments and the push for automated testing, new tools have arisen.

For example, Thundra Sidekick provides developers with several debugging and testing tools — such as non-breaking breakpoints — to help simplify and streamline the testing process. In addition, Thundra Sidekick is integrated with distributed tracing, which provides the ultimate visibility for development environments.

All of these benefits can help make your pre-production processes smoother, especially in cloud environments.

Modern Design Considerations

The concepts referenced above can help improve your pre-production environment best practices. But there are new concepts that play a role in simplifying pre-production and making deployment of code simpler. In particular, the practices of containerization and microservices have been focused on trying to improve the pre-production process.

Containerization

Containers give developers the ability to create isolated modules that are contained in single units. Companies are moving to containers because that shift allows them to break up large software projects into concurrent releases from multiple small agile teams.

In theory, containers simplify the process of pushing code to your various layers. This is because the container itself should already have all of the libraries and dependencies required for the application to function. Of course, there is still the issue of databases and technical components like codebases, servers, and infrastructure that need to be managed.

Microservices

Another modern development practice is using a microservices architecture. This design method allows teams to build isolated, manageable services. This practice should make pushing code through your various environments somewhat easier. However, it also adds a layer of complexity, because tracing and monitoring become more difficult if you don’t have the right tools in place.

In short, microservices can work well in your pre-production environment as long as you’ve developed a system around it.

Maintaining Your Pre-Production Environment

Pre-production environments are not static. They don’t remain pristine with multiple developers constantly testing, editing, and updating them. This can lead your various environments to un-sync and cause problems in the future.

There are several tools and best practices your team can use to ensure that you are maintaining a robust pre-production environment.

  • Automation: Your pre-production processes should have automatic checks to ensure that each layer is staying in sync as required. For instance, implementing automated processes that scan your databases and code bases for changes in the files or data.
  • Code repository practices: This is one of the simplest ways to ensure that both pre-production and active production environments are staying in sync. Your team should not be editing code in production or test environments. This allows developers to edit code in the development environment and see, at least theoretically, how it will interact once live.
  • Version control: Tracking the many iterations of a single project allows you to revisit previous versions and ensures that your codebase doesn’t change unless it’s meant to.

Overall, these extra layers help you maintain a robust pre-production environment.

The Take-Away: Don’t Neglect Your Pre-Production Environment

A successful development process includes an organized pre-production environment. Having the right tools and best practices to manage your code integration and delivery ensures that your team is always able to put out reliable code. Maintaining your team’s CI/CD process and setting up pre-production monitoring will have a huge impact on your team’s performance.

Thundra Sidekick combines cloud debugging and distributed tracing in pre and post-production environments, empowering developers to troubleshoot and debug remote applications. Get your code into production quickly and easily. Get started for free with Thundra Sidekick.

Thundra Foresight empowers developers to build successful CI pipelines by providing deep analytics and debugging capabilities. With observability into the CI process, Thundra Foresight helps optimize build duration, enable more frequent deployments, increase productivity, and lower CI costs.
Learn More
The latest from Thundra
TRENDING STORIES
Ismail Egilmez is business development manager at Thundra, where he handles content marketing, outbound sales, partners and alliances. He is an AWS Community Builder and cloud enthusiast.
Read more from Ismail Egilmez
Thundra sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.