What is routing optimization?
Routing optimization intelligently selects the best blockchain data provider for each request based on real-time analysis of cost, reliability, and performance. Instead of using a fixed provider, Uniblock dynamically routes to the optimal provider for current conditions. Use routing optimization when you need:- Lowest possible costs without sacrificing reliability
- Automatic adaptation to provider performance changes
- Optimal provider selection for different endpoint types
- Data-driven routing decisions
Routing optimization is available on Growth plans and above. View pricing β
How it works
Uniblock continuously monitors provider performance and makes routing decisions based on:- Cost analysis - Current pricing for each provider
- Reliability tracking - Success rates, uptime, error rates
- Performance metrics - Response times, throughput
- Historical data - Provider performance over time
- Endpoint-specific optimization - Different providers excel at different endpoints
Optimization factors
Cost efficiency
Uniblock tracks real-time provider pricing:| Provider | Cost per call | Monthly cost (1M calls) |
|---|---|---|
| Covalent | $0.0008 | $800 |
| Moralis | $0.0012 | $1,200 |
| Alchemy | $0.0015 | $1,500 |
| QuickNode | $0.0020 | $2,000 |
Reliability
Success rates and uptime are continuously monitored:| Provider | Uptime | Success rate | Error rate |
|---|---|---|---|
| Alchemy | 99.95% | 99.8% | 0.2% |
| Infura | 99.90% | 99.5% | 0.5% |
| QuickNode | 99.85% | 99.3% | 0.7% |
| Moralis | 99.80% | 99.0% | 1.0% |
Performance
Response times and throughput are tracked:| Provider | Avg response time | P95 response time | Throughput |
|---|---|---|---|
| QuickNode | 120ms | 250ms | 1000 req/s |
| Alchemy | 150ms | 300ms | 800 req/s |
| Infura | 180ms | 350ms | 600 req/s |
| Moralis | 200ms | 400ms | 500 req/s |
Endpoint-specific optimization
Different providers excel at different endpoint types:| Endpoint type | Best provider | Reason |
|---|---|---|
| Token balances | Covalent | Lowest cost, high reliability |
| NFT metadata | Alchemy | Best NFT data quality |
| Transaction history | Moralis | Comprehensive historical data |
| Real-time events | QuickNode | Lowest latency |
| Token prices | CoinGecko | Most accurate pricing |
Real-world examples
Example 1: Cost optimization for token balances
Scenario: Your app makes 1 million token balance requests per month. Without optimization:Example 2: Reliability optimization for critical operations
Scenario: Your trading platform requires maximum reliability for price data. Optimization preference: Reliability > Cost Routing decision:Example 3: Performance optimization for real-time data
Scenario: Your app displays real-time NFT sales and needs low latency. Optimization preference: Performance > Cost Routing decision:Example 4: Dynamic adaptation to provider issues
Scenario: Your primary provider experiences performance degradation. Initial state:Configuration
Configure routing optimization in the Uniblock dashboard:Optimization strategy
Choose what to optimize for:| Strategy | Description | Use case |
|---|---|---|
| Balanced (default) | Optimize cost and reliability equally | Most applications |
| Cost-optimized | Prioritize lowest cost | Budget-conscious apps |
| Reliability-optimized | Prioritize highest uptime | Critical operations |
| Performance-optimized | Prioritize lowest latency | Real-time applications |
Minimum reliability threshold
Set minimum acceptable reliability:| Threshold | Description | Use case |
|---|---|---|
| 95% | Allow less reliable providers | Non-critical data |
| 99% (default) | Standard reliability | Most applications |
| 99.9% | High reliability | Financial applications |
| 99.95% | Maximum reliability | Critical operations |
Cost ceiling
Set maximum acceptable cost per call:| Ceiling | Description | Use case |
|---|---|---|
| $0.001 | Very low cost | High-volume, low-margin |
| $0.002 (default) | Moderate cost | Standard applications |
| $0.005 | Higher cost acceptable | Premium features |
| Unlimited | Cost not a factor | Enterprise applications |
Endpoint-specific rules
Configure different optimization for different endpoints:Example configuration
Monitoring and analytics
Track routing optimization in the Uniblock dashboard:Cost savings
- Total cost - Current month spending
- Projected savings - Compared to fixed provider
- Cost per endpoint - Breakdown by endpoint type
- Provider cost distribution - Which providers are used most
Provider distribution
- Request distribution - Percentage of requests per provider
- Cost distribution - Percentage of costs per provider
- Reliability by provider - Success rates for each provider
- Performance by provider - Average latency for each provider
Optimization effectiveness
- Routing decisions - Why each provider was selected
- Optimization score - How well routing is optimized
- Missed opportunities - Times when better routing was possible
- Adaptation speed - How quickly routing adapts to changes
Key benefits
Cost efficiency
Save 30-50% on provider costs through intelligent routing.
Automatic adaptation
Routing adjusts automatically to provider performance changes.
Reliability assurance
Never sacrifice reliability for cost savings.
Performance optimization
Route to fastest providers for time-sensitive operations.
Best practices
Set appropriate thresholds - Balance cost savings with reliability requirements. Donβt set thresholds too aggressive.
Monitor provider distribution - Ensure routing is actually optimizing. High concentration on one provider may indicate issues.
Use endpoint-specific rules - Different endpoints have different requirements. Optimize each category separately.
Review optimization regularly - Provider pricing and performance change. Review settings quarterly.
Comparison: Fixed vs. optimized routing
| Aspect | Fixed routing | Optimized routing |
|---|---|---|
| Provider selection | Manual | Automatic |
| Cost | Fixed | Optimized (30-50% savings) |
| Adaptation | Manual updates | Real-time adaptation |
| Reliability | Single provider risk | Multi-provider resilience |
| Performance | Fixed | Optimized per endpoint |
| Maintenance | High | Low |
Next steps
Backup providers
Learn how routing optimization works with backup providers.
Auto-retry
Understand how retries work with optimized routing.
Data consensus
Combine optimization with data verification.
Dashboard
Configure optimization settings and monitor savings.