api-reference/intelligent-router-api-reference/overview.mdx
Dynamo is an open-source dynamic routing system designed for payment processing. It intelligently routes payments to different processors based on real-time metrics, helping to optimize payment flows and increase transaction success rates.
# Clone the repository
git clone https://github.com/yourusername/dynamo.git
cd dynamo
# Configure Redis
# Make sure Redis is running on localhost:6379 or update the config file
# Build the core service
cargo build --release
# Run with development configuration
./target/release/dynamo
# Clone the repository
git clone https://github.com/yourusername/dynamo.git
cd dynamo
# Build the Docker image
docker build -t dynamo:latest .
# Run with default configuration
docker run -p 8000:8000 -p 9000:9000 dynamo:latest
# Run with custom configuration
docker run -p 8000:8000 -p 9000:9000 -v $(pwd)/config:/app/config dynamo:latest
# Make a routing decision based on success rates
grpcurl -d '{"id": "merchant1", "params": "card", "labels": ["stripe", "adyen"], "config": {"min_aggregates_size": 5, "default_success_rate": 100}}' \
-plaintext localhost:8000 success_rate.SuccessRateCalculator/FetchSuccessRate
# Update success rate data with payment results
grpcurl -d '{"id": "merchant1", "params": "card", "labels_with_status": [{"label": "stripe", "status": true}], "config": {"max_aggregates_size": 10, "current_block_threshold": {"max_total_count": 5}}}' \
-plaintext localhost:8000 success_rate.SuccessRateCalculator/UpdateSuccessRateWindow
For more examples, see our Examples Documentation.
Dynamo consists of two main components:
The project uses a workspace structure:
crates/
āāā dynamo/ # Main routing service
āāā procesmo/ # WebAssembly data processing module
We welcome contributions from everyone! Here's how you can help:
git checkout -b feature/amazing-featuregit commit -m 'Add some amazing feature'git push origin feature/amazing-featureSee https://github.com/juspay/hyperswitch-intelligent-router/blob/main/CONTRIBUTING.md for detailed guidelines.