fd4s / fs2-kafka

Functional Kafka Streams for Scala

Home Page:https://fd4s.github.io/fs2-kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to check if the producer is ready to produce?

sergio-margale opened this issue · comments

I have an app that exposes an http endpoint and produces into Kafka with fs2-kafka, however I would like to not make the app ready until I'm sure that the producer is ready to produce aka connected to the broker.

Usually I could achieve that using something like producer.partitionsFor(topic) but that's not available within fs2-kafkas producers. Is there a way to achieve this?