← All projects
Project record1 mention
Originally shared on Hacker News

Realtime stats and leaderboard database

A statistics database that tracks stats and leaderboards in realtime, written as a C++ project. Its defining feature is returning sorted scores together with the full row of linked user data in a single step, unlike Redis which requires a ZRANGE call followed by separate GETs. Meant as a deep C++ refresher, with possible production use.

Last shared
01 / The problem

What it addresses

Redis is currently the only optimal database for leaderboards, and retrieving sorted scores plus linked user data takes two separate steps (ZRANGE + GET).

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Realtime stats and leaderboard database

    A statistics database that tracks stats and leaderboards in realtime, written as a C++ project. Its defining feature is returning sorted scores together with the full row of linked user data in a single step, unlike Redis which requires a ZRANGE call followed by separate GETs. Meant as a deep C++ refresher, with possible production use.

    Problem: Redis is currently the only optimal database for leaderboards, and retrieving sorted scores plus linked user data takes two separate steps (ZRANGE + GET).

    Posted by @JoeOfTexas · Original source ↗

    Source text · @JoeOfTexas · · Source ↗

    So, I'm attempting a drunken version of a statistic database that tracks stats and leaderboards in realtime. I guess the only major defining quality would be that in one step I can get both the sorted scores + entire row of linked user data.