Skip to content

Commit

Permalink
Add callout on Kafka Streams configurations for production in kafka-s…
Browse files Browse the repository at this point in the history
…treams.adoc
  • Loading branch information
ksilin authored Mar 29, 2023
1 parent ed40a15 commit fe61920
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/main/asciidoc/kafka-streams.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ This is to done to gracefully await the creation of topics that don't yet exist

TIP: Alternatively, you can use `kafka.bootstrap.servers` instead of `quarkus.kafka-streams.bootstrap-servers` as you did in the _generator_ project above.

[NOTE]
====
Once you are ready to promote your application into production, consider changing the above configuration values. While `cache.max.bytes.buffering=10240` will move your records faster through the topology, the default value of `10485760` is more throughput-friendly. Also condider increasing `metadata.max.age.ms` from `500`, which will update cluster metadata quickly, but will generate a lot of redundant requests, to a value closer to the default of `300000`. A `commit.interval.ms` of `1000` is good for exactly-once processing, but might generate excessive load for the default at-least-once processing with the default value of `30000`.
====

All the properties within the `kafka-streams` namespace are passed through as-is to the Kafka Streams engine.
Changing their values requires a rebuild of the application.

Expand Down

0 comments on commit fe61920

Please sign in to comment.