redis / redis/fastapi-redis-sdk
Suggest adding Redis-backed WebSocket pub/sub helpers
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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