How OrderServ achieved up to 64% cost savings with multi-tenant ECS
Cognizant's OrderServ food-ordering platform moved from one dedicated ECS Fargate cluster per brand (21 microservices each) to a shared multi-tenant cluster. Isolation is enforced by a .NET tenancy library that resolves tenant context per request with AsyncLocal, routes data access with tenant prefixes and fails closed, backed by STS session-tag scoped credentials and per-tenant Valkey RBAC. Switching from Fargate to EC2 Auto Scaling warm pools on Bottlerocket cut scale-out from 5–7 minutes to 30–60 seconds and compute cost by 47–64% with Savings Plans, using a five-layer scaling strategy that includes per-tenant throttling. A FireLens and EventBridge crash-observability pipeline with EFS-persisted .NET mini dumps costs about $10/month per service, and passkeys replaced SMS OTP to cut authentication costs by 80%.
Related posts
- Cost Optimisation in ECS: Integrating Spot Instances at Scale
Deliveroo Engineering mediumAdeptDeliveroo layered EC2 Spot Instances into its On-Demand ECS clusters by routing only workloads that pass hard eligibility rules: stopTimeout under 120 seconds, desiredCount of at least 2, stateless with no local or persistent storage, and ELB deregistration delay under 120 seconds. A custom Spot Placement Score metric, derived from AWS's Spot Placement Score API, drives near-real-time adjustment of the Spot percentage in capacity provider strategies, including disabling Spot during critical windows. A Step Functions orchestrator with Lambda determiner, updater and stability-checker steps, triggered by EventBridge, applies per-service strategies idempotently and validates health after each change. Even at a cautious 5-10% Spot share per cluster, compute costs dropped meaningfully with no observed impact on availability or latency.
- Single-tenant Titus: VM-level isolation on a multi-tenant container platform
Netflix TechBlog mediumAdeptNetflix added a single-tenant mode to Titus, its Kubernetes-based multi-tenant container platform, giving selected tasks a dedicated, right-sized EC2 instance while keeping the same API, deployment path and platform-managed hosts. Shared-kernel isolation (cgroups, CFS, iocost, HTB traffic shaping) cannot partition last-level cache, memory bandwidth, softirq budget or kernel locks, so stateful streaming jobs suffered tail-latency spikes and checkpoint restores from noisy neighbors. The team rejected microVMs (bare-metal or nested virtualization constraints, self-run hypervisor, no GPUs), gVisor (syscall overhead on IO-heavy paths) and raw EC2 (loss of the managed experience) because these workloads need resource isolation, not protection from hostile tenants. The implementation uses an allowlist in the federation layer, just-in-time autoscaling that picks the smallest fitting instance from allowed families, and anti-affinity, taints, a non-preemptible priority class and disabled repacking to guarantee one task per node.
- How Rakbank built centralized observability at scale with Amazon OpenSearch Service
AWS Architecture Blog mediumAdeptRakbank's retail digital banking platform ingests about 150 GB/day of logs from EKS microservices via a Fluent Bit DaemonSet into a cross-account, three-AZ Amazon OpenSearch Service domain reached privately over Transit Gateway, while dual-writing raw logs to S3 for 7-year compliance retention queried with Athena. ISM policies age append-only indices from gp3-backed Graviton hot nodes (0–15 days) to UltraWarm (15–30 days) to node-free S3 cold storage (30–60 days). Indices are force-merged before warm migration, and warm/cold tiers run with zero replicas because S3 provides durability. The result is roughly 55% savings over an all-hot r8g cluster. Rakbank chose Multi-AZ without Standby because Standby's 99.99% SLA reserves a third of search capacity and requires two replicas per index.
- Outgrowing Lambda Functions, Not Lambda | Honeycomb
Honeycomb mediumAdeptHoneycomb moved most of its S3-backed query mapper compute from Lambda Functions to AWS Lambda Managed Instances, eventually cutting query costs 40-56%, though the switchover itself was easy and the savings came from months of tuning. Lambda Functions had grown 5-8x more expensive per core-millisecond than EC2 because of an older Graviton mix and GB-second billing for network-bound waiting on S3. Agent-driven MCP queries also turned spiky load into a steady baseline. LMI is about 7.5x cheaper per CPU-second, but it bills for the whole fleet, so it only breaks even above roughly 12.5-14% utilization. Getting there required 16-way multi-concurrency, changes to GC, memory shedding and telemetry, capping the bang-bang autoscaler's max fleet size, and retry-then-spill routing plus query batching.
- Rapidly scaling online storage to serve over 1 billion ChatGPT users (Part II)
OpenAI mediumAdept
OpenAI's Habitat storage platform went from one shared Azure Cosmos DB container, to per-use-case dedicated containers, and back to a shared multi-tenant container. Shared containers suffered from logical partition key collisions, noisy neighbors on physical partitions, and "weak partitions" whose throughput shrank as storage-driven splits divided fixed RU/s. Dedicated containers fixed isolation but lost the smoothing effect of aggregate load, which pushed capacity planning onto every product team and caused launch-day SEVs. Hot-key throttling, QoS request tiering and a new serverless mode built with Azure (10K RU/s per physical partition, plus RU-usage-based splits) made shared tenancy work. Failover and failback outages at 20M+ QPS scale also led to co-managed operations with Azure, including joint monitoring and production-sized test accounts.