Skip to content

A throughput experiment demonstrates significant variation with specific maxUnconfirmedMessages values #750

Closed Answered by michaelklishin
pvaiko asked this question in Q&A
Discussion options

You must be logged in to vote

There's also ProducerBuilder#dynamicBatch that is enabled by default but can be used if you care more about throughput than latency:

  /**
   * Adapt batch size depending on ingress rate.
   *
   * <p>A dynamic-batch approach improves latency for low ingress rates.
   *
   * <p>Set this flag to <code>true</code> if you want as little delay as possible between calling
   * {@link Producer#send(Message, ConfirmationHandler)} and the message being sent to the broker.
   * Consumers should provide enough initial credits (between 5 and 10, depending on the workload),
   * see {@link ConsumerBuilder#flow()} and {@link
   * ConsumerBuilder.FlowConfiguration#initialCredits(int)}.
   *
   * <p>Set…

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
5 replies
@pvaiko
Comment options

@pvaiko
Comment options

@michaelklishin
Comment options

@michaelklishin
Comment options

@pvaiko
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@michaelklishin
Comment options

@pvaiko
Comment options

@michaelklishin
Comment options

@michaelklishin
Comment options

Answer selected by michaelklishin
@pvaiko
Comment options

@michaelklishin
Comment options

@michaelklishin
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants