leonh / redis-streams-fastapi-chat

A simple Redis Streams backed Chat app using Websockets, Asyncio and FastAPI/Starlette.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redis-streams-fastapi-chat

A simple demo of Redis Streams backed Chat app using Websockets, Python Asyncio and FastAPI/Starlette.

Requires Python version >= 3.6 and Redis

Overview

This project has been created to help understand some related concepts. Python standard library asyncio, websockets (which are often cited as a classic use case for async python code), also Redis Streams. It is very much inteded to be an intentionally simple starting point rather than a usable product as is.

Installation

$ pip install -r requirements.txt

Usage

$ python chat.py

Docker compose

If you don't have redis installed you can use the docker-compose.yml file to set up a working environment.

About

A simple Redis Streams backed Chat app using Websockets, Asyncio and FastAPI/Starlette.

License:MIT License


Languages

Language:Python 55.7%Language:HTML 41.9%Language:Dockerfile 2.4%