Every Kong Gateway plugin has a static priority
that decides the order plugins run in. Dynamic plugin ordering
lets you override that order for the access phase
by giving a plugin an ordering rule that runs it before or after another plugin.
This page covers legacy, the algorithm plugin_ordering_algorithm selects by default. It
explains how legacy actually decides an order, with worked examples, and its pros, cons, and
corner cases. For the newer, opt-in algorithm, see How priority_preserving dynamic plugin
ordering works.
Dynamic ordering only affects the
accessphase. Every other phase (header_filter,body_filter,response,log) always runs in static plugin priority order, regardless of anyorderingyou set.