system-design-primer/resources/noat.cards/Refresh-ahead.md

762 B

Refresh-ahead

Introduction

Source: From cache to in-memory data grid

You can configure the cache to automatically refresh any recently accessed cache entry prior to its expiration.

Refresh-ahead can result in reduced latency vs read-through if the cache can accurately predict which items are likely to be needed in the future.

Disadvantage(s) : refresh-ahead

  • Not accurately predicting which items are likely to be needed in the future can result in reduced performance than without refresh-ahead.