explaingit

ulgens/sorted-sets-in-redis-pyistanbul

Analysis updated 2026-08-06 · repo last pushed 2020-04-30

1PythonAudience · developerComplexity · 1/5DormantSetup · moderate

TLDR

Code and slides from a talk on using Redis sorted sets with Python. Teaches developers how to build ranking and ordering features like leaderboards.

Mindmap

mindmap
  root((repo))
    What it does
      Talk code examples
      Presentation slides
      Teaches sorted sets
    Tech stack
      Python
      Redis
    Use cases
      Game leaderboards
      Priority queues
      Top item rankings
    Audience
      Python developers
      Meetup attendees
    Learning approach
      Follow slide deck
      Code examples included

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a game leaderboard that ranks players by score

USE CASE 2

Create a priority queue for ordering tasks by importance

USE CASE 3

Implement a top-rated items recommendation feature

What is it built with?

PythonRedis

How does it compare?

ulgens/sorted-sets-in-redis-pyistanbul0xallam/posthog0xustaz/streamgate
Stars111
LanguagePythonPythonPython
Last pushed2020-04-302026-03-26
MaintenanceDormantMaintained
Setup difficultymoderatemoderatehard
Complexity1/53/54/5
Audiencedeveloperpm founderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a running Redis instance and the slide deck to follow along with the concepts.

In plain English

This repository contains the code and presentation slides from a talk called "Sorted Sets in Redis" given at a PyIstanbul meetup. It's designed to teach Python developers how to use a specific feature of Redis, a popular tool used to store and manage data quickly. Redis is often used as a fast-access storage layer that sits alongside a primary database. One of its built-in data structures is the "sorted set," which keeps a collection of unique items automatically ordered by a number you assign to each one, like a high-score leaderboard, where players are ranked by their points. The talk and code walk through how to work with these sorted sets using Python. A developer would use this if they needed to build something that relies on ranking or ordering, such as a leaderboard for a mobile game, a priority queue for processing tasks, or a system that recommends top-rated items. The project gives them a working Python example to learn from instead of just reading documentation. The README doesn't go into detail about specific dependencies, setup instructions, or what the code examples cover beyond the general topic. To get the most out of it, you'd likely need to follow along with the linked slide deck, which walks through the concepts presented at the meetup.

Copy-paste prompts

Prompt 1
Show me how to use Redis sorted sets in Python to build a leaderboard where players are ranked by their scores
Prompt 2
Create a Python example using Redis sorted sets to maintain a priority queue where tasks are ordered by priority number
Prompt 3
Write Python code that uses Redis sorted sets to store and retrieve top-rated items sorted by their rating score

Frequently asked questions

What is sorted-sets-in-redis-pyistanbul?

Code and slides from a talk on using Redis sorted sets with Python. Teaches developers how to build ranking and ordering features like leaderboards.

What language is sorted-sets-in-redis-pyistanbul written in?

Mainly Python. The stack also includes Python, Redis.

Is sorted-sets-in-redis-pyistanbul actively maintained?

Dormant — no commits in 2+ years (last push 2020-04-30).

How hard is sorted-sets-in-redis-pyistanbul to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is sorted-sets-in-redis-pyistanbul for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.