Skip to content

Commit

Permalink
Extend tuning docs (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvanoosten authored Nov 16, 2023
1 parent d1c3029 commit dc36c85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/consumer-tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ val highThroughputSettings = ConsumerSettings(bootstrapServers).tuneForHighThrou
val lowLatencySettings = ConsumerSettings(bootstrapServers).tuneForLowLatency
```

Kafka’s performance is not very sensitive to record size. However, when records become very small (< 100 bytes) or very
large (> 100Kb), increasing or decreasing `max.poll.records` and `partitionPreFetchBufferLimit` can be considered.
## Small and large records

Kafka’s performance is not very sensitive to record size. However, when records become very small (< 100 bytes) it
might be beneficial to increase `max.poll.records` and `partitionPreFetchBufferLimit`. Similarly, when records are
very large (> 100Kb), `max.poll.records` can be decreased. Also, pre-fetching can be limited by decreasing
`partitionPreFetchBufferLimit` or even disabled by using `ConsumerSettngs.withoutPartitionPreFetching`.

## High number of partitions

Expand Down

0 comments on commit dc36c85

Please sign in to comment.