Make use of vulcand dynamic bucket config

Hmm, if the order of middlewares in the chain is a header based first and a static is second, Then in case of header based middleware failure the static won't get a chance to be executed, right. If the order of middlewares is reversed, then static rate is applied first, then header based middleware will do its round and if it fails then entire request fails. So request will fail in both cases.

So it seems the second static middleware won't be able to help, unless you won't header based middleware allow request to be executed in case of any failure.