Catalogue / tantan-2024-swipe-count-storage

Tantan kept a per-user swipe counter on its sharded PostgreSQL servers instead of adding Redis for it

Tantan. Swipe storage on sharded PostgreSQL.

Organisation
Tantan
Evidence
Reported from production
Source
You might not need Redis

viblo.se (personal blog), published 2024-03-12 (The post covers three employers over 10+ years and does not date the Tantan episode, the earliest of them)

Records

Decision#d1

Store a frequently updated per-user counter on the existing PostgreSQL shards, next to the rows it counts

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.