Key Canonical Party's topics by the entity identifier
Every inbound and outbound topic now declares the column producers must key messages by, and the stream tests assert it: a topic has three partitions, and only messages sharing a key share a partition, so without the key two changes to one party can be applied out of order. Verified on digital-core: 65 smoke checks, 100 unit tests. Source-aligned products on the Integration Bus publish to these topics under the same rule. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dd096ee4dc
commit
5a429ce175
4 files changed
+34
-5
No files matched your search
@@ -54,6 +54,7 @@ events:
|
||||
topics:
|
||||
- name: "digital-core.canonical-party.party.inbound"
|
||||
role: publish-input
|
||||
key: "party_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "party"
|
||||
schema: events/schemas/party.schema.json
|
||||
partitions: 3
|
||||
@@ -61,12 +62,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.party.outbound"
|
||||
role: subscribe-output
|
||||
key: "party_id" # set by the Flink upsert-kafka sink
|
||||
table: "party"
|
||||
schema: events/schemas/party.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.address.inbound"
|
||||
role: publish-input
|
||||
key: "address_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "address"
|
||||
schema: events/schemas/address.schema.json
|
||||
partitions: 3
|
||||
@@ -74,12 +77,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.address.outbound"
|
||||
role: subscribe-output
|
||||
key: "address_id" # set by the Flink upsert-kafka sink
|
||||
table: "address"
|
||||
schema: events/schemas/address.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.person.inbound"
|
||||
role: publish-input
|
||||
key: "person_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "person"
|
||||
schema: events/schemas/person.schema.json
|
||||
partitions: 3
|
||||
@@ -87,12 +92,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.person.outbound"
|
||||
role: subscribe-output
|
||||
key: "person_id" # set by the Flink upsert-kafka sink
|
||||
table: "person"
|
||||
schema: events/schemas/person.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.company.inbound"
|
||||
role: publish-input
|
||||
key: "company_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "company"
|
||||
schema: events/schemas/company.schema.json
|
||||
partitions: 3
|
||||
@@ -100,12 +107,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.company.outbound"
|
||||
role: subscribe-output
|
||||
key: "company_id" # set by the Flink upsert-kafka sink
|
||||
table: "company"
|
||||
schema: events/schemas/company.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.party_role.inbound"
|
||||
role: publish-input
|
||||
key: "party_role_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "party_role"
|
||||
schema: events/schemas/party_role.schema.json
|
||||
partitions: 3
|
||||
@@ -113,12 +122,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.party_role.outbound"
|
||||
role: subscribe-output
|
||||
key: "party_role_id" # set by the Flink upsert-kafka sink
|
||||
table: "party_role"
|
||||
schema: events/schemas/party_role.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.customer.inbound"
|
||||
role: publish-input
|
||||
key: "customer_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "customer"
|
||||
schema: events/schemas/customer.schema.json
|
||||
partitions: 3
|
||||
@@ -126,12 +137,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.customer.outbound"
|
||||
role: subscribe-output
|
||||
key: "customer_id" # set by the Flink upsert-kafka sink
|
||||
table: "customer"
|
||||
schema: events/schemas/customer.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.contact_address.inbound"
|
||||
role: publish-input
|
||||
key: "contact_address_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "contact_address"
|
||||
schema: events/schemas/contact_address.schema.json
|
||||
partitions: 3
|
||||
@@ -139,12 +152,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.contact_address.outbound"
|
||||
role: subscribe-output
|
||||
key: "contact_address_id" # set by the Flink upsert-kafka sink
|
||||
table: "contact_address"
|
||||
schema: events/schemas/contact_address.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.party_role_contact_address.inbound"
|
||||
role: publish-input
|
||||
key: "party_role_contact_address_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "party_role_contact_address"
|
||||
schema: events/schemas/party_role_contact_address.schema.json
|
||||
partitions: 3
|
||||
@@ -152,12 +167,14 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.party_role_contact_address.outbound"
|
||||
role: subscribe-output
|
||||
key: "party_role_contact_address_id" # set by the Flink upsert-kafka sink
|
||||
table: "party_role_contact_address"
|
||||
schema: events/schemas/party_role_contact_address.schema.json
|
||||
partitions: 3
|
||||
cleanup_policy: compact
|
||||
- name: "digital-core.canonical-party.party_association.inbound"
|
||||
role: publish-input
|
||||
key: "party_association_id" # producers MUST key by this: order holds per key, per partition
|
||||
table: "party_association"
|
||||
schema: events/schemas/party_association.schema.json
|
||||
partitions: 3
|
||||
@@ -165,6 +182,7 @@ events:
|
||||
retention_ms: 604800000
|
||||
- name: "digital-core.canonical-party.party_association.outbound"
|
||||
role: subscribe-output
|
||||
key: "party_association_id" # set by the Flink upsert-kafka sink
|
||||
table: "party_association"
|
||||
schema: events/schemas/party_association.schema.json
|
||||
partitions: 3
|
||||
|
||||
Reference in new issue
Block a user