본문 바로가기
Dev/Python

파이썬 flask - redis - celery 구조

by lumination 2024. 3. 14.

파이썬

Flask webframework

redis broker

celery async worker

 

구조로 사용할 것이다.

title excel upload api

participant User
participant Web App (Flask)
participant Redis
participant Celery Worker
participant DB

User->Web App (Flask):GET /excel
User<--Web App (Flask):response
User->Web App (Flask):POST /excel/upload

Web App (Flask)->Redis:Enqueue a new task to the broker
Redis<-Celery Worker:Worker picks up task from queue
Celery Worker->DB:Update result
User->Web App (Flask):Check the status of the task
User<--Web App (Flask):response

'Dev > Python' 카테고리의 다른 글

Alembic 사용법  (0) 2025.04.21
SQLAlchemy 관계 종류  (0) 2025.04.17
SQLAlchemy DB 처리 방식  (0) 2025.04.17
Flask 프레임워크 thread  (0) 2024.04.12