added new class to implement throttling for API endpoints