전체 글
-
OAuth2.0 이란?프로젝트/WebRTC 화상통화 프로젝트 2022. 7. 15. 02:16
(1) OAuth2.0이란? (2) Spring Security와 OAuth 2.0으로 로그인 구현하기(SpringBoot + React) (3) Spring Security OAuth 2.0 단위테스트 (4) Spring Security가 OAuth 로그인을 처리하는 방법 알고 있으면 이해하는데 도움이 되는 개념들 - 인증과 인가 - Access Token OAuth 2.0 이란? OAuth란 Open Authorization의 약자로 다양한 플랫폼 환경에서 권한 부여를 위한 산업 표준 프로토콜입니다. 제3의 앱(내가 만든 애플리케이션)이 자원의 소유자인 서비스 이용자를 대신하여 서비스(구글, 네이버, 카카오 등)를 요청할 수 있도록 자원 접근 권한을 위임하는 방법입니다. 즉, 어떤 서비스를 이용할 때..
-
공인 IP와 사설 IPCS/네트워크 2022. 7. 15. 00:01
IP란? IP란 Internet Protocol의 약자로 인터넷에 연결되어 있는 모든 장치들을 식별할 수 있도록 각각의 장비에게 부여되는 고유 주소입니다. 예를 들어 웹 브라우저에 www.google.com을 검색하게 되면 DNS가 이를 IP주소로 변환하여주어 IP주소로 통신하게 됩니다. IPv4와 IPv6 IPv4는 IP version 4의 약자로 전 세계적으로 사용된 첫 번째 인터펫 프로토콜입니다. 32비트 방식으로 8비트씩 4자리로 되어 있으며 각 자리는 온점으로 구분합니다. IPv4는 0 ~ 2^32(약 42억 9천) 개의 주소를 가질 수 있는데, 전 세계적으로 인터넷 사용자 수가 급증하면서 IPv4 주소가 고갈된 위기에 처했으며 이러한 고갈 문제를 해결하기 위해 등장한 주소가 바로 IPv6입니다..
-
[백준] 1976번 : 여행 가자 - 자바(JAVA)알고리즘/백준 2022. 7. 14. 00:01
https://www.acmicpc.net/problem/1976 1976번: 여행 가자 동혁이는 친구들과 함께 여행을 가려고 한다. 한국에는 도시가 N개 있고 임의의 두 도시 사이에 길이 있을 수도, 없을 수도 있다. 동혁이의 여행 일정이 주어졌을 때, 이 여행 경로가 가능한 것인 www.acmicpc.net 문제 해석 N개의 도시가 존재하고 두 도시 사이에 길이 있을 수도 없을 수도 있습니다. 여행 경로가 가능한지 탐색하고자 합니다. 만약 도시가 5개 존재하고 A-B, B-C, A-D, B-D, E-A의 길이 존재합니다. 이를 그림으로 도식화 하면 다음과 같습니다. 위의 그림 예시에서는 모든 도시가 연결되어있기 때문에 어떤 여행계획이든 가능합니다. 문제 풀이 전 설계 위의 예시에서 봤듯이 모든 도시가..
-
[백준] 3687번 : 성냥개비 - 자바(JAVA)알고리즘/백준 2022. 7. 13. 00:01
https://www.acmicpc.net/problem/3687 3687번: 성냥개비 각 테스트 케이스에 대해서 입력으로 주어진 성냥개비를 모두 사용해서 만들 수 있는 가장 작은 수와 가장 큰 수를 출력한다. 두 숫자는 모두 양수이어야 하고, 숫자는 0으로 시작할 수 없다. www.acmicpc.net 문제 해석 문제는 굉장히 간단하게 성냥개비의 개수가 주어지고 성냥개비를 모두 사용해서 만들 수 있는 가장 작은 수 와 가장 큰 수를 찾으면 됩니다. 다음은 숫자별로 필요한 성냥개비의 개수입니다. 0 : 6개 1 : 2개 2 : 5개 3 : 5개 4 : 4개 5 : 5개 6 : 6개 7 : 3개 8 : 7개 9 : 6개 문제 풀이 전 설계 테스트 케이스가 100개 주어지며 여기서 만들 수 있는 가장 작은 ..
-
프로젝트 개요프로젝트/WebRTC 화상통화 프로젝트 2022. 7. 12. 17:25
프로젝트에서 다루는 문제 많은 사람들이 하루를 습관처럼 보내고 있으며 이러한 습관을 바꾸기는 어렵습니다. 아무리 강한 의지로 무언가를 계획하고 실천하더라도 그것이 습관이 되기 전에 그만두는 경우가 많습니다. 작심삼일 증후군 실제로 새해 결심을 일주일 채 넘기지 못하는 경우는 27.4%입니다. 또한 새해 결심을 연말까지 1년 동안 지킨 비율은 고작 8%에 불과합니다. 많은 사람들이 새해에 운동을 해야겠다고 결심을 많이 합니다. 한국인의 기대 수명은 평균 83.5세이며 아프지 않고 건강한 상태로 지내는 기간은 이보다 짧은 66.3세입니다. 즉, 17년 동안 우리는 건강의 위험 속에서 지내야 하며 운동의 중요성은 점점 더 높아지고 있습니다. 즉, 사용자에게 작심삼일을 극복하기 위한 흥미와 의지를 부여하고자 합..
-
[프로그래머스] N-Queen -자바(JAVA)알고리즘/프로그래머스 2022. 7. 12. 00:01
https://programmers.co.kr/learn/courses/30/lessons/12952 코딩테스트 연습 - N-Queen 가로, 세로 길이가 n인 정사각형으로된 체스판이 있습니다. 체스판 위의 n개의 퀸이 서로를 공격할 수 없도록 배치하고 싶습니다. 예를 들어서 n이 4인경우 다음과 같이 퀸을 배치하면 n개의 퀸은 programmers.co.kr 문제 해석 백트레킹에서 유명한 N-Queen 문제입니다. 가로, 세로 길이가 n인 정사각형 체스판이 존재합니다. 체스판 위에 n개의 퀸이 서로 공격할 수 없도록 배치하고 싶습니다. 만약 n = 4인 경우 다음과 같이 퀸을 배치하면 퀸은 서로를 한 번에 공격할 수 없습니다. n이 매개변수로 주어질 때 n개의 퀸이 조건에 만족하도록 배치합니다. n개의..
-
OpenVidu REST API 공식문서 분석프로젝트/WebRTC 화상통화 프로젝트 2022. 7. 11. 10:53
OpenVidu Server를 배포 후에는 OpenVidu REST API 공식문서를 활용하여 호출할 수 있습니다. 공식문서 링크 공통적인 사항 공통적으로 /openvidu/api 경로를 사용합니다. 동일한 Authorization 헤더를 사용합니다. Authorization 헤더는 사용자 이름과 암호에 Base64 인코딩을 적용해서 제공됩니다. 헤더가 잘못된 경우 모든 API 호출에는 401 상태 코드가 반환됩니다. 다음은 헤더 예시 입니다. Authorization: Basic T1BFTlZJRFVBUFA6TVlfU0VDUkVU Session Object 세션은 사용자가 서로 미디어 스트림을 송수신할 수 있는 회의실입니다. { "id": "ses_YnDaGYNcd7", "object": "sessio..
-
초식 : 초보자용 웹 서비스 성능 올리기 - 최범균세미나, 영상 요약정리 2022. 7. 11. 00:01
https://www.youtube.com/watch?v=JJJ4LReZ5q4 최범균님의 영상을 보고 정리한 내용입니다. 서버 성능의 기본 지표 2개(응답 시간과 처리량) 처리량은 보통 TPS라고 하며 초당 몇 개의 요청을 처리할 수 있는가를 나타냅니다. 응답 시간은 클라이언트가 요청하여 처리결과를 받을 때까지 걸리는 시간입니다. 응답 시간은 네트워크를 대기하는 Latency time과 실제로 서버가 처리하는 Processing Time의 합입니다. TPS를 높이기 위해서는 어떻게 해야 할까? 1. 서버 늘리기 만약 서버 1대가 10 TPS라면, 2대면 20 TPS입니다. 2. 쓰레드 풀 + DB 커넥션 풀 늘리기 동시 처리할 수 있는 개수 쓰레드 풀 5, 처리 시간 1초 -> TPS 5 쓰레드 풀 10..