Decision#d1
Catalogue / revenuecat-2023-memcached-cache
RevenueCat keeps memcached fast, warm and consistent with its own meta-protocol client, fail-fast reads and tracked write failures
RevenueCat, 2023. Memcached caching layer in front of the API's databases.
Records
Decision#d2
Write an in-house memcached client because no existing one spoke the meta-command protocol
Decision#d3
Cache the hottest keys inside each web server, detected from memcached's last-access time
Decision#d4
Record failed cache writes and invalidate those keys later instead of retrying inline
Decision#d5
Shorten a key's TTL before the database write and set the new value after it
Decision#d6
Replace cache servers through a staged, clock-scheduled migration driven by the client
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. The job-queue cards are open without one.