AssetProducer#
- class openfactory.kafka.AssetProducer(ksqlClient, bootstrap_servers=None)[source]#
Bases:
ProducerKafka producer for sending OpenFactory asset data.
This class wraps a Kafka producer and binds it to a specific asset and topic used by OpenFactory.
- ksql#
Client used to interact with ksqlDB.
- Type:
- __init__(ksqlClient, bootstrap_servers=None)[source]#
Initializes the AssetProducer.
- Parameters:
ksqlClient (KSQLDBClient) – Client to retrieve Kafka topic info, typically a wrapper over ksqlDB.
bootstrap_servers (str) – Kafka bootstrap server address, defaults to value from config.