At the moment we are only able to produce records one at a time and are also forced to flatten to "block" waiting for the broker ack if we do not want to take advantage of the asynchronous behaviour introduced by the exposed produce method.
It would be nice to change API to something like:
-
produce(..) :F[Metadata]
-
produceAsync(...) : F[F[Metadata]]
-
produceChunk() : F[List[Metadata]]
-
produceChunkAsync() : F[F[List[Metadata]]]
This is super pseudo code but I think the intent is here. WDYT ?
At the moment we are only able to produce records one at a time and are also forced to flatten to "block" waiting for the broker ack if we do not want to take advantage of the asynchronous behaviour introduced by the exposed
producemethod.It would be nice to change API to something like:
produce(..) :F[Metadata]produceAsync(...) : F[F[Metadata]]produceChunk() : F[List[Metadata]]produceChunkAsync() : F[F[List[Metadata]]]This is super pseudo code but I think the intent is here. WDYT ?