Examples
Quick, focused routing patterns you can copy and adapt.
This directory contains focused, practical examples of LangDB's routing capabilities. Each example demonstrates a specific routing pattern that you can adapt for your use case.
Quick Examples
Example
Description
Use Case
Route users to different models based on their subscription tier
SaaS applications with premium/standard tiers
How to Use These Examples
Copy the JSON configuration from any example
Modify the conditions and targets to match your requirements
Test with your specific use case
Combine multiple patterns for complex routing scenarios
Advanced Examples
For more complex, multi-layered routing configurations, see:
Example: Building an Enterprise Routing ConfigurationExample: Routing with Interceptors and ComplianceLast updated
Was this helpful?