Traffic Policy Examples
Whether you need an API gateway, multicloud failover, or want to integrate ngrok with your stack, these examples help you compose endpoints and to orchestrate traffic for common jobs to be done and problems to be solve. Wire it up, secure it, and ship it already.
Traffic Control
Rate Limit Requests
Rate limit incoming traffic to your endpoint before it hits your upstream servers.
Request ModificationTraffic Control
Route Requests
Route requests to different upstream services based on request attributes.
Connection ModificationTraffic Control
User-Agent Filtering
Filter requests based on the User-Agent header.
Connection ModificationTraffic Control
Request Modification
A/B Tests
Run simple A/B tests with using the rand.double() macro.
Request ModificationResponse Modification
Add and Remove Headers
Add or remove headers from your incoming requests or outgoing responses.
Request ModificationResponse Modification
URL Rewrites
Rewrite request URLs transparently using regular expressions.
Request Modification