Python Rate Limiter Implementation

# Introduction In this challenge, we will implement a simple rate limiter using the Python language. API interfaces often limit the frequency of client access to prevent attacks such as DDOS. A rate limiter can restrict the maximum number of method executions within a certain time period. We will implement the rate limiter as a decorator or a context manager, and it will support passing a callback function to handle when the rate exceeds the limit.

|
60 : 00

Click the virtual machine below to start practicing