Configuring Kafka
Kafka supports extensive configurability in the KafkaProducer API and you can configure them in Sterling™ Order Management System properties, which passes these configurations through to the KafkaProducer.
You can configure Kafka in Sterling Order Management System as pass-through properties under the
property vendor of kafka. You can configure a group of properties for a specific
Kafka cluster but you can also configure multiple Kafka configurations for a single cluster. Each
such configuration group is identified by their configuration group ID.
- cgrp.cl1.producer.<config_key>=<config_value> In this
example, <config_key> represents the configuration key to be passed through to
the KafkaProducer API and <config_value> represents its
configurable value.- cgrp.global.producer.<config_key>=<config_value>You can define the override property in the customer_overrides.properties file
with kafka.prefix.
- cgrp.<config_group_id>.producer.bootstrap.servers - OMS default value 'localhost:9092'- cgrp.<config_group_id>.producer.key.serializer - OMS default value 'org.apache.kafka.common.serialization.StringSerializer'- cgrp.<config_group_id>.producer.value.serializer - OMS default value 'org.apache.kafka.common.serialization.StringSerializer'If any Kafka configuration is not provided as a pass-through property or not overridden at service level, Kafka assumes the default Kafka value for the same.
For more information, see Kafka documentation.