Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Throttling API Requests

via CodeSignal

Overview

Throttling manages high request volumes by slowing down requests instead of blocking them. Unlike rate limiting, which rejects excess requests, throttling adds delays when thresholds are exceeded. This keeps your API responsive and stable during traffic spikes.

Syllabus

  • Unit 1: Enhancing and Extending Delay Throttle Middleware
    • Visualizing Throttling with Console Logs
    • Implementing Request Timeouts for Better Throttling
    • Tracking Wait Times with Response Headers
  • Unit 2: Throttling API Requests with Token Bucket
    • Implementing Exponential Backoff for API Throttling
    • Implementing Token Bucket Replenishment Mechanism
    • Integrating Express with Token Bucket Throttling
  • Unit 3: Queue-Based Throttling in TypeScript REST API
    • Creating a Request Queue Data Structure
    • Implementing Request Timeout Handling
    • Processing Requests from the Queue
    • Implementing the Queue Throttle Middleware
    • Testing Queue Throttling Under Load
  • Unit 4: Tiered Token Bucket Throttling
    • Implementing Rate Limit Response Headers
    • Implementing Basic Token Bucket Throttling

Reviews

Start your review of Throttling API Requests

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.