Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 859 Bytes

File metadata and controls

21 lines (14 loc) · 859 Bytes

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 Program.cs C# file.