0

My problem: i have many servers do caching data from key-value database. These caching data is frequently updated, then saved back to db. Consequently, the saved data is not the newest one, and i got data missed with high rate. In my app, performance is more important, missing data is acceptable with low rate. What's the name of this problem (keyword) and your solution/strategy for it?

Thanks,

tiboo
  • 8,213
  • 6
  • 33
  • 43

1 Answers1

1

At low levels this is called the problem of 'Dirty pages'. There can be 2 issues, old data or no data in db compared to the data in cache. So depending on how much latency the application can afford, you should set the interval at which cache should be flushed to db.

KaKa
  • 1,543
  • 12
  • 18