Design a quota management system shared by multiple upstream services. Classic example: Google Drive and Google Photos each consuming storage from a shared 100GB per-user quota. Each user has a single global quota limit. The system must support: (1) Consuming/reserving quota, (2) Releasing/returning quota, (3) Optionally querying current quota usage.…