Design a rate-limiter class that can be integrated into an API gateway to prevent denial-of-service attacks for Oscar Health.