If possible, it would be great if you could use pubsub instead of polling.
At least, it would be great to set this polling interval to something less aggressive (is 5 minutes too slow?) and configurable, with some minimum. Anything more frequent than ~60 seconds becomes ~abusive at scale.
You are polling in a loop trying to discover new tags every 10s, which is less than ideal.
If possible, it would be great if you could use pubsub instead of polling.
At least, it would be great to set this polling interval to something less aggressive (is 5 minutes too slow?) and configurable, with some minimum. Anything more frequent than ~60 seconds becomes ~abusive at scale.