Esempio n. 1
0
def __get_kafka_consumer(topic, consumer_group):
    pool = KafkaClientPool()
    return pool.getConsumer(appConfig.kafka_broker_endpoint, topic,
                            consumer_group)
Esempio n. 2
0
def __get_kafka_topic(topic):
    pool = KafkaClientPool()
    return pool.getTopic(appConfig.kafka_broker_endpoint, topic)