redis / redis/fastapi-redis-sdk

Suggest adding Redis-backed WebSocket pub/sub helpers

Open
#24 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs-feedback
Dominant language
Python
Stars
357
Forks
20
Avg merge
5d 2h
Merged PRs (30d)
6

Description

This is propuse to adds a RedisChannelManagerDep for publishing and subscribing to Redis channels from FastAPI WebSocket endpoints. It reuses the existing lifespan-managed async Redis pool and provides automatic subscription cleanup.

The feature enables cross-worker chat rooms, real-time notifications, live updates, and broadcasts without requiring applications to manage Redis Pub/Sub connections themselves.

Redis Pub/Sub provides transient, at-most-once delivery; persistent message history and presence tracking remain outside this PR’s scope.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing lifespan-managed async Redis pool and the FastAPI WebSocket endpoint integrations. Review how those components expose dependencies and manage resources, then verify that the proposed RedisChannelManagerDep supports publishing, subscribing, and automatic cleanup for cross-worker broadcasts without adding message history or presence tracking.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python, redis
Domain
api, backend, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.