routing-architecture

Implement lock-free health-aware routing across 66+ providers with seven strategies.

104|19|Updated Jul 15, 2025
One-click install
npx skills add https://github.com/majiayu000/litellm-rs --skill routing-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: routing-architecture
Source: https://github.com/majiayu000/litellm-rs/tree/main/.claude/skills/routing-architecture
Command: npx skills add https://github.com/majiayu000/litellm-rs --skill routing-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LiteLLM-RS routing architecture delivers a lock-free, health-aware provider selection mechanism to maximize throughput and reliability in multi-provider LLM deployments.

Core Features & Use Cases

  • Seven routing strategies (SimpleShuffle, RoundRobin, LeastBusy, LatencyBased, CostBased, UsageBased, RateLimitAware) enable flexible load distribution across 66+ providers.
  • Built-in health checks, fallback chains, and configurable policies maintain service continuity during provider failures and outages.
  • Common use cases include latency-optimized routing, cost-aware provider selection, quota management, and rate-limit aware routing under high concurrency.

Quick Start

Configure your router with a chosen strategy (e.g., latency_based), list the providers, and enable health checks to begin routing across providers.

Frequently Asked Questions about routing-architecture

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

FAQPage Schema
How do I handle multi-provider LLM routing when a provider fails?

Multi-provider LLM routing handles provider failures by using built-in health checks and fallback chains to automatically redirect traffic. The router continuously tracks provider health to maintain service continuity during outages.

What routing strategies optimize LLM latency and cost across providers?

LLM routing optimizes latency and cost using strategies like LatencyBased, CostBased, and UsageBased routing. These configurable load-balancing policies dynamically select providers based on real-time performance metrics and quota constraints.

Can I use Rust DashMap for lock-free concurrency in LLM load balancing?

Yes, lock-free LLM load balancing in Rust supports DashMap-based concurrency to maximize throughput. This architecture enables concurrent health tracking and provider selection without locking overhead across 66+ providers.

What's the best way to route LLM requests under high concurrency rate limits?

Routing LLM requests under high concurrency is best handled by RateLimitAware routing strategies. This approach monitors usage thresholds and dynamically distributes requests to prevent hitting provider rate limits.

Does LiteLLM-RS support configurable health-aware provider selection?

Yes, LiteLLM-RS supports configurable health-aware provider selection through a lock-free router. It applies strategies like LeastBusy and SimpleShuffle to optimize routing across 66+ providers under varying conditions.