[DevOps] 무중단 배포란?
2023. 3. 12. 20:53
Information Technology/DevOps
무중단 배포란? - 서비스를 중단하지 않고 배포하는 것 - 배포: 새로 개발된 코드를 패키징하여 서버에서 새로운 버전의 애플리케이션을 실행하도록 하는 행위 애플리케이션은 언제 중단 되는가? 구 버전 (V1)의 애플리케이션을 종료하고 새로운 버전 (V2)의 애플리케이션을 실행하고 클라이언트의 요청을 받을 준비가 될 때까지 서비스 중단 서비스가 중단 되는 시간을 다운타임 (Downtime) 이라고 함 Q. V1 서비스를 꼭 중단시켜야 V2를 실행할 수 있나요? A. 네, V1과 V2가 동일한 포트를 사용한다면 말입니다. 한 서버에서 포트를 동시에 서로 다른 애플리케이션 사용하는 것은 불가능 합니다. Q. 서버만 두 대로 늘린다면 해결이 되나요? A. 아니오, 사용자 (클라이언트)는 두 서버의 IP 혹은 DN..
[웹 서버] Nginx 란?
2023. 3. 7. 15:49
Information Technology
Nginx - HTTP 캐시, 로드 밸런서, 리버스 프록시로도 사용할 수 있는 고성능 오픈소스 웹 서버 SW - 높은 성능과 낮은 리소스 사용 - 넷플릭스, 에어비앤비, 드롭박스 등 많이 사용 아키텍처 - 이벤트 기반 비동기 아키텍처 사용 - 많은 동시 연결 및 요청 처리 설계 - 마스터 / 작업자 프로세스 모델 사용 - 마스터 프로세스는 들어오는 요청을 처리하는 작업자 프로세스 관리 성능 - 높은 성능과 낮은 리소스 사용 - 정적 콘텐츠를 빠르고 효율적으로 처리 - 고급 로드 밸런싱 및 캐싱 기능 사용 가능 - 트래픽이 많은 웹 사이트와 응용 프로그램에서 좋음 구성 - 역방향 프록시 역할 가능 (애플리케이션 서버 앞에 앉아 수신 요청을 적절한 백엔드 서버로 라우팅 가능) - 성능, 보안 및 확장성 향상..
[클라우드 컴퓨팅] AWS Lightsail vs EC2
2023. 3. 7. 15:09
Information Technology
Lightsail - 월 고정 가격으로 사전 구성된 가상 프라이빗 서버 (VPS)를 원하는 사용자에게 알맞은 간편하고 접근성이 뛰어난 클라우드 컴퓨팅 서비스 - 사전 구성된 인스턴스의 제한된 집합 - 간단한 관리 콘솔이 포함된 사용하기 쉬운 인터페이스 제공 - WordPress, Drupal 등의 소프트웨어가 미리 설치되고 구성된 인스턴스 세트 중에서 선택 가능 - 경제적이고 사용하기 쉬운 가상 서버를 필요로 하는 소규모 기업, 개인 개발자 및 조직에 적합 EC2 - 사용자 인스턴스라고도 하는 가상 서버를, On-Demand 로 대여할 수 있는 확장성이 뛰어난 클라우드 컴퓨팅 서비스 - 광범위한 인스턴스 유형 제공 - 높은 수준의 사용자 정의 및 유연성 제공 - 고성능 컴퓨팅, 고급 네트워킹 및 강력한 ..
[컴퓨터 과학] 재귀 함수란?
2022. 12. 2. 18:55
Information Technology
재귀 함수란? 재귀 함수란 함수가 직접 또는 간접적으로 자신을 호출하는 프로세스이다.재귀 알고리즘을 사용하면 탐색, GCD (최대공약수) 등 복잡한 문제들도 간단하게 해결할 수 있다. 단, 반복문과 같이 재귀함수도 종료지점을 제대로 정하지 않고 구현을 하면 스택 오버플로우가 발생하므로 항시 주의해서 구현을 해야 한다. 재귀함수는 보통 피보나치수열, 팩토리얼 연산과 같이 재귀적 사용이 자연스러울 때 사용한다. 재귀 함수 예제 1 public class PlusFunction { public static void main(String[] args) { HelloWorld(5); // HelloWorld 출력 메서드 호출 } // HelloWorld 출력 메서드 선언 public static void Hell..