Contenu connexe Similaire à AWS Summit Seoul 2023 |투자를 모두에게, 토스증권의 MTS 구축 사례 (20) Plus de Amazon Web Services Korea (20) AWS Summit Seoul 2023 |투자를 모두에게, 토스증권의 MTS 구축 사례1. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S E O U L | M A Y 3 - 4 , 2 0 2 3
2. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
투자를 모두에게,
토스증권의 MTS 구축 사례
오창훈
CTO
토스증권
라원수
Network Engineer
토스증권
신중훈
Solutions Architect
AWS
3. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권의 클라우드 여정
토스증권의 비전
토스증권의 MTS 구축 사례
토스증권의 차별화된 경쟁력
목차
4. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권의 클라우드 여정
5. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
모바일 금융의 확산은 자본 시장과 IT 거버넌스 환경에 변화를 요구하고 있습니다
모바일 금융서비스의 확산
증권업의 경우 최신의 투자정보를 실시간으로
제공/유지하는 것이 중요
모바일 금융서비스의 확산
정보통신기술의 발달과 코로나19 확산등의 영향으로
비대면 온라인 거래의 확대
전통적인 IT 거버넌스의 한계
하지만 대부분의 증권사가 비용 효율적인 자원 공급과
생산성 향상에 어려움을 경험
실시간 정보 처리의 중요성
6. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
금융투자업 내 모바일 매체의 성장
자료 : 2021년도 금융정보화 추진 현황, 한국거래소
2017 2018 2019 2020 2021
홈트레이딩
영업단말
36%
43%
주문 매체별 코스피 주식거래(건) 비중
4x
2019년 대비 일평균 이용금
액 증가율(32조원), 이중 매
매거래는 약 29조원
11x
3년간 해외주식 거래대금
증가율, 동기간 해외주식 잔
고는 5배 증가
2019년 대비 MTS 실이용
고객수 증가율, 2021년 기준
3,034만명
5x
주거래 수단이었던 HTS를 추
월, 2021년 기준 코스피 주식
거래 비중 48%
2019년
7. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권의 클라우드 여정
2020
.11
2023
.01
2022
.09
2022
.06
2022
.02
2021
.03
• [모바일 주식투자의 표준이 되겠다]는 포부로 출범
• 토스증권의 비전과 높은 생산성, 인프라 가용성을 확보하기 위해 AWS 클라우드를 선택
• 실시간 시세 서비스를 제공하기 위한 다양한 실험
2023
.03
Unicast 및 AWS 시세 서비스
연동을 위한 준비 및 테스트
Multicast PoC
Multicast alpha 환경 적용
with EKS
실시간 시세 서비스 런칭
Enterprise Support 계약
Kickoff
토스증권
본인가 취득
8. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권의 비전
9. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blitzscaling
불확실한 상황에서도 속도를 효율보다 우위에 두는 전략
10. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Flywheel과 Blitzscaling
낮은 가격은 고객방문을 유도한다
고객이 많으면 매출이 성장한다
매출이 성장하는 곳에 더 많은 셀러가 모인다
규모의 성장이 비용개선을 만든다
더 낮은 가격을 만드는 여건이 만들어 진다
11. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
지난 2년간의 눈부신 성장
3/15 출범
4/15 100만
4/16 200만
3달 후 300만
12. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
지난 2년간의 눈부신 성장
해외주식 (464.71%) 성장
시장점유율 20% 육박
13. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
지난 2년간의 눈부신 성장
출범 후 1년 6개월,
3분기 영업이익 달성
14. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
성장을 향한 수많은 도전
NEON 프로차트 종목상세2.0 개명프로세스개선
토스증권 뱃지2.0 고액송금 종목확대 물타기 계산기
주식캘린더 NEO 트레이딩 REACT NATIVE 주식
캐시백 산타퀴즈 인터넷망개발환경구성 차세대
프로젝트 브로커리지 이중화 환전 이중화 LOG TRACER
배 포 프 로 세 스 개 선 모 니 터 링 개 선 IDC 2 중 화
증권공론장 비효율청산 재해 재난복구훈련 차세대
시세시스템 오픈뱅킹 내주식캘린더 홈2.0 등 ……
15. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blitzscaling 필수 요소
1. *Speed (ability to run fast)
2. User Acceptance (Network effect, Platform power …)
3. Maker & Culture
4. Enough Resources
16. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Moment of difficulty
쉽지 않았던 순간들
17. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
COVID-19
18. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
하늘길도 막히고 바닷길도 막히고
IT 서비스가 일상생활을 대체하며
장비 수요와 주문이 넘쳐났던 시기
19. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
망분리
20. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
업무망/개발망/폐쇄망
공급망 상황, 망구성별 지속적인 장비 수급은 절실
21. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Solution
금융 맥락에 맞는 클라우드 활용 극대화
22. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
클라우드를 통한 네트워크 가용성 확보
AWS 네트워크 기반
실시간 시세
Limited Bandwidth 기반
실시간 시세
가용성과 안전성 확보
23. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
클라우드를 통한 개발 인프라 가용성 확보
생산성 증대 및 상대적 비용 절감
Amazon EKS 기반
개발 환경
IDC 기반 개발 환경
24. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Next step
더 좋은 서비스를 위한 효율의 극대화
25. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hyper Automation
• No Ops
• Low code / No code
• AI Continuous Testing (Chaos Testing, Performance Testing, E2E …)
26. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권의 MTS 구축 사례
27. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MTS
Mobile Trading System
28. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
시세
주 문 호 가
체 결 가 격
기 타 시 장 정 보
29. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
멀티캐스트
S
M M
M
30. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
클라우드로 MTS를 구축한 이유
국내주식 시세 멀티캐스트 구성 방식
AWS 클라우드를 활용한 MTS 구성 결과
목차
31. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
클라우드로 MTS를 구축한 이유
32. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
서비스 오픈과 급격한 성장
성 공 적 인 이 벤 트
64만 개
하루 최대 주식계좌 개설 수
33. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
서비스 오픈과 급격한 성장
34. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MTS핵심 서비스는?
35. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
시세서비스 제공을 위한 시작
36. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
국내주식 시세
멀티캐스트 구성 방식
37. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
고객에게 시세 서비스를 제공하기 위한 일반적인 시세 흐름
국내주식 시세 흐름
한국거래소 증권사 고객
Multicast
시세 원문
가공된 시세
시세 가공
38. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
고객에게 시세 서비스를 제공하기 위한 일반적인 시세 흐름
주식시세 처리과정
시세FEP
데이터 적재
고객
한국거래소
실시간 처리
REST API
WebSocket
39. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권
첫 번째 시도 , AWS에서의 실시간 시세 제공
시세 FEP 가공 서버
Kafka
Memory DB
MySQL DB
누적
시세
거래소
시세데이터
AWS Cloud
Redis
고객
REST API
WebSocket
Multicast 시세
시세
시세
실시간
시세
40. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권
두 번째 시도 , AWS에서의 실시간 및 누적 시세 제공
시세 FEP 가공 서버
Kafka
Memory DB
MySQL DB
실시간
시세
누적
시세
거래소
시세데이터
고객
Redis
REST API
WebSocket
AWS Cloud
Multicast
41. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS 멀티캐스트 구성 방식
AWS Transit Gateway
Multicast
VPC VPC
Subnet Subnet
Multicast Domain
42. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Premises와 AWS 멀티캐스트 구성 방식 (1)
PIM over GRE
43. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-Premises와 AWS 멀티캐스트 구성 방식 (2)
토스증권
거래소
Multicast
On-premises
AWS
GRE Tunnel
EC2
Instance
PIM
Direct Connect
44. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
멀티캐스트 설정 시 고려 사항
멤버 멤버
멤버
가상 라우터
AWS Cloud
멀티캐스트 도메인 (Static 또는 IGMPv2)
도메인 그룹 (예 : 233.252.0.5)
AWS Transit Gateway
Static / IGMPv2 지원
AWS Nitro System
기타
Multicast Domain
Virtual Router
Multicast 특이사항
45. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
멀티캐스트를 AWS로 전달하기 위한 네트워크 구성
AWS Cloud
토스증권
라우터
AWS Transit
Gateway
(Multicast enabled)
서울 Region
Multicast Service
VPC
Internal VPC
MTS Kubernetes Cluster
AWS
Marketplace
Cisco 8000V AMI
MTS Cluster
Auto Scaling group
거래소 스위치
시세 FEP
시세
FEP
가공
서버
AWS Direct Connect
location
Gateway
AWS
라우터
고객
라우터 가상 라우터
PIM over GRE
46. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MTS 시세 서비스를 위한 전체 구성
토스증권 AWS Cloud
Availability Zone
Multicast
Service VPC
Transit Gateway
for Multicast
라우터 가상 라우터
PIM over GRE
PIM over GRE
Transit Gateway
for Services
방화벽
AWS Direct
Connect
시세 FEP 가공 서버
Ingress VPC
방화벽
Internet
Gateway 고객
서울 Region
Availability Zone
Inspection VPC
Internal VPC
EKS
시세 서비스
Redis Kafka
EKS MySQL
47. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS 클라우드를 활용한 시세 인프라 구축 결과
30%
최신의 CPU를 사용, On-
premises 대비 높은 수준의
성능 개선
On-premises 배포 시 4주
이상 소요되던 배포 시간을
단축
10분
48. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
시세
서비스
시세
서비스
시세
서비스
주문
API
주문
API
제 3센터로 활용
토스증권 제 1센터 토스증권 제 2센터
토스증권 제 3센터
거래소
시세 수신
주문 송신
Active
Standby
MTS 사용자
시세송신 주문수신
49. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권의 차별화된 경쟁력
50. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
51. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
토스증권은 변화와
새로운 도전을
계속하고 있습니다
MTS 시세서비스를 위한 구성 요소
주식투자의 새로운 표준이 되기 위한
클라우드 기반의 IT 거버넌스 전략
• Blitzscaling
기업의 이윤을 희생해서라도 정말 빠른 속도로
확장하는 것을 목표로 하는 전략
• Fail fast, Succeed faster
빠른 성공을 위해 빠른 실패를 수용하는 조직
문화
• Hybrid Cloud
실패비용을 최소화하며 높은 수준의 확장성과
생산성을 추구
리더십 / One-Team / 기술 내재화 역량
AWS Cloud
EKS EC2 AWS
Marketplace
MySQL Kafka
Multicast Transit
Gateway
Direct
Connect
VPC Redis
52. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you.