bamboohr-rate-limits

Featured

Implement BambooHR rate limiting, backoff, and request optimization. Use when handling 429/503 rate limit errors, implementing retry logic, or optimizing API request throughput for BambooHR. Trigger with phrases like "bamboohr rate limit", "bamboohr throttling", "bamboohr 429", "bamboohr 503", "bamboohr retry", "bamboohr backoff".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# BambooHR Rate Limits ## Overview BambooHR does not publish exact rate limits, but the API returns `503 Service Unavailable` with a `Retry-After` header when you exceed them. This skill covers detection, backoff, request optimization, and queue-based throttling. ## Prerequisites - BambooHR API client configured - Understanding of async/await patterns ## Instructions ### Step 1: Understand BambooHR Rate Limiting Behavior BambooHR rate limiting details: | Signal | Value | Description | |--------|-------|-------------| | HTTP Status | `503` | Primary rate limit signal | | `Retry-After` header | seconds (e.g., `30`) | How long to wait before retrying | | `X-BambooHR-Error-Message` | varies | May contain rate limit detail | | HTTP Status `429` | rare | Some endpoints return 429 for employee count limits | **Key insight:** BambooHR uses `503` (not `429`) for rate limiting. Failed authentication attempts also count toward rate limits, so ensure your API key is valid before making many requests. ### Step 2: Implement Retry-After Aware Backoff ```typescript import { BambooHRApiError } from './client'; interface RetryConfig { maxRetries: number; baseDelayMs: number; maxDelayMs: number; } const DEFAULT_RETRY: RetryConfig = { maxRetries: 5, baseDelayMs: 1000, maxDelayMs: 60_000, }; async function withBambooHRRetry<T>( operation: () => Promise<T>, config = DEFAULT_RETRY, ): Promise<T> { for (let attempt = 0; attempt <= config.maxRetries; attempt++) { t...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category