Skip to main content

Add Traffic Controls

After the request path is working, traffic controls let you decide how that path should behave under real application traffic. They protect shared model capacity, enforce spend policy, block unsafe content, and cache repeat responses.

Some controls run before AISIX calls the provider. Others run after the provider returns a response. The request path looks like this:

Request-side controls can stop a request before AISIX calls the provider. Rate limits, budgets, and input guardrails decide whether the request is allowed to continue. Cache lookup can return a stored response on a hit; on a miss, AISIX calls the provider.

After the provider returns, output guardrails can inspect the response before AISIX returns it to the caller.

Start with the control that matches the policy you need first. Add more controls after you understand where each one runs in the request path.

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2026. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation