---
title: "How OrderServ achieved up to 64% cost savings with multi-tenant ECS"
description: "Cognizant's OrderServ food-ordering platform moved from one dedicated ECS Fargate cluster per brand (21 microservices each) to a shared multi-tenant cluster."
url: "https://swe.quest/articles/how-orderserv-achieved-up-to-64-cost-savings-with-multi-tenant-ecs-935530e80e7948f4"
canonical: "https://aws.amazon.com/blogs/architecture/how-orderserv-achieved-up-to-64-cost-savings-with-multi-tenant-ecs/"
source: "AWS Architecture Blog"
published: "2026-11-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["multi-tenancy","cloud","cost-optimization","capacity-planning","observability"]
---

# How OrderServ achieved up to 64% cost savings with multi-tenant ECS

A post on [AWS Architecture Blog](https://swe.quest/sources/aws-architecture.md), published 2026-11-06, 13 min read, Case study. Original: [https://aws.amazon.com/blogs/architecture/how-orderserv-achieved-up-to-64-cost-savings-with-multi-tenant-ecs/](https://aws.amazon.com/blogs/architecture/how-orderserv-achieved-up-to-64-cost-savings-with-multi-tenant-ecs/)

## Summary

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%.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- Amazon ECS and Fargate
- EC2 Auto Scaling ([easy posts on Scaling](https://swe.quest/tags/scalability.md?difficulty=easy))
- AWS IAM roles and policies ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

Amazon ECS, AWS Fargate, Bottlerocket, EC2 warm pools, FireLens, Amazon EventBridge, Passkeys, Valkey

## Related posts

- [Cost Optimisation in ECS: Integrating Spot Instances at Scale](https://swe.quest/articles/cost-optimisation-in-ecs-integrating-spot-instances-at-scale-f52eab0cd796c438.md): Deliveroo Engineering · 2025-09-12 · Medium · 5 min read · Cost optimization, Cloud platforms, Capacity planning, Resilience
  Deliveroo 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.
- [Single-tenant Titus: VM-level isolation on a multi-tenant container platform](https://swe.quest/articles/single-tenant-titus-vm-level-isolation-on-a-multi-tenant-container-platform-3e32ce6c463704b4.md): Netflix TechBlog · 2026-10-22 · Medium · 27 min read · Multi-tenancy, Containers, Kubernetes, Virtualization, Performance engineering
  Netflix 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.
- [How Rakbank built centralized observability at scale with Amazon OpenSearch Service](https://swe.quest/articles/how-rakbank-built-centralized-observability-at-scale-with-amazon-opensearch-1bb98e77fef163aa.md): AWS Architecture Blog · 2026-11-17 · Medium · 9 min read · Observability, Cost optimization, Cloud platforms, Search, Kubernetes
  Rakbank'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.
- [Outgrowing Lambda Functions, Not Lambda | Honeycomb](https://swe.quest/articles/outgrowing-lambda-functions-not-lambda-honeycomb-70c5a0734377ce87.md): Honeycomb · 2026-11-25 · Medium · 20 min read · Serverless, Cost optimization, Cloud platforms, Capacity planning, Observability
  Honeycomb 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.
- [Rapidly scaling online storage to serve over 1 billion ChatGPT users (Part II)](https://swe.quest/articles/rapidly-scaling-online-storage-to-serve-over-1-billion-chatgpt-users-part-ii-1fe17c5ac1f7349f.md): OpenAI · 2026-10-23 · Medium · 18 min read · Multi-tenancy, Distributed databases, Scaling, Capacity planning, Cloud platforms
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
