Skip to content

Commit

Permalink
Update lib/broadway_kafka/producer.ex
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <[email protected]>
  • Loading branch information
oliveigah and josevalim authored Jul 18, 2024
1 parent 273763f commit 6243d0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/broadway_kafka/producer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,10 @@ defmodule BroadwayKafka.Producer do
This is more likely to be an issue if the producers on your pipeline are fetching message from
multiple topics and specially if there are very low traffic topics, which may block on batch wait times.
In summary to mitigate this you can split your topics between multiple pipelines, but notice that this will
increase the resource usage as well creating one new client/connection for each pipeline effectively diminishing
the shared_client resource usage gains.
To mitigate this, you can split your topics between multiple pipelines, but notice that this will
increase the resource usage as well. By creating one new client/connection for each pipeline,
you effectively diminishing the `shared_client` resource usage gains. So make sure to measure
if you enable this option.
"""

use GenStage
Expand Down

0 comments on commit 6243d0c

Please sign in to comment.