Catalogue / doordash-2023-microservices-caching

DoorDash standardizes microservice caching in a multi-layer Kotlin library with URN keys, runtime flags and staleness shadowing

DoorDash, 2023. Shared Kotlin microservices caching library (piloted on DashPass backend).

Organisation
DoorDash
Evidence
Reported from production
Source
How DoorDash Standardized and Improved Microservices Caching

DoorDash Engineering, published 2023-10-19

Records

Decision#d1

Wrap request-local, Caffeine and Redis caches behind one Kotlin interface and URN key schema, piloted on DashPass

Decision#d2

Add runtime feature flags to toggle each cache, tune per-layer TTLs and skip layers without deploying

Decision#d3

Sample live cache reads in shadow mode against the source of truth to measure staleness and log diffs

Decision#d4

Guide developers to match cache layers and invalidation to staleness tolerance and to turn caching off on write flows

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free.