Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Prefetch

This sample illustrates the the "prefetch" feature of the Service Bus client.

The sample is specifically crafted to demonstrate the throughput difference between receiving messages with prefetch turned on and prefetch turned off. The default setting is for prefetch to be turned off.

Refer to the main README document for setup instructions.

Read more about the prefetch feature in the documentation.

Sample Code

The sample performs two send and receive sequences, once with prefetch turned on and once with prefetch turned off. You will observe that the variant with prefetch turned on yields higher throughput, and therefore a shorter execution time.

The sample is further documented inline in the Prefetch.java file.