-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shyang
committed
Dec 22, 2023
1 parent
a6ea81b
commit 8da35b8
Showing
47 changed files
with
1,155 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "AOP" | ||
layout: archive | ||
permalink: categories/AOP | ||
author_profile: true | ||
sidebar_main: true | ||
--- | ||
|
||
{% assign posts = site.categories['AOP'] %} | ||
{% for post in posts %} {% include archive-single.html type=page.entries_layout %} {% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,64 @@ | ||
--- | ||
title : "Websocket" | ||
excerpt : "Websocket" | ||
title : "WebSocket" | ||
excerpt : "WebSocket" | ||
toc : true | ||
toc_sticky : true | ||
toc_label : "Websocket" | ||
toc_label : "WebSocket" | ||
categories: | ||
- 통신 | ||
tags: | ||
- [통신, 미완료] | ||
- [통신, ServerCommon] | ||
last_modified_at: 2023-10-20T08:00:00-10:00:00 | ||
--- | ||
|
||
# 날짜 : 2023-10-20 14:45 | ||
|
||
# 태그 : #통신 #미완료 | ||
# 태그 : #통신 #ServerCommon | ||
--- | ||
- HTTP 80, 443 포트에서 동작 | ||
|
||
# 내용 | ||
|
||
## 정의 | ||
> WebSocket이란? | ||
> 서버와 클라이언트 간 양방향 데이터 전송이 가능하도록 하는 통신방법 중 하나 | ||
## 특징 | ||
- Stateful Protocol | ||
- 웹소켓을 위한 별도 포트는 없고 기존 포트 사용 | ||
- 프로그램으로 구성된 메시지라는 논리적 단위로 송수신 | ||
- 텍스트와 바이너리만 전송 가능 | ||
- 웹 브라우저와 웹서버 간의 상호작용에서 오버헤드가 낮음 | ||
- 실시간 데이터 전송 용이 | ||
|
||
## 동작방식 | ||
|
||
![image](../../assets/images/WebSocketProcess.png) | ||
- 연결 설정을 위한 handshake(HTTP), 일정 시간 경과 후 HTTP 연결은 끊어짐 | ||
- 설정된 연결은 열린 상태로 유지(TCP/IP 기반), 클라이언트나 서버가 종료될 때까지 동일 채널에서 통신 수행 | ||
- 양방향 통신 | ||
- Cleint 또는 Server에서 Close 요청시, Disconnet | ||
|
||
## 문제점 | ||
|
||
### 복잡성 | ||
- Stateful protocol 이기 때문에 서버와 클라이언트간 연결을 항상 유지해야 함 | ||
- 비정상적 연결 종료시, 예외처리 코드 필요 | ||
|
||
### 비용 | ||
- Socket 연결을 유지하는 데 비용 발생 | ||
- 트래픽이 많은 경우 서버 CPU에 큰 부담 | ||
|
||
### 호환성 | ||
- 오래된 버전의 웹 브라우저에서는 지원되지 않음 | ||
|
||
## Reference | ||
- SNS | ||
- 멀티 플레이어 Game | ||
- 위치 기반 APP | ||
- HTS | ||
- 화상 채팅 APP | ||
|
||
--- | ||
|
||
# 연결문서 | ||
- [HTTP](../../servercommon/ServerCommon-HTTP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,4 @@ public interface Servlet { | |
--- | ||
|
||
# 연결문서 | ||
- [DispatcherServlet](../../spring/Spring-DispatcherServlet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title : "Proxy서버" | ||
excerpt : "Proxy서버" | ||
toc : true | ||
toc_sticky : true | ||
toc_label : "Proxy서버" | ||
categories: | ||
- WebCommon | ||
tags: | ||
- [WebCommon] | ||
last_modified_at: 2023-10-30T08:00:00-10:00:00 | ||
--- | ||
|
||
# 날짜 : 2023-10-30 14:44 | ||
|
||
# 태그 : #WebCommon | ||
--- | ||
|
||
# 내용 | ||
|
||
## 정의 | ||
> Proxy서버란? | ||
> 내부 네트워크에서 인터넷을 접속할 때, 빠른 액세스나 안전한 통신을 확보하기 위한 중계자 | ||
- Client와 Web Server의 중간에 위치 | ||
|
||
![image](../../assets/images/ProxyBase.png) | ||
|
||
## 기능 | ||
- Server IP가 아닌 Proxy IP를 노출하여 개인정보 보호 | ||
- 캐시 사용으로 속도 향상 | ||
- 로그 관리 편의성 | ||
- 허용된 IP 대역의 프록시를 사용하여 접속 우회 | ||
|
||
## 종류 | ||
|
||
### Forward Proxy | ||
- Client 대신 Proxy가 목적 서버에 통신해주는 구성 | ||
- 요청을 중계하며 요청과 응답은 모두 Proxy를 거친다 | ||
- 클라이언트를 감추는 효과 | ||
|
||
![image](../../assets/images/ForwardProxy%201.png) | ||
|
||
### Reverse Proxy | ||
- 내부서버 대신 Proxy가 Client와 통신해주는 구성 | ||
- 응답을 중계하며 요청과 응답은 모두 Proxy를 거친다. | ||
- 내부 서버를 감추는 효과 | ||
|
||
![image](../../assets/images/ReverseProxy.png) | ||
|
||
--- | ||
|
||
# 연결문서 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title : "스타일 적용" | ||
excerpt : "스타일 적용" | ||
toc : true | ||
toc_sticky : true | ||
toc_label : "스타일 적용" | ||
categories: | ||
- Obsidian | ||
tags: | ||
- [Obsidian] | ||
last_modified_at: 2023-11-16T08:00:00-10:00:00 | ||
--- | ||
|
||
# 날짜 : 2023-11-16 10:36 | ||
|
||
# 태그 : #Obsidian | ||
--- | ||
|
||
# 내용 | ||
|
||
## CSS 파일 적용 방법 | ||
|
||
![image](../../assets/images/SetCSS.png) | ||
1. 설정-테마-CSS스니펫 항목의 폴더 아이콘을 선택하여 옵시디언에 사용할 css 폴더 경로로 이동한다 | ||
2. 적용할 css파일을 위치시킨다 | ||
3. 다시 설정-테마-CSS스니펫의 새로고침 아이콘을 클릭하면 위치시킨 css파일이 목록에 보이게 된다. | ||
4. css를 활성화 시키면 옵시디언 테마에 적용된다. | ||
|
||
--- | ||
|
||
# 연결문서 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.