Lld
Low-Level Design
Medium
Programmable Multi-Tenant Subscription Engine
Design a backend service that manages feature access for a SaaS product. The system must support different tiers (Basic, Pro, Enterprise), custom per-customer overrides, and regional restrictions. A feature might be limited by a quota (e.g., 500 emails/month) or a boolean toggle. Developers should be able to check 'canUserAccessFeature(userId, featureId)' efficiently. The system must handle 'promotional' windows where certain features become free for a limited time.
Key concepts
decoratorstrategyspecificationfactory
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now