# You don’t have a production environment

- Speaker: [Avishai Ish Shalom](/wiki/speakers/avishai-ish-shalom.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=FEMf2prhZ-4
- Transcript: [/transcripts/2019/67-FEMf2prhZ-4.md](/transcripts/2019/67-FEMf2prhZ-4.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Architecture](/wiki/topics/architecture.md), [Scalability](/wiki/topics/scalability.md), [Cloud Computing](/wiki/topics/cloud.md), [Microservices](/wiki/topics/microservices.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker argues that traditional staging and development environments are a myth because modern distributed systems and microservices are too complex and dynamic to replicate faithfully. Instead of maintaining separate staging environments that inevitably drift from production, engineering teams should embrace multi-tenancy and test directly in production. By utilizing isolated logical tenants, developers can safely run tests, debug issues, and deploy new features without affecting real users. Ultimately, multi-tenancy must be treated as a core architectural feature rather than an afterthought in cloud-native applications.

## Key points

- [1:06](https://www.youtube.com/watch?v=FEMf2prhZ-4&t=66s) The traditional development pipeline relies on dev, staging, and QA environments intended to mirror production.
- [7:00](https://www.youtube.com/watch?v=FEMf2prhZ-4&t=420s) The core assumptions of separating a system from its environment, such as determinism and state reproducibility, fail in reality.
- [17:00](https://www.youtube.com/watch?v=FEMf2prhZ-4&t=1020s) As systems scale and process incoming traffic, the boundary between the system and its environment completely blurs.
- [25:00](https://www.youtube.com/watch?v=FEMf2prhZ-4&t=1500s) Cluster variance, continuous deployments, and microservices make identical environment replication virtually impossible.
- [31:00](https://www.youtube.com/watch?v=FEMf2prhZ-4&t=1860s) Every transaction in a modern system experiences a slightly different reality, resulting in multiple production environments rather than one.
- [34:00](https://www.youtube.com/watch?v=FEMf2prhZ-4&t=2040s) The solution to this impossible replication problem is shifting from multi-instance staging to multi-tenancy.
- [34:00](https://www.youtube.com/watch?v=FEMf2prhZ-4&t=2040s) Multi-tenancy allows developers to isolate test data and workloads within production and clean them up easily.

## Takeaways

- Abandon the pursuit of a 100 percent faithful staging environment because environment drift is inevitable at scale.
- Implement multi-tenancy early as a core architectural feature to logically isolate transactions and data.
- Utilize isolated production tenants to safely run load tests, debug issues, and test new features.

## Questions this talk answers

- How can we test new microservices safely without maintaining a costly and inaccurate staging environment?
- What is the difference between multi-instance and multi-tenancy architectures in cloud applications?
- How do we implement multi-tenancy across all layers of a system including databases, logs, and APIs?

## Technologies

AWS, Kubernetes

## Tags

cloud architecture, microservices, multi tenancy, production debugging, scalability, staging environment
