Why not then implement a different uuid spec similar to v7 in which the last 62 or 60 bits are a combination of random data and an identifier of the datacenter (say the first 30 bits of the hash of the datacenter.
Then in your debezium connectors simply add a plugin that takes the datacenter name as a config option and parses the uuid of every payload’s record and drops those in which the datacenter bits do not match its config, thereby eliminating round trips and also risks of infinite loops.
There’s a somewhat greater risk of collision, but as long as you’re not taking tens of thousand of inserts per ms should be fine. Maybe this is a poor man’s version of something that has a more robust spec, but it seems viable to me.
benoau•53m ago
https://en.wikipedia.org/wiki/Snowflake_ID
yakkasean•27m ago