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:
paulandClaude Opus 5 committed 2026-09-18 10:55:00 +12:00
1 parent dd096ee4dc
commit 5a429ce175
4 files changed
+34 -5

No files matched your search

+3 -1
View File
@@ -2,7 +2,9 @@
-- Submitted by the platform CLI with `bin/sql-client.sh -f job.sql` on the jobmanager.
--
-- Per entity table, four Flink tables and two continuous INSERTs:
-- <table>_inbound kafka Publish Input: records producers publish (JSON, schema in events/schemas)
-- <table>_inbound kafka Publish Input: records producers publish (JSON, schema in events/schemas),
-- keyed by <table>_id: only messages sharing a key share a partition,
-- and only one partition keeps them in order
-- <table>_ods jdbc upserts inbound records into the ODS table by primary key
-- <table>_cdc postgres-cdc every change committed to the ODS table, however it arrived
-- <table>_outbound upsert-kafka Subscribe Output: compacted topic keyed by <table>_id, deletes as tombstones