Skip to content

A simple example application to show the basic usage of Redis as a cache service, message broker and schedular backend with FastAPI

License

Notifications You must be signed in to change notification settings

srneha24/FastAPI-With-Redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Redis With FastAPI

This project was made on WSL2.

USED TOOLS AND TECHNOLOGIES

  • FastAPI - As an HTTP server
  • Redis - As a cache service, message broker and schedular backend
  • Redisinsight - To visualise Redis data on a GUI
  • Celery - As a scheduler
  • Celery Beat - To automate the scheduling

Build

  • Create an envionment file, titled .env on the same root as the docker-compose, with the follwing variables

    • DOCKER_CONTAINER_IP: The IP address of the redis-stack image inside the container
    • FASTAPI_IP: The IP address of the fastapi_app image inside the container
  • To build the project, run the following command on your console of choice

    docker-compose build
    

RUN

To run this project, run the following command on your console of choice

docker-compose up

About

A simple example application to show the basic usage of Redis as a cache service, message broker and schedular backend with FastAPI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published