> For the complete documentation index, see [llms.txt](https://haleyryu.gitbook.io/engineer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://haleyryu.gitbook.io/engineer/python/wsgi/wsgi-gunicorn.md).

# WSGI 가 필요한 이유

## WSGI 는 왜 필요한가요?

* 로컬에서는 단순히 Server 를 띄우는 스크립트를 실행함으로써 서버를 띄울 수 있지만,\
  실제 운영환경에서는 WSGI 를 통 Server 를 띄우게 됩니다.
* Web Server 가 받은 요청을 WSGI 를 통해 해석한 다음, 실제 Python Application 에서 이를 처리하고 그 결과값이 WSGI 를 통해 Web Server 에게 반환됩니다. 이 반환값이 최종적으로 요청자에게 전달되는 형태입니다.
