Design a Quota System

Asked at Snowflake · System Design for ML · Difficulty: Hard · Last asked Feb 13, 2026

Design a quota management system that tracks and enforces resource usage limits across multiple backend services — e.g. Google storage shared between Drive, Photos, and Gmail. Every upload must check whether the user has enough space. The hard part is strict enforcement under high concurrency: a user must never exceed their limit, yet the check must be fast.

Loading the problem…