You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
HTTP (HyperText Transfer Protocol)
HTTP 메시지에 모든 것을 전송
HTTP 역사
기반 프로토콜
HTTP 특징
클라이언트 서버 구조
무상태 프로토콜(스테인리스), 비연결성
⭐ Stateful vs Stateless
➡️ 갑자기 클라이언트 요청이 증가해도 서버를 대거 투입할 수 있다.
상태 유지는 항상 같은 서버가 유지되어야 하기 때문에 중간에 장애가 나면 서버를 교체할 수 없지만,
무상태는 아무 서버나 호출해도 되기 때문에 중간에 장애가 나면 다른 서버로 교체할 수 있다.
💡 실무 한계
비연결성
HTTP는 기본이 연결을 유지하지 않는 모델
일반적으로 초 단위 이하의 빠른 속도로 응답
서버 자원을 매우 효율적으로 사용할 수 있음
한계: TCP/IP 연결을 새로 맺어야 함 (3 way handshake 시간 추가)
HTML뿐만 아니라 자바스크립트, css 등 수많은 자원이 함께 다운로드
지금은 HTTP 지속 연결로 문제 해결
HTTP/2, HTTP/3에서 더 많은 최적화
HTTP 메시지
모든 것이 HTTP...
HTTP 메시지 구조
단순함, 확장 가능
All reactions