Plugin Configs
Understand the concept of plugin configs in Apache APISIX, which centralize plugin configurations to enhance efficiency in API management.
Overview
In APISIX, a plugin config object extracts common plugin configurations, eliminating repetitive plugin configurations on routes. This makes API management more efficient. To apply the plugins of a plugin config object in a route, refer to the plugin config ID in the route configuration.
The following diagram illustrates the concept of plugin configs with two routes pointing to two different backend systems - one for orders and the other one for deliveries. A plugin config object is used in the APISIX configuration, such that limit-count and proxy-rewrite plugins are configured in a centralized place while both routes use them:
In addition to shared plugin configs, you can still configure route-specific plugins separately on routes. For how APISIX prioritizes configurations when the same plugin is configured in multiple objects, see plugins configuration precedence.
Related
- Key Concepts - Plugins
- Admin API - Plugin Configs
- Plugin Hub (opens in Plugin Hub docs)