In this tutorial
This tutorial is based on a fictional service that retrieves Country details, such as Capital City, Population, Continent, and Official Language. You can implement this retrieval in different ways:
- Straightforward approaches retrieve the values from a database based on the Country name, or invoke a Web service that returns the details.
- An alternative approach is to use DynaCaching. Since Country details rarely change, this particular service is a strong candidate for caching. With this approach, Country Details are stored in a properties file. A Java class reads the properties file and loads the values into the cache. This prevents the frequent read calls made for the properties file, and the application can effectively read the values from the cache. This approach improves application performance and also optimizes resource utilization.