João Rodrigues
09/04/2021, 11:31 PMKafkaProducer
, and it's send
method (non-suspending, native java function). If I understood correctly, the coroutines for this purpose should be in the <http://Dispatchers.IO|Dispatchers.IO>
context, correct? Can the number of emitting coroutines exceed the number of threads of my machine, given that the send function is non-suspending?Jacob
09/05/2021, 2:40 PMJacob
09/05/2021, 2:49 PMJoão Rodrigues
09/05/2021, 2:58 PMDoesn't really matter which dispatcher you use, the internals of the send will happen on the kafkaProducer threadDidn't know about that, makes sense. Thank you! Yea I noticed that in the beginning the Producer was able to keep up but then some throttling came in. Fiddling around with the producer configs helped. I might need several instances of the app running in parallel if I want to achieve higher load