Skip to content

Commit 86bc120

Browse files
committed
Improve withSendBufferSize docs
Performance research from @lukestephenson suggests that a higher send buffer size is good for performance in some use cases. (See #531.)
1 parent 7318cc9 commit 86bc120

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zio-kafka/src/main/scala/zio/kafka/producer/ProducerSettings.scala

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ final case class ProducerSettings(
6666
* @param sendBufferSize
6767
* The maximum number of record chunks that can queue up while waiting for the underlying producer to become
6868
* available.
69+
* Performance critical users that publish a lot of records one by one (instead of in chunks), should consider
70+
* increasing this value, for example to `10240`.
6971
*/
7072
def withSendBufferSize(sendBufferSize: Int): ProducerSettings =
7173
copy(sendBufferSize = sendBufferSize)

0 commit comments

Comments
 (0)