전체 글
-
OpenVidu 배포하기프로젝트/WebRTC 화상통화 프로젝트 2022. 7. 10. 21:26
OpenVidu Edition OpenVidu를 간편하게 배포할 수 있는 3가지가 있습니다. 3가지 Edition이 존재하며 각 Edition마다 기능, 요금이 다릅니다. CE 버전은 무료 PRO, ENTERPRISE 버전은 유료입니다. 오른쪽으로 갈수록 가능은 더 많이 제공합니다. 무료 버전인 CE버전으로 배포할 계획입니다. 배포 법 배포하는 법은 크게 2가지로 나뉩니다. AWS Cloud Formation을 통한 배포, on premises 환경을 통한 배포 AWS Cloub Formation 배포 문서 바로가기 on premises 배포 문서 바로가기 on premises란? 자체적으로 보유한 전산실 서버에 직접 배포하는 형태 Linux 환경이나 AWS EC2 환경에 배포하면 됩니다. on prem..
-
[프로그래머스] 부족한 금액 계산하기 - 자바(JAVA)알고리즘/프로그래머스 2022. 7. 10. 00:01
https://programmers.co.kr/learn/courses/30/lessons/82612 코딩테스트 연습 - 부족한 금액 계산하기 새로 생긴 놀이기구는 인기가 매우 많아 줄이 끊이질 않습니다. 이 놀이기구의 원래 이용료는 price원 인데, 놀이기구를 N 번 째 이용한다면 원래 이용료의 N배를 받기로 하였습니다. 즉, 처음 이 programmers.co.kr 문제 해석 새로 생긴 놀이기구는 인기가 너무 많아 줄이 끊이지 않습니다. 원래 이용료는 price인데 놀이기구를 N번째로 이용한다면 원래 이용료의 N배를 받습니다. 처음 이용료가 100이라면 2번째는 200, 3번째는 300으로 요금이 인상됩니다. 놀이기구를 count번 타게 되면 현재 자신이 가지고 있는 금액에서 얼마가 모자라는지를 r..
-
OpenVidu 공식문서로 시작해보기프로젝트/WebRTC 화상통화 프로젝트 2022. 7. 9. 15:43
OpenVidu의 공식문서를 기반으로 OpenVidu를 시작해 보려고 합니다. OpenVidu 공식문서 1단계 선택하기(OpenVidu vs Kurento) OpenVidu라는 쿠렌토를 높은 레벨로 추상화시켜 사용하기 쉽게 제공하는 프레임워크가 있습니다. 쿠렌토를 사용하면 더 많은 기능들을 활용할 수 있지만 복잡도가 증가하게 됩니다. 하지만 간단하게 적용하기 위해서는 OpenVidu 또한 좋은 선택이 될 수 있습니다. 쿠렌토의 공식문서에서도 Warning이라는 메시지로 OpenVidu가 더 추상화되고 사용하기 쉽다고 명시되어 있습니다. OpenVidu란? OpenVidu는 Kurento를 기반으로 하는 프레임워크입니다. OpenVidu를 사용하는 애플리케이션 개발자는 일반적인 WebRTC 통신의 일부를 ..
-
토스증권 실시간 시세 적용기 - 토스(박성우)세미나, 영상 요약정리 2022. 7. 9. 00:01
https://www.youtube.com/watch?v=WKYE-QtzO6g 토스 증권 마켓 플랫폼 팀에서 백엔드 엔지니어로 재직 중인 박성우 개발자님의 영상을 정리한 내용입니다. 주제 - 토스 증권 MTS(Mobile Trading System)의 실시간 시세를 개발하면서 겪었던 이슈들과 문제 해결 과정 - 증권사 개발이라고 하면 막연히 도메인의 어려움과 레거시가 떠오르지만 토스에서는 어떤 일을 하고 어떤 것들에 집중하는지 소개합니다. 증권 도메인 소개 주식 시장에서 구매자와 판매자들은 거래를 하기 위해 서로 사거나 팔고 싶은 가격을 부릅니다. 이를 "주문호가"라고 하는데 주문 호가 중 일치하는 상대 주문이 존재하는 경우에 거래가 체결됩니다. 이렇게 성사된 거래 가격들이 쌓인 것들이 우리가 흔히 보는..
-
[백준] 2536번 : 버스 갈아타기 - 자바(JAVA)알고리즘/백준 2022. 7. 8. 00:01
https://www.acmicpc.net/problem/2536 2536번: 버스 갈아타기 첫 번째 줄에 수직선의 수 m과 수평선의 수 n이 빈칸을 사이에 두고 주어진다 (1 ≤ m,n ≤ 100,000). 두 번째 줄에 버스의 수 k (1 ≤ k ≤ 5,000)가 주어진다. 세 번째 줄부터 k 줄에 걸쳐 각 줄에 버스의 www.acmicpc.net 문제 해석 2차원 평면상에 m개의 수직선과 n개의 수평선으로 이루어진 격자 형태의 도로망이 있습니다. 아래 그림은 7개의 수직선과 6개의 수평선으로 이루어진 도로망의 예시입니다. 가로 7 세로 6 이 도로망을 운행하는 버스들이 k개 존재하며 각 버스는 하나의 수평선 상의 두 교차점 사이 선분이나 수직선 상의 두 교차점 사이 선분을 왕복 운행합니다. 즉, 가..
-
당신이 넷플릭스 같은 서비스를 디자인 한다면 - 널널한 개발자 TV세미나, 영상 요약정리 2022. 7. 7. 00:01
당신이 넷플릭스 같은 서비스를 디자인 한다면? #1 당신이 넷플릭스 같은 서비스를 디자인 한다면? #2 당신이 넷플릭스 같은 서비스를 디자인 한다면? #3 당신이 넷플릭스 같은 서비스를 디자인 한다면? 위의 질문의 의도는 당신이 아는 것을 전부 털어놓아 보아라입니다. "설계를 어떻게 할 것인가?"에 대한 질문입니다. 기본적으로 웹 기술 + Streaming 기술이 필요합니다. 넷플릭스같은 서비스는 Web기반으로 이루어지고 WAS + DB 구조로 이루어져 있습니다. Web기반이기 때문에 부하분산이 중요하고 회원 로그인에 대한 인증 + 서비스 + 과금 + 다중계정 이슈등이 중요합니다. 또한 콘텐츠를 만들어서 판매하는 사람들에게는 무단 복제/배포가 되지 않는 콘텐츠 보호라는 측면이 매우 중요합니다. 따라서 D..
-
[백준] 1981번 : 배열에서 이동 - 자바(JAVA)알고리즘/백준 2022. 7. 6. 00:01
https://www.acmicpc.net/problem/1981 1981번: 배열에서 이동 n×n짜리의 배열이 하나 있다. 이 배열의 (1, 1)에서 (n, n)까지 이동하려고 한다. 이동할 때는 상, 하, 좌, 우의 네 인접한 칸으로만 이동할 수 있다. 이와 같이 이동하다 보면, 배열에서 몇 개의 수를 www.acmicpc.net 문제 해석 n x n 배열이 존재하고 배열의 (1,1)에서 (n, n)까지 이동하려고 합니다. 이동할 때는 상하좌우로 1칸씩 이동할 수 있습니다. 이동하기 위해 거쳐 간 수들 중 최댓값과 최솟값의 차이가 가장 작아지는 경우를 구하세요 문제 풀이 전 설계 n의 범위는 최대 100 x 100으로 10,000입니다. 세 가지 풀이가 떠올랐습니다. 1. 파라메트릭 서치 배열의 각 ..
-
[백준] 7453번 : 합이 0인 네 정수 - 자바(JAVA)알고리즘/백준 2022. 7. 5. 00:01
https://www.acmicpc.net/problem/7453 7453번: 합이 0인 네 정수 첫째 줄에 배열의 크기 n (1 ≤ n ≤ 4000)이 주어진다. 다음 n개 줄에는 A, B, C, D에 포함되는 정수가 공백으로 구분되어져서 주어진다. 배열에 들어있는 정수의 절댓값은 최대 228이다. www.acmicpc.net 문제 해석 정수로 이루어진 크기가 같은 배열 4개가 존재합니다. A[a], B[b], C[c], D[d] 의 합이 0인 (a, b, c, d) 쌍의 개수를 구하는 프로그램을 작성하세요 배열의 크기 최대(4000) 배열에 들어있는 정수의 최대는 2^28입니다. 문제 풀이 전 설계 시간 제한이 12초인 점이 가장 먼저 눈에 들어왔습니다. 또한 정수의 절댓값은 2^28인데 4개의 배열..