Design an API rate limiting system for a multi-tenant SaaS product. Walk me through your approach.

Technical