client-rate-limiting

Limit client-side request rates in Go SDK clients using token bucket mechanics.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/PremModhaOfficial/go-sdk-pipeline --skill client-rate-limiting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: client-rate-limiting
Source: https://github.com/PremModhaOfficial/go-sdk-pipeline/tree/main/.claude/skills/client-rate-limiting
Command: npx skills add https://github.com/PremModhaOfficial/go-sdk-pipeline --skill client-rate-limiting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Client-side rate limit (golang.org/x/time/rate, token bucket) — per-method vs per-client, shared across requests.

Core Features & Use Cases

  • Per-method and per-client rate limiting to throttle SDK calls and prevent bursts.
  • Configurable token bucket-based throttling using golang.org/x/time/rate across multiple SDK methods.
  • Use Case: When integrating with cloud services, apply uniform throttling to avoid thrott and ensure fair usage.

Quick Start

Enable a token bucket rate limiter in your Go code to cap request throughput.

Frequently Asked Questions about client-rate-limiting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement client-side rate limiting in a Go SDK?▼

Implement client-side rate limiting in a Go SDK by applying token bucket mechanics via golang.org/x/time/rate to cap request throughput. This limits per-method request rates to prevent burst traffic and ensure fair usage across multiple services.

What is token bucket throttling and when do I need it for Go clients?▼

Token bucket throttling is a rate limiting mechanism that controls request rates by allocating tokens over time. You need it for Go clients integrating with cloud services to apply uniform throttling, avoid upstream throttling responses, and ensure predictable performance under load.

How do I configure per-method rate limits using golang.org/x/time/rate?▼

Configure per-method rate limits using golang.org/x/time/rate by setting up scoped token bucket instances for individual SDK methods. This enables controlled concurrency and applies safe defaults with error handling to cap request throughput across multiple SDK methods.

Can I apply different rate limiting scopes for individual clients and SDK methods?▼

Yes, you can apply rate limiting across different scopes for individual clients and specific SDK methods. Configurable token bucket-based throttling allows per-method and per-client rate limiting to throttle SDK calls independently and prevent bursts.

Why does my Go SDK experience burst traffic when calling cloud services?▼

Your Go SDK experiences burst traffic when calling cloud services because it lacks client-side request rate limiting. Applying a token bucket rate limiter caps request throughput, throttling SDK calls to prevent bursts and ensure fair usage across multiple services.

What are the limitations of using token bucket rate limiting for Go SDK clients?▼

Limitations of using token bucket rate limiting for Go SDK clients include relying on safe defaults and requiring manual configuration for specific per-method or per-client scopes. It controls throughput but may not handle complex concurrency scenarios without additional error handling.