Multi-Tenant Architecture Patterns

Luận điểm chính

Multi-tenancy là bài toán chia sẻ có kiểm soát. Mỗi layer phải trả lời riêng: tenant nào đang dùng chung storage, compute, cache, queue, search, identity và network; failure ở layer đó có thể lan tới ai; tenant context có được giữ đủ xa không.

Pattern chính

Mental model

tenant request
-> auth và tenant context
-> compute pool hoặc silo
-> cache/search/queue/database scoped theo tenant
-> quota và isolation giới hạn noisy neighbor
-> blast radius được đo theo từng shared resource

Liên kết