Correctness Has a Price: We Benchmarked Fair Leaderboards

go dev.to

Podium

High-performance, Redis-backed leaderboards for games and competitive applications.

Podium provides ready-to-run HTTP and gRPC APIs for scores, ranks, seasons, and player-relative views. It is designed for backend teams operating large fleets of independent leaderboards without provisioning each leaderboard in advance.

  • Fair, deterministic ordering when scores are equal.
  • Single and bulk score updates, including multi-leaderboard fan-out.
  • Standalone Redis and real Redis Cluster integration coverage.
  • Deploy one multi-architecture OCI image with Docker, containerd, Kubernetes or another OCI-compatible runtime.

Quickstart · Performance · API · Documentation · Helm chart · Docker Hub · GHCR

Quickstart

Start Redis 8.2 and the latest stable Podium image:

docker network create podium
docker run --detach --name podium-redis --network podium redis:8.2-alpine

docker run --detach --rm --name podium \
  --network podium \
  --publish 8880:8880 \
  --publish 8881:8881 \
  --env PODIUM_REDIS_HOST=podium-redis \
  --env PODIUM_REDIS_PORT=6379 \
  trungdlp/podium:latest start
Enter fullscreen mode Exit fullscreen mode

Verify the service:

curl http://localhost:8880/healthcheck
Enter fullscreen mode Exit fullscreen mode
WORKING

Submit two equal scores:

curl --request
Enter fullscreen mode Exit fullscreen mode

Source: dev.to

arrow_back Back to Tutorials