# Althttpd - C파일 1개로 된 간단한 웹서버

> Clean Markdown view of GeekNews topic #4418. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4418](https://news.hada.io/topic?id=4418)
- GeekNews Markdown: [https://news.hada.io/topic/4418.md](https://news.hada.io/topic/4418.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-06-09T09:48:03+09:00
- Updated: 2021-06-09T09:48:03+09:00
- Original source: [sqlite.org](https://sqlite.org/althttpd/doc/trunk/althttpd.md)
- Points: 8
- Comments: 1

## Topic Body

- SQLite 웹사이트를 2004년부터 호스팅하고 있는 웹서버

ㅤ→ 월$40 짜리 Linode 서버에서 일 50만 Req(5~6 Rps) / 50GB 서빙중

- xinetd / stunnel4로 실행되거나 스탠드얼론 가능

- 설정파일 없고, 몇개의 명령행 인자로 동작

- TLS는 자체지원 없고, stunnel4가 처리

- 싱글 쓰레드 프로세스로, 커넥션 중에만 살아있어서 메모리 릭은 신경쓸 필요 없음

- 표준 C라이브러리만 사용

## Comments



### Comment 5409

- Author: xguru
- Created: 2021-06-09T09:48:09+09:00
- Points: 3

소스코드 : 약 100KB, 2500라인  https://sqlite.org/althttpd/file?name=althttpd.c

성능은 그다지 좋은 편이 아닙니다.

코드에 주석이 잘 되어있어서 보기 편하고 유지보수가 쉽다는 장점만 두고 보는게 맞을 듯
