Focus On The Community: Avoiding Multiple Simultaneous Database Calls When Using the Cache Aside Pattern

There are certain scenarios where you are not able to us Coherence's Read-Through capabilitiesIn such cases the Cache Aside pattern is most commonly used.

The "cache aside" pattern is perhaps the easiest way to introduce caching to an existing application. It usually requires the least disruption to code and can even be "injected" without code changes using AOP. Although it can seem trivial there are a few "gotchas". For example, when using the cache aside pattern, multiple simultaneous cache requests for the same piece of data across your environment will result in multiple database requests.

Here you can find a great article by Andrew Wilson from RBS explaining how this pattern has been implemented in a "real-world" solution and how to avoid these potential problems. 

Cache Aside Pattern

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Oracle Coherence, the market leading in-memory datagrid product.
Stay Connected...

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today