jihad-akl commented on issue #25114:
URL: https://github.com/apache/beam/issues/25114#issuecomment-1403183472

   I am using this producer_config:
   {
       "bootstrap.servers": "localhost:9092",
       "enable.idempotence": true,
       "retries": 100,
       "max.in.flight.requests.per.connection": 5,
       "compression.type": "snappy",
       "linger.ms": 5,
       "batch.num.messages": 1,
       "queue.buffering.max.ms": 0,
       "queue.buffering.max.messages": 10
   }
   and this kafka: yml
   
https://github.com/conduktor/kafka-stack-docker-compose/blob/master/zk-single-kafka-single.yml
   for the producer code:
   producer = Producer(json.load(open("producer_config.json")))
       frame_no = 0
       while True:
           
           frame_bytes = "hello" + str(frame_no)
           producer.produce(
               topic="multi-video-stream", 
               value=frame_bytes, 
               on_delivery=delivery_report,
               timestamp=frame_no,
               headers={
                   "test": str.encode("test")
               }
           )
           frame_no+=1
           # producer.poll(1)
           producer.flush()
           
           time.sleep(0.1)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to