A simple demo of Redis Streams backed Chat app using Websockets, Python Asyncio and FastAPI/Starlette.
Requires Python version >= 3.6 and Redis
This project has been created to help understand some realted 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.
$ pip install -r requirements.txt
$ python chat.py
If you don't have redis installed you can use the docker-compose.yml file to set up a working environment.