fastapi (1) 썸네일형 리스트형 FastAPI 환경에서 Nginx 와 Uvicorn 을 통한 Deploy + Nginx 와 WSGI(Web Server Gateway Interface)/ASGI(Asynchronous Server Gateway Interface)를 같이 사용하는 이유 - Nginx은 비동기로 외부의 작업연산(요청)을 listen하여 WSGI/ASGI로 전달 (nonblocking to, 더 많은 연산을 빠르게 처리) (Apache는 연산 작업을 책임지고 수행(blocking io)하여 연산을 더 안정적으로 처리) - WSGI/ASGI가 요청을 수행 (Event Driven) - 이벤트 생성, 소비의 주체 분리 (Producer-Counsumer Pattern) - Nginx가 Event loop에 등록한 작업연산(요청)들을 WSGI(ASGI)가 처리하고 결과를 응답하면 Nginx가 클라이언.. 이전 1 다음