Skip to content

13주차 [Nginx] Nginx의 개념 #88

Open
KJY97 wants to merge 5 commits intono-study-no-future:KJY97from
KJY97:nginx
Open

13주차 [Nginx] Nginx의 개념 #88
KJY97 wants to merge 5 commits intono-study-no-future:KJY97from
KJY97:nginx

Conversation

@KJY97
Copy link

@KJY97 KJY97 commented Apr 10, 2022

No description provided.

@KJY97 KJY97 added the Network Network label Apr 10, 2022
@KJY97 KJY97 linked an issue Apr 10, 2022 that may be closed by this pull request
Network/Nginx.md Outdated

이 구조는 클라이언트 하나당 스레드 하나를 사용하기 때문에 클라이언트가 많아질수록 계속해서 스레드가 생성되게 된다. 즉, 메모리 낭비가 심하고 문맥 교환 시 비용이 든다. 또한, 프로세스가 blocking 되면 요청을 처리하지 못하고 이전 요청을 처리하기 전까지 대기상태가 된다.

그러나 Nginx는 비동식 구조이기 때문에 모든 클라이언트의 요청을 **병렬로 처리**한다. **싱글 프로세스**이며 event는 쓰레드가 아닌 event Handler가 처리한다. <br/>따라서 쓰레드의 사용이 적으므로 Nginx의 서버 자원 활용 능력이 더 좋다고 할 수 있다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

event handler는 무엇인가요?

@ChaerinYu
Copy link
Member

제가 저번에 발표했던.. Web server와 WAS 정리도 끼워 넣어볼게요. 👩 큭큭
Web Server와 WAS

Network/Nginx.md Outdated

이 구조는 클라이언트 하나당 스레드 하나를 사용하기 때문에 클라이언트가 많아질수록 계속해서 스레드가 생성되게 된다. 즉, 메모리 낭비가 심하고 문맥 교환 시 비용이 든다. 또한, 프로세스가 blocking 되면 요청을 처리하지 못하고 이전 요청을 처리하기 전까지 대기상태가 된다.

그러나 Nginx는 비동식 구조이기 때문에 모든 클라이언트의 요청을 **병렬로 처리**한다. **싱글 프로세스**이며 event는 쓰레드가 아닌 event Handler가 처리한다. <br/>따라서 쓰레드의 사용이 적으므로 Nginx의 서버 자원 활용 능력이 더 좋다고 할 수 있다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

비동식 구조 오타 난 거 같아요 😶

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정하겠습니다.. ㅎㅎ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Network Network

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Network] Nginx

3 participants