The CUSIP Global Services Client has a pluggable cache-neutral architecture which can dramatically improve performance by avoiding repeated calls for the same data.

The Results

Below we have a table which contains a side-by-side comparison between the performance of the CUSIP Global Services Client without caching and with caching enabled. For caching, we used Infinispan, configured as a local cache.

Note that in each example we make the call for currency data 25 times.

idHubQueryBuilder
    .currencies()
    .doGet()
Name Value without caching (ms) Value with caching (ms)
LastValue 778.0 1.0
Avg 494.48 39.76
Total 12362.0 994.0