Skip to content

WSGI 서버를 만들어보자!!! 최대한 Gunicorn 처럼 만드는 것이 목표임!

Notifications You must be signed in to change notification settings

fhdufhdu/MyGunicorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyGunicorn

나만의 WSGI 서버입니다. 최대한 Gunicorn 처럼 만드는 것이 목표입니다.

특징

  • 서드파티 라이브러리 NO! 모두 빌트인 라이브러리를 이용(django 제외)
  • 멀티 프로세싱과 소켓을 활용
  • 워커 개수와 소켓 백로그 개수 조절 가능

설치

pip install django
pip install djangorestframework
python manage.py migrate

실행방법

python wsgi_server.py

성능

  • 0.1초 단위로 요청 전송
  • 동시에 1000명 접속
  • worker = 16
  • backlog = 1000

시험 결과

시험 결과 이미지

About

WSGI 서버를 만들어보자!!! 최대한 Gunicorn 처럼 만드는 것이 목표임!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages