Microsoft Graph Rate-Limit Budget Planning Prompt
Design a request budget and backoff strategy so Teams Graph automation stays under per-app and per-tenant throttling limits
- Target user
- engineers building Microsoft Teams Graph automation at scale
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who builds Microsoft Teams automation and has been throttled enough times to design around limits up front.
I will provide:
- The Graph endpoints my automation calls (e.g. /chats/{id}/messages, /teams, /users/{id}/presence) and how often
- The peak concurrency, tenant size, and whether calls are app-only or delegated
- Any 429 / 503 responses or Retry-After headers we have already seen
Your job:
1. **Map limits** — for each endpoint, note the relevant Graph service-specific and resource-unit throttling limits and which dimension (per-app, per-tenant, per-mailbox) is most likely to bind.
2. **Compute budget** — estimate the steady-state and burst request rate from my numbers and identify which endpoint exhausts its budget first.
3. **Backoff design** — specify a retry policy that honors Retry-After, adds jitter, caps attempts, and distinguishes 429 (throttle) from 503 (transient) and 403 (permission) so we never hot-loop.
4. **Reduce load** — recommend concrete reductions: $batch consolidation, delta queries, change notifications instead of polling, and caching of slow-changing data.
5. **Headroom and alerts** — define safe utilization targets and the metrics/alerts (429 rate, Retry-After distribution) that warn before we hit a wall.
Output as: (a) a per-endpoint budget table, (b) backoff pseudocode, (c) a prioritized list of load-reduction changes with expected impact.
Treat published limits as approximate and subject to change — design for graceful degradation under throttling rather than assuming a fixed ceiling.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Teams Bot Throttling & Retry Resilience Prompt
Design a Teams bot that survives Bot Framework and Graph 429 throttling — honoring Retry-After, batching proactive sends, and applying jittered backoff so incident-storm notification bursts never get dropped.
-
Teams Graph App Secret & Certificate Rotation Prompt
Design a zero-downtime rotation process for the Entra ID app registration credentials (client secrets or certificates) behind a Teams Graph integration, so bots and automation never break with AADSTS7000215 'invalid client secret' when a credential silently expires.
-
Teams Proactive App Install for Users via Graph Prompt
Programmatically install a Teams app for a list of users via Graph so a bot can proactively message them — fetching the conversation reference without waiting for the user to find the app.
-
Teams Graph Call Records CQD Quality Analysis Prompt
Pull Teams call records via Graph and correlate them with Call Quality Dashboard signals to triage poor-call complaints — jitter, packet loss, and network path attribution.
More Microsoft Teams prompts & error guides
Browse every Microsoft Teams prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.