Overview GemFire is a high performance distributed data management infrastructure that sits between application cluster and back-end data sources. With GemFire, data can be managed in-memory, which makes the access faster. Spring Data provides an easy configuration and access to GemFire from Spring application. Maven Dependencies To make use of the Spring Data GemFire support, we first need to add the following dependency in our pom. GemFire Basic Features 3. Cache The cache in the GemFire provides the essential data management services as well as manages the connectivity to other peers.
|Published (Last):||21 September 2012|
|PDF File Size:||5.82 Mb|
|ePub File Size:||19.70 Mb|
|Price:||Free* [*Free Regsitration Required]|
After that an HTTP connection got opened for reading the rss for the provided country. The implementation of the whole bean is provided below: MoneyRSS.
IOException; import java. MalformedURLException; import java. URL; import org. Cacheable; import org. GemFireBean; import net.
MoneyRSS; import org. EnableCaching; import org. ClassPathXmlApplicationContext; import org. This output shows the how much time taken for each request. If you look at it closely, for the first look up of the data, it took longer time, but later requests it is much faster. It shows that if you have a performance issues for fetching the data, GemFire could be good option to try out.
Now there are 1 non-admin member s. I am the first one. There were 0 other DMs. Try :: 1 :: For :: UK :: Found sun. Try :: 2 :: For :: UK :: Found sun. Try :: 3 :: For :: UK :: Found sun. The example provided here makes multiple requests for getting the RSS money feeds for different countries, where the first request for every single country took long time in comparison of those second and third. Download Source Code.
Subscribe to RSS
Caching Data using Spring Data GemFire