전체 글
-
LDAP 프로토콜Active Directory/ldap 2021. 1. 18. 15:14
인턴 업무로 Active Directory와 연동해 웹을 통해 비밀번호 변경 및 초기화 기능을 구현하는 프로젝트를 맡게 되었다. 시작 당시 나에겐 생소한 개념이었기에 Microsoft 공식 문서를 보며 Active Directory와 ldap에 대한 개념을 공부하는 것부터 시작하였다. LDAP이란? LDAP은 Lightweight Directory Access Protocol의 약자로, 인터넷 기반의 분산 디렉토리 서비스를 제공하는 프로토콜이다. HTTP가 HTML 문서를 주고 받는 프로토콜이듯이, LDAP은 디렉토리 서비스에 대한 표준이라고 보면 된다. 디렉토리 서비스란? 어떤 이름을 기준으로 대상을 찾아 조회하거나 편집할 수 있는 서비스이다. DNS의 경우 도메인 이름을 기준으로 IP 주소와 같은 데..
-
[Docker] 도커 컴포즈컨테이너/도커 2021. 1. 13. 19:52
도커 컴포즈를 사용하는 이유 매번 run 명령어에 옵션을 설정해 CLI(Command Line Interface)로 컨테이너를 생성하기보다는 여러 개의 컨테이너를 하나의 서비스로 정의해 컨테이너 묶음으로 관리하기 위해 사용한다. -> 컨테이너의 수가 많아지고 정의해야 할 옵션이 많아진다면 도커 컴포즈를 사용하는 것이 좋다. 도커 컴포즈 설치 # curl -L https://github.com/docker/compose/releases/download/1.11.0/docker-compose-`uname -s` \ -`uname -m` > /usr/local/bin/docker-compose 도커 컴포즈 사용 도커 컴포즈는 컨테이너의 설정이 정의된 YAML 파일을 읽어 도커 엔진을 통해 컨테이너를 생성한다...
-
[Spring] Spring 개요Framework/Spring 2021. 1. 9. 15:20
스프링 프레임워크 *프레임 워크란 ? 개발자가 어떠한 기능을 구현하기 위해 추상적으로 정의된 틀 스프링 프레임워크는 주요기능으로 DI, AOP, MVC, JDBC 등을 제공한다. *스프링 프레임워크 모듈 스프링 모듈 기능 spring-core 스프링의 핵심인 DI(Dependency Injection)와 IoC(Inversion of Control)를 제공 spring-aop AOP구현 기능 제공 spring-jdbc 데이터베이스를 쉽게 다룰 수 있는 기능 제공 spring-tx 스프링에서 제공하는 트랜잭션 관련 기능 제공 spring-webmvc 스프링에서 제공하는 Controller와 View를 이용한 스프링 MVC 구현 기능 제공 스프링 프레임워크에서 제공하고 있는 모듈을 사용하려면, 모듈에 대한 ..
-
[Docker] 이미지 배포컨테이너/도커 2021. 1. 6. 18:27
이미지를 생성했다면 이를 다른 엔진에 배포할 방법이 필요하다. save나 export와 같은 방법으로 이미지를 단일 파일로 추출해서 배포하게 되면 이미지 파일의 크기가 너무 크거나 도커 엔진의 수가 많다면 굉장히 비효율적이게 된다. 이럴 때 도커의 이미지 구조인 레이어 형태를 이용해야 한다! 이미지 배포 방법 도커 허브 : 도커에서 공식적으로 제공하는 도커 허브 이미지 저장소. 사설 레지스트리 : 사용자가 직접 이미지 저장소를 만든 후 해당 레포지토리에 저장. 1. 도커 허브 저장소 저장소에 이미지 올리기 docker commit [컨테이너명] [이미지] # docker commit commit_container my-image-name:0.0 로그인 docker login Username : Passw..
-
마이크로서비스란?IT Tech 2021. 1. 3. 00:35
마이크로서비스는 소프트웨어가 잘 정의된 API를 통해 통신하는 소규모의 독립적인 서비스로 구성되어 있는 경우의 소프트웨어 개발을 위한 아키텍처 및 조직적 접근 방식이다. 왜 마이크로서비스가 부상하였는가? 마이크로서비스 아키텍처는 애플리케이션의 확장을 용이하게 하고 개발 속도를 앞당겨 혁신을 실현하며 새로운 기능의 출시 시간을 단축할 수 있게해 준다. 모놀리식 아키텍처 vs 마이크로서비스 아키텍처 모놀리식 아키텍처 : 모든 프로세스가 긴밀하게 결합되고 단일 서비스로 실행된다. 따라서 애플리케이션의 한 프로세스에 대한 수요가 급증하면 해당 아키텍처 전체를 확장해야 한다. 종속 관계를 이루며 긴밀하게 결합된 많은 프로세스로 인해 단일 프로세스의 실패로 인한 영향이 증가함에 따라 모놀리식 아키텍처는 애플리케이션..
-
[Docker] 도커 이미지컨테이너/도커 2021. 1. 2. 02:47
2.3 도커 이미지 도커는 기본적으로 도커 허브라는 중앙 이미지 저장소에서 이미지를 내려받는다(도커 허브는 도커가 공식적으로 제공하고 있는 이미지 저장소). # docker search ubuntu *docker search 명령어는 도커 허브에서 이미지를 검색하며, 도커 허브 이미지임을 명시하기 위해 docker.io/ubuntu와 같이 docker.io 접두어를 사용할 수 있다. 허나 일반적으로 최상위 접두어를 명시하지 않으면 도커 허브의 이미지를 의미한다. 2.3.1 도커 이미지 생성 1) 컨테이너 안에서 작업한 내용을 이미지로 생성 # docker run -i -t --name commit_test ubuntu:14.04 # docker commit \ -a "seho100" -m "my firs..
-
[c++] 백준 1931번 - 회의실배정카테고리 없음 2020. 12. 27. 17:11
# 백준1931번 URL 1931번: 회의실배정 (1,4), (5,7), (8,11), (12,14) 를 이용할 수 있다. www.acmicpc.net 위 예제는 그리디 알고리즘의 대표적인 문제이다. O(n^2)의 시간복잡도로 구하게 될 시 시간초과가 일어나므로 C++ STL에 속한 algorithm 라이브러리의 sort 함수를 사용하여 끝나는 시간이 빠른 순서대로 정렬을 해서 구하면 된다. 단, 끝나는 시간이 같을 경우 시작 시간이 빠른 순서로 정렬을 해야 하는 것에 주의한다. #include #include #include using namespace std; int result_count = 0; typedef struct { int s; int e; }info; bool compare(info a..
-
REST API 원칙Programming/react native 2020. 11. 26. 05:20
REST API란? REST는 Representational State Transfer라는 용어의 약자로서 로이 필딩의 박사학위 논문에서 처음 등장하였다. 로이 필딩은 웹(http) 설계의 우수성에 비해 제대로 활용되어지지 못하는 모습에 안타까워하며 웹의 장점을 최대한 활용할 수 있는 아키텍처로써 REST를 발표했다. REST API 디자인 가이드 REST API 설계 시 가장 중요한 항목은 다음 2가지로 요약할 수 있다. 1. URI는 정보의 자원을 표현할 수 있어야 한다. 2. 자원에 대한 행위는 HTTP method(GET, POST, PUT, DELETE)로 표현한다. ex1) 더보기 GET/members/delete 위와 같은 표현은 REST API 설계 규칙을 적용하지 않은 표현이다. URI는..