Database Reference
In-Depth Information
The previous diagram shows how caching works when a client tries to retrieve some in-
formation from DynamoDB. First, it checks if the required information is present in
cache. If the information is present, then it simply returns the data to the client. But if the
information is not present, then the program first fetches the data from DynamoDB, stores
it in cache, and then returns the data to the client.
There are various types of caching techniques available, such as standalone, distributed,
and so on. Depending upon the needs of your application, you can choose the best fit. For
example, if you want to store a small set of data, then you can use in-memory cache lib-
raries such as Ehcache, but if your caching needs are bigger, then you can use distributed
cache such as Memcache, Oracle Coherence, and so on. Amazon also provides its own
hosted caching as a service called ElasticCache. The choice is yours.
Search WWH ::




Custom Search