Using noAck flag and managing the prefetch parameter is another client-side way to improve the performance and the bandwidth. Both noAck and prefetch are used by the consumers.
In this example, we are going to create one producer and one consumer using these parameters. You can find the source code at
You need Java 1.7 or higher and Apache maven.
We skip the producer code because it's the same one shown in the Multithreading and queues recipe. We still use the
ReliableClient class as the base class. Let's see the consumer by performing the following steps:
argsto manage the ...