Skip to content

Cloud Architecture Without Netflix’s Problems

Architectural patterns are solutions to specific problems at specific scales, not universal truths. A mid-scale e-commerce team running Netflix-inspired microservices, Kafka, and Kubernetes consolidated into a modular application on PostgreSQL and managed AWS services, because its actual load never needed that machinery.

01

What problem were they trying to solve?

The company had grown from a monolithic Rails application to a microservices architecture over a relatively short time. The motivation was reasonable: their monolith had become slow to deploy (long build times) and difficult to scale during traffic spikes (Black Friday, product launches). But the architecture they adopted was modeled on Netflix’s publicly documented patterns: service mesh with Istio, event sourcing with Kafka, polyglot persistence with several different database technologies, and full Kubernetes orchestration across multiple environments.

The problem was that they were not Netflix. Netflix has a vast engineering organization, processes enormous volumes of video, and serves a global subscriber base. This company had a small engineering team, processed a modest order volume, and served a limited market. The architectural patterns designed for Netflix’s scale created operational overhead that consumed a large share of their engineering capacity, leaving far less time for feature development than a team of their size should have delivered.

02

How was the architecture redesigned for actual scale?

I conducted a short architecture assessment. The first step was profiling actual system load. Peak traffic during a product launch was modest. Average daily traffic was far lower still. The system processed a modest number of orders per day at peak. These numbers are significant: they are well within the capacity of a single well-configured application server. The microservices architecture was solving a scaling problem that did not exist.

The redesign followed these principles:

First principle: Consolidate services that share data. Most of the microservices accessed the same PostgreSQL database. They were not microservices. They were a distributed monolith with network calls where function calls should have been. I merged them into a single application with internal modules, eliminating the inter-service network calls entirely. Response time for the checkout flow dropped sharply, from a chain of inter-service hops to a single process with no network overhead.

Second principle: Replace Kafka with PostgreSQL LISTEN/NOTIFY for internal events. The Kafka cluster processed a message volume well below the threshold where Kafka’s distributed log architecture provides value. Kafka’s operational overhead (a multi-node cluster, ZooKeeper management, topic configuration, consumer group management) took real engineering time every week. PostgreSQL’s built-in LISTEN/NOTIFY handled the same event volume with zero additional infrastructure. For the use cases that needed durable message queuing (order fulfillment and inventory sync), I used a simple outbox pattern with a cron job.

Third principle: Replace Kubernetes with managed platform services. The Kubernetes cluster ran many pods across several nodes with Istio service mesh. I migrated the consolidated application to AWS ECS Fargate (behind an Application Load Balancer) and the remaining standalone services to AWS Lambda. Monthly infrastructure cost dropped substantially. Deployment time dropped sharply. The team no longer needed to maintain Kubernetes manifests, Helm charts, or Istio configuration.

Final principle: Consolidate to a single database technology. The system used PostgreSQL, Redis, MongoDB, and DynamoDB. The MongoDB instance stored product catalog data (a small dataset). DynamoDB stored session data (a modest number of active sessions). Redis served as both cache and message broker. I consolidated to PostgreSQL (with JSONB columns for catalog data) and Redis (for caching and sessions). Operational complexity decreased. Backup procedures simplified. The team needed expertise in fewer technologies.

03

What were the measurable outcomes?

The team recovered a meaningful share of engineering capacity that had been consumed by infrastructure maintenance. In the period after the migration, they shipped more features than in the equivalent period before. Revenue per engineer, while not the only metric that matters, increased. The on-call rotation became much quieter, because the system had fewer moving parts that could fail independently.

04

What would I change in hindsight?

I would have been more aggressive about consolidation. I left the services for payment processing, email delivery, image processing, and a third-party integration adapter separate because they had genuinely different scaling characteristics. In retrospect, only the image processing service warranted separation (it was CPU-intensive and benefited from Lambda’s per-invocation scaling). The others could have been additional modules in the consolidated application, reducing the total service count further.

I would also have started with a load test that proved the monolith could handle peak traffic before beginning the migration. I was confident based on the numbers, but the team was skeptical. A short load test demonstrating that a single ECS task could handle more than their peak traffic would have built immediate confidence and reduced resistance to the consolidation approach.

The broader lesson is that architectural patterns are not universal truths. They are solutions to specific problems at specific scales. Netflix’s architecture solves Netflix’s problems. Your architecture should solve your problems. If your problems are “we have 14 engineers and 340,000 orders per month,” the solution is almost certainly not a service mesh and event sourcing. It is a well-structured application with good deployment automation and the discipline to keep it simple until the numbers demand otherwise.