Replication to Kafka in IMS CDC RAW format used to distribute IMS CDC workload to multiple Apply Engine Kafka Consumers.
Prerequisite
- The static MAPPINGS section must provide a source DBD Name and an alias name for the IMSDBD', for each DBD to be replicated.
Example
CDC MESSAGE formatted Kafka topics where every source object name (i.e. segment name) is written to a specified Topic specified for each DBD.
REPLICATE
IMS cdc://<host_name>:<sqdaemon_port>/<publisher_name>/<subscription_name>
TO CDC MESSAGE 'kafka://<host_name>:<host_port>/<topic>'
WITH 1 WORKER
;
OPTIONS
AVRO COMPATIBLE NAMES,
STRIP TRAILING SPACES,
NAMESPACE '<name_space>'
;
MAPPINGS
SOURCE '<imsdbd1>'
SUBJECT '<imscdc-value>
ALIAS '<alias_1>' ROOTKEYLEN <key_length_1>
SOURCE '<imsdbd2>'
SUBJECT '<imscdc-value>
ALIAS '<alias_2>' ROOTKEYLEN <key_length_2>
;
Note:
- Root key length is provided automatically by IMS Source CDC Record. That length can be overridden to a shorter length ONLY using the ROOTKEYLEN keyword.
- Precisely recommends specifying no more than one (1) worker. Contact Support if you believe your use case may require more than one.