enforce-partition-limit
) but two different scopes: the first one is global, the second one is targeting user sa-clickstream
. These Interceptors aren’t chained but the second one is overriding the first one. The sa-clickstream
service account will be allowed to create topics with 1 to 20 partitions, while other service accounts will be limited to six. If these Interceptors had different names, they would be chained, so the first one would enforce the restriction to 6 partitions.priority
: a lower value (e.g. 1) will be executed before a higher one (e.g. 100).
To ensure that Interceptors are executed in a particular order, specify a unique and correct priority
for each Interceptor.
Gateway doesn’t guarantee the order that Interceptors with the same priority are applied.
interceptor-C
is deployed only for Alice (scoping)interceptor-D
is deployed globally (scoping) but also deployed specifically for Bob (overriding)interceptor-A
and interceptor-B
are deployed globally (scoping)01
, 40
, 45
and 50
) are then considered for the final execution order (chaining)