cancel
Showing results for 
Search instead for 
Did you mean: 

Implement caching for web services.

pachoudhary1
Explorer
0 Kudos

Hi Team,

I have to call a SOAP based web services every 10 secs for each user and data remains same for all the user and it only changes after 10-15 mins. So I am looking to implement Caching logic for the same. Please suggest the best caching mechanism that can be used.

Regards, Pankaj

Accepted Solutions (0)

Answers (1)

Answers (1)

rafal_gdowski
Active Contributor
0 Kudos

Not sure if this is strictly a Data Hub question, but if it is, Data Hub uses guava Cache internally to cache some data in memory https://github.com/google/guava/wiki/CachesExplained. Depending on the version of DH that you are using, and the exact nature of your needs, you can also look at EhCache http://www.ehcache.org/ or the extensive abilities of Spring https://spring.io/guides/gs/caching/ . All used since 5.7 and should be available as libraries in the deployed Data Hub.