• 카테고리

    질문 & 답변
  • 세부 분야

    웹 개발

  • 해결 여부

    미해결

HTTP 비연결성 의 장점

23.01.04 22:34 작성 조회수 1.37k

1

[질문 내용]
안녕하세요, HTTP 특징인 비연결성(connectionless)의 장점이 궁금하여 질문드립니다.

영한님 강의를 보면,

연결을 유지하는 모델에서 서버는 자원을 소모하기 때문에, connectionless 모델에서는 자원을 소모하지 않는 장점이 있는 것으로 이해했습니다.

연결을 유지하는 모델에서 어떤 자원이 소모되는지 알 수 있을까요?
강의에서 배웠을 때 TCP의 연결은 가상의 연결이어서, 커넥션을 유지한다고 해서 서버가 물리적 자원을 소모할 것 같지는 않은데요. 혹시 어떤 자원이 소모되는지 알 수 있을까요?

영한님 강의 매우 재밌게 잘 보고 있습니다.
좋은 강의 만들어 주셔서 감사합니다.

답변 1

답변을 작성해보세요.

2

David님의 프로필

David

2023.01.08

안녕하세요. 한진욱님, 공식 서포터즈 David입니다.

아파치 웹 서버를 기준으로 설명된 글이지만 자원 소모 관점에서 충분히 이해되실 것 같습니다.

아래 글의 Dis­ad­van­tages of Keepalive 파트를 참고해 주세요.

https://www.web24.com.au/library/apache-optimization-keepalive-off-2

Dis­ad­van­tages of Keepalive

Increases mem­ory usage: Enabling KeepAlive increases mem­ory usage on the server. Apache processes have to keep con­nec­tions open wait­ing for new requests from estab­lished con­nec­tions. While they are wait­ing they are occu­py­ing RAM that could be used to ser­vice other clients. If you turn off KeepAlive fewer apache processes will remain active. This will lower mem­ory usage and allow Apache to serve more users.

감사합니다.