Frage im Vorstellungsgespräch bei Gradient Labs

Write a rate limiter in Python for a coffee shop that needs to order beans from two different providers with a preference for one and then extend it to multiple coffee shops