Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leonh/redis-streams-fastapi-chat

A simple Redis Streams backed Chat app using Websockets, Asyncio and FastAPI/Starlette.
https://github.com/leonh/redis-streams-fastapi-chat

asyncio fastapi redis redis-streams starlette websockets

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```shell
$ pip install -r requirements.txt
```

# Usage

```shell
$ 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.