Menu

Multi-tenancy: pool vs silo, tenant context, and noisy neighbor limits
📰

Multi-tenancy: pool vs silo, tenant context, and noisy neighbor limits

DEV Community: aws·System Design Simple·about 9 hours ago
#9mULSIwH
#devtoaws#devto#dev#tenant#brand
Long article (505 words) — no AI summary yet.
Reading 0:00
15s threshold

One app serves many restaurants by giving every request a verified tenant ID, then backing that ID with scoped credentials and per-tenant limits. The tenant ID is the boundary; everything else enforces it.

Silo, pool, or bridge

A silo gives each tenant dedicated resources. A pool shares resources and separates tenants by tenant context in code plus tenant-scoped access. A bridge mixes the two per layer: shared services with a database per tenant, for example. You choose per layer, not once for the whole system.

How tenant context follows a request

Follow one request from brand A that tries to read brand B's orders table.

The gateway authorizer verifies the token and resolves tenant brand-a . The integration mapping overwrites any X-Tenant-Id the client sent, and the backend accepts traffic only from the gateway, so the header cannot be forged.

The service stores brand-a in request-scoped storage: AsyncLocalStorage in Node, AsyncLocal<T> in .NET.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.