VOOZH about

URL: https://thenewstack.io/scale-microservices-testing-without-duplicating-environments/

⇱ Scale Microservices Testing Without Duplicating Environments - 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
2025-04-15 09:00:12
Scale Microservices Testing Without Duplicating Environments
sponsor-signadot,sponsored-post-contributed,
Microservices / Software Testing

Scale Microservices Testing Without Duplicating Environments

Traditional ephemeral microservices test environments create financial and operational complexity that sandbox-based environments can solve.
Apr 15th, 2025 9:00am by Arjun Iyer
👁 Featued image for: Scale Microservices Testing Without Duplicating Environments
Featured image by Steve Johnson on Unsplash.
Signadot sponsored this post.

I’ve been talking with engineering leaders for years about the challenges of testing microservices, and one conversation keeps being repeated. It usually starts with something like: “We’ve built this amazing microservices architecture, but testing has become a nightmare.”

The Integration Testing Challenge

The promise of microservices is compelling — faster development cycles, better team autonomy and improved scalability. But this architectural approach introduces a significant testing challenge that many teams don’t fully appreciate until they’re knee-deep in it.

The reality is that local testing with mocked dependencies doesn’t provide sufficient confidence. These mocks drift from reality over time, leading to the dreaded “works on my machine” syndrome. Integration bugs often remain undiscovered until code reaches a shared environment with real dependencies, usually staging.

This creates a painful bottleneck. As one VP of engineering told me recently: “Our staging environment is like a crowded nightclub: Everyone wants in, capacity is limited and fights break out regularly over who gets access.”

The Ephemeral Environment Solution

To address these bottlenecks, many organizations have turned to ephemeral environments — on-demand, short-lived replicas of production where developers can test changes against real dependencies before merging code.

The typical implementation involves either creating separate Kubernetes namespaces or entire Kubernetes clusters, both containing all services, databases, message queues and other dependencies. Each developer gets their own isolated playground.

This solves the contention problem. But at what cost?

The Math of Traditional Ephemeral Environments

Let’s run some napkin math on what these environments actually cost. Whether using namespace isolation or separate clusters, the resource requirements remain similar since you’re duplicating all components in both models. I’ll use fairly conservative assumptions:

  • Team size: 100 developers, each needing one environment
  • Architecture complexity: 50 microservices
  • Resource requirements: Each microservice needs 2 vCPUs and 4GB RAM
  • Usage pattern: Environments active eight hours per day on weekdays only

On AWS, a t3.large instance (2 vCPU, 8GB) costs roughly $0.08/hour. Being conservative and assuming excellent bin-packing, we’d need at least 50 such instances per environment.

The annual calculation looks like this: $0.08/hour × 50 services × 100 developers × 8 hours × 5 days × 52 weeks = $832,000

Yes, you read that right. Over $800,000 annually in compute costs alone. Even with more conservative estimates and discount pricing, we’re still talking millions.

The operational burden of maintaining hundreds of ephemeral environments is enormous. Configuration drift, networking issues and resource constraints create constant headaches for platform teams. When something breaks, all development grinds to a halt.

Sandbox-Based Ephemeral Environments

There’s a fundamentally different approach to this problem that dramatically reduces both costs and operational complexity: tunable isolation through request routing in sandbox-based ephemeral environments.

When using Kubernetes with a service mesh like Istio or Linkerd, you can create a shared baseline environment with dynamic request routing. When a developer needs to test changes, they deploy only the services they’ve modified into the sandbox. Requests are routed to these services based on request headers, while unchanged services are shared across all sandboxes.

Let’s recalculate costs with this approach:

  1. Baseline environment: 50 services at $0.08/hour
  2. Developer sandboxes: On average, each developer modifies two services at a time

Annual costs: ($0.08/hour × 50 services × 1 baseline × 24 hours × 365 days) + ($0.08/hour × 2 services × 100 developers × 8 hours × 5 days × 52 weeks) = $35,040 + $33,280 = $68,320

That’s a 92% cost reduction compared to traditional ephemeral environments!

The Missing Factor: Operational Complexity

With traditional ephemeral environments (both namespace and cluster-based), your platform team becomes responsible for maintaining hundreds of replicas of your entire stack. Every configuration change, every database migration, every new service must be propagated across all environments. This creates an enormous maintenance burden that grows linearly with the number of developers.

In contrast, with the sandbox-based approach, you maintain only one baseline environment. This environment can be continuously updated through your existing CI/CD pipeline, ensuring it always reflects the current state of your main branch. The operational load stays nearly constant regardless of how many developers you add.

Real-World Impact

I recently spoke with a VP of platform engineering at a fintech company who had calculated the cost of traditional ephemeral environments at over $5 million annually. After transitioning to a sandbox-based approach, the company slashed infrastructure costs by over 85% and refocused its platform team on creating better developer experiences and tooling rather than just maintaining environments.

Another customer, a large software as a service (SaaS) provider, is planning to move away from operating its own data centers entirely, with one key factor being elimination of expensive duplicate testing environments through sandbox-based ephemeral environments.

Beyond cost savings, these companies saw significant improvements in developer productivity. Testing cycles shrank from hours to minutes, allowing developers to verify changes immediately rather than waiting for post-merge integration tests.

Conclusion

As microservice architectures continue to grow in complexity, the cost of traditional testing approaches grows unsustainably. Sandbox-based ephemeral environments offer a more efficient alternative that provides the benefits of real integration testing without the crippling infrastructure costs and operational burden.

For many organizations, this isn’t just about saving money — it’s about whether comprehensive integration testing is financially viable at all. When traditional approaches cost millions, many teams are forced to cut corners on testing, leading to quality issues and production incidents.

If you’re interested in seeing these concepts in action, check out our case study with Brex, which reduced infrastructure costs by 99% after implementing sandbox-based ephemeral environments. Its engineering team could finally scale testing to all developers without breaking the bank.

To dig into the technical implementation details of how service meshes enable sandbox-based ephemeral environments, read “Using Istio or Linkerd to Unlock Ephemeral Environments” for a deeper dive into the approach.

Signadot is a Kubernetes-native platform that empowers AI coding agents to verify code at scale. Combining fast, scalable ephemeral environments with a validation framework built for complex distributed systems, Signadot ensures high-velocity code generation results in safely merged pull requests.
Learn More
The latest from Signadot
Hear more from our sponsor
TRENDING STORIES
Arjun Iyer, CEO of Signadot, is a seasoned expert in the cloud native realm with a deep passion for enhancing the developer experience. Boasting over 25 years of industry experience, Arjun has a rich history of developing internet-scale software and...
Read more from Arjun Iyer
Signadot sponsored this post.
SHARE THIS STORY
TRENDING STORIES
AWS is also a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Real.
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.
👁 Image
Enable cloud-native agentic workflows at scale and validate code as fast as agents can generate it.