By adding that extra information to the messages sent by producer, consumers could discard messages. In such logic, we could ask ourselves why the producer couldn't have made the condition by itself, that to avoid sending an unnecessary message to the queue.
Like this, this patch looks a bit hacky in term of maintainability but it seems legit as it resolves the flood I guess.
Looks like the initial issue has been resolved with:
https:/ /bugs.launchpad .net/neutron/ +bug/1952730
By adding that extra information to the messages sent by producer, consumers could discard messages. In such logic, we could ask ourselves why the producer couldn't have made the condition by itself, that to avoid sending an unnecessary message to the queue.
Like this, this patch looks a bit hacky in term of maintainability but it seems legit as it resolves the flood I guess.