Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-4818

CloudEvents: Propagate "partitionkey"

XMLWordPrintable

    • False
    • False

      As per the CE partitioning extension, the "partitionkey" attribute "can be used to determine which bucket each event goes into". We should set it to a value derived from the change event key. I can think of two ways:

      • Stringified JSON-representation of the key, e.g. "{\"id\" : 1234, \"sub-id\" : 56}"
      • semicolon-separated concatention of all key field(s), e.g. "id:1234;sub-id:56", similar to what we do for the "id" field

      I'd vote for the latter. Any thoughts?

            Unassigned Unassigned
            gunnar.morling Gunnar Morling
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: