Scalability strategies for cloud based system architecture

Brandon Kang
Brandon KangService Platform Architect
Service Platform Architect
Brandon Kang
sangjinn@gmail.com
https://tech.brandonkang.net
May 2020
Scalability Strategies for
Cloud based System Architecture
Agenda
• Scalability & Availability for the Global Markets
• Global scaled Scalability, Availability and Security
• Architecture for 100, 1K, 100K, 500K, 1M and 10M global users
• Auto-Scaling
• Understand Cloud Services
• Cloud Demo(AWS, GCP, Azure and Cloudflare)
• Wrap-Up
- Scalability -
Scalability
• Scalability = capability of a system to handle a growing work
• Vertical : Scale Up or Down
ü Add or Remove Resources
ü CPU
ü Memory
ü Storage
• Horizontal: Scale Out or In
ü Add or Remove Systems
ü Instance Scale OutScale In
VM VM VM VMVM VMVM VM
Scale Down
Scale Up
VMVM
Scalability ≠ Availability
Scalability vs. Availability
• Need 4 * VMs to provide services
Scalability: (2* VMs in a region) + (2* VMs in another region)
Availability: (4* VMs in a region) + (4* VMs in another region) for HA
1 User
Network
Fixed IP
Application
Database
Users < 100
Network
Fixed IP
Application
Database
Users > 1,000
Master
Slave
Load Balancer
Zone A
Zone B
Write
Write
Read
Replication
Region
Users > 100,000 M
R
R
S
R
R
Active/
Write
Read
Replica
Read
Replica
Read
Replica
Read
Replica
Stand-by/
Write
Users > 100,000 M
R
R
S
R
R
Object
Storage
Object
Storage
www.example.com
api.example.com
…
CDN
static.example.com
image.example.com
…
Users > 500,000
M
R
R
S
R
R
Object
Storage
Object
Storage
CDN
static.example.com
image.example.com
www.example.com
… DB
Caching
DB
Caching
API
Gateway
Service
Micro-Services
Architecture
api.example.com
Users > 500,000
• MSA(Microservices Architecture)
ü Every functions move to Microservices
ü Independent and loosely coupled
• API Gateway
ü API Routing
ü API Security
ü Authentication
ü Authorization
ü API Caching
ü Hits Rate Limit
ü Hits Throttling
ü Traffic Monitoring
Users > 1M
M
R
R
S
R
R
Object
Storage
Object
Storage
CDN
static.example.com
image.example.com
www.example.com
… DB
Caching
DB
Caching
API
Gateway
Service
api.example.com
Global
Queue
No
SQL
No
SQL
Auto
Scaling
Actions for 1M Users
• What data should be move to NoSQL from RDBMS?
ü Temporary but massive data e.g.) click information, log data, session data
ü Hot tables (tables who have very frequent updates)
ü Meta data store and search e.g.) object information from storage
ü Dynamic schema
ü Time-series table e.g.) monitoring logs
Users > 10M
M
R
R
S
R
R
Object
Storag
e
Object
Storag
e
CDN
static.example.com
image.example.com
www.example.com
…
DB
Cachin
g
DB
Cachin
g
API
Gateway
Service
api.example.com
No
SQL
No
SQL
Auto
Scaling
DB
Federation
+
DB Sharding
M
M
M
User
Message
Forum
Id=1~3
Id=4~6
Id=7~9
Auto
Scaling
Auto
Scaling
Global
Queue
API
Gateway
API
Gateway
CDN
Serverless
Functions
y = f(x) + α
Actions for 10M Users
• Multi Zone architecture in every region
• Consider expansion for all components e.g.) Multi-Master DB
• Maximize caching utilization from architecture and network
• Make autonomous systems
• Build auto-scaled systems using Cloud or Kubernetes
ü Virtual machine
ü Load balancer
ü Object storage
ü Notification system
ü Queuing system,
ü Workflows like Emailing, Alarming, etc.
Actions for 10M Users
• Entire Architecture tuning
• Application level tuning
• Globally distributed systems
• Global HA architecture (Multi Zone -> Multi Region)
• DevOps based application deployment
• CI(Continuous Integration)& CD(Continuous Development)
- Auto Scaling -
Actions for 10M Users
• What is Autoscaling?
Actions for 10M Users
• Autoscaling in On-Premise
desiredReplicas = ceil[currentReplicas * ( currentMetricValue / desiredMetricValue )]
* RC
Replication Controller
* Pod
A Group of containers
Actions for 10M Users
• Autoscaling in Cloud
Actions for 10M Users
• Autoscaling in Cloud
- Cloud -
Cloud Pros
• Fully Managed Services
• Flexible Scale Up/Down and Scale Out/In
• Auto Scaling
• HA using Multi Availability Zone and Multi Regions
• Performance
• Unlimited Capacity
• Serverless Architecture
• KMS(Key Management System)
• Computing, Network Big Data, IoT, AI, Machine Learning, etc.
• Low CAPEX/OPEX
• Compliance and Regulation e.g.) GDPR, CCPA
Cloud Cons
• Not Cheap and Unexpected Cost
• Not easy to migrate from On-Premise
• Sensitive Security
• No regions in Vietnam yet
• Vendor Stickiness?
• 99.999999999% Availability e.g.)AWS S3
• Support from outside vendors
• Need Experience and Training
AWS(Amazon Web Services) Regions
AWS Edge Locations ­ CDN, Serverless
AWS Services
AWS(Amazon Web Services)
AWS Basic Networking
a Internet
Gateway
Virtual
Private
Gateway
Router
Route
Table
Route
Table
Network
ACL
Network
ACL
Public Subnet (10.0.1.0/24)
Security GroupInstance
Private Subnet (10.0.2.0/24)
Security GroupInstance
VPC (MY_VPC_NAME) ­ 10.0.0.0/16
REGION (us-east-1)
NAT
Gateway
GCP(Google Cloud Platform)
Microsoft Azure
Cloudflare (CDN, WAF, DDoS, Bot, VPN, DNS)
- Cloud Demo ­
Demo for 20minutes with these implementation
1. Video Conference(WebRTC) platform using GCP
2. Testing PostgreSQL Multi-Master using Azure
3. AWS Chatbot usages for CloudWatch and Serverless Lambda
4. CDN, DNS and WAF integration using Cloudflare
- Wrap Up -
Best Practices for Global Markets
• Multi Regional Data Center (or Cloud)
• CDN(Content Delivery Network)
• Prepare Attacks -> WAF, DDoS Scrubbing, Bot Managing
• Server -> Instance in Cloud -> Serverless/Kubernetes
• Maximize Queuing
• Authentication out of Server
• DB -> Master/Slave, Primary/Secondary
• N/W Caching, DB Caching, Client Caching for Performance!
• Manual and routine jobs -> Automatic Workflows
• Microservices Architecture, DevOps and CI/CD
• Global Regulations Awareness
• Smart small, Grow Bigger!
Best Practices for Global Markets
Auto-Scale Everything,
Cache Everything,
And Protect Everything!
- Thank You. -
Service Platform Architect
Brandon Kang
sangjinn@gmail.com
https://tech.brandonkang.net
1 of 39

Recommended

Web Performance Optimization with HTTP/3 by
Web Performance Optimization with HTTP/3Web Performance Optimization with HTTP/3
Web Performance Optimization with HTTP/3Brandon Kang
184 views37 slides
HTTP 프로토콜의 이해와 활용 by
HTTP 프로토콜의 이해와 활용HTTP 프로토콜의 이해와 활용
HTTP 프로토콜의 이해와 활용Brandon Kang
180 views44 slides
Accordion HBaseCon 2017 by
Accordion HBaseCon 2017Accordion HBaseCon 2017
Accordion HBaseCon 2017Edward Bortnikov
174 views25 slides
Evolution of MongoDB Replicaset and Its Best Practices by
Evolution of MongoDB Replicaset and Its Best PracticesEvolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best PracticesMydbops
657 views35 slides
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M... by
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...MongoDB
2K views35 slides
Load Balancing with Apache by
Load Balancing with ApacheLoad Balancing with Apache
Load Balancing with ApacheBradley Holt
26.3K views48 slides

More Related Content

What's hot

Storage Services by
Storage ServicesStorage Services
Storage ServicesPavel Revenkov
719 views11 slides
HBaseCon 2015: Taming GC Pauses for Large Java Heap in HBase by
HBaseCon 2015: Taming GC Pauses for Large Java Heap in HBaseHBaseCon 2015: Taming GC Pauses for Large Java Heap in HBase
HBaseCon 2015: Taming GC Pauses for Large Java Heap in HBaseHBaseCon
14.6K views39 slides
Service workers - Velocity 2016 Training by
Service workers - Velocity 2016 TrainingService workers - Velocity 2016 Training
Service workers - Velocity 2016 TrainingPatrick Meenan
668 views39 slides
HBase at Xiaomi by
HBase at XiaomiHBase at Xiaomi
HBase at XiaomiHBaseCon
6K views38 slides
hbaseconasia2017: hbase-2.0.0 by
hbaseconasia2017: hbase-2.0.0hbaseconasia2017: hbase-2.0.0
hbaseconasia2017: hbase-2.0.0HBaseCon
1.8K views28 slides
Microsoft Azure Media Services by
Microsoft Azure Media ServicesMicrosoft Azure Media Services
Microsoft Azure Media ServicesPavel Revenkov
644 views15 slides

What's hot(20)

HBaseCon 2015: Taming GC Pauses for Large Java Heap in HBase by HBaseCon
HBaseCon 2015: Taming GC Pauses for Large Java Heap in HBaseHBaseCon 2015: Taming GC Pauses for Large Java Heap in HBase
HBaseCon 2015: Taming GC Pauses for Large Java Heap in HBase
HBaseCon14.6K views
Service workers - Velocity 2016 Training by Patrick Meenan
Service workers - Velocity 2016 TrainingService workers - Velocity 2016 Training
Service workers - Velocity 2016 Training
Patrick Meenan668 views
HBase at Xiaomi by HBaseCon
HBase at XiaomiHBase at Xiaomi
HBase at Xiaomi
HBaseCon6K views
hbaseconasia2017: hbase-2.0.0 by HBaseCon
hbaseconasia2017: hbase-2.0.0hbaseconasia2017: hbase-2.0.0
hbaseconasia2017: hbase-2.0.0
HBaseCon1.8K views
Microsoft Azure Media Services by Pavel Revenkov
Microsoft Azure Media ServicesMicrosoft Azure Media Services
Microsoft Azure Media Services
Pavel Revenkov644 views
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger by Jon Rangel
Let the Tiger Roar! - MongoDB 3.0 + WiredTigerLet the Tiger Roar! - MongoDB 3.0 + WiredTiger
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
Jon Rangel4.3K views
Real-time, Exactly-once Data Ingestion from Kafka to ClickHouse at eBay by Altinity Ltd
Real-time, Exactly-once Data Ingestion from Kafka to ClickHouse at eBayReal-time, Exactly-once Data Ingestion from Kafka to ClickHouse at eBay
Real-time, Exactly-once Data Ingestion from Kafka to ClickHouse at eBay
Altinity Ltd732 views
Caching methodology and strategies by Tiep Vu
Caching methodology and strategiesCaching methodology and strategies
Caching methodology and strategies
Tiep Vu203 views
hbaseconasia2017: Large scale data near-line loading method and architecture by HBaseCon
hbaseconasia2017: Large scale data near-line loading method and architecturehbaseconasia2017: Large scale data near-line loading method and architecture
hbaseconasia2017: Large scale data near-line loading method and architecture
HBaseCon598 views
Inside CynosDB: MariaDB optimized for the cloud at Tencent by MariaDB plc
Inside CynosDB: MariaDB optimized for the cloud at TencentInside CynosDB: MariaDB optimized for the cloud at Tencent
Inside CynosDB: MariaDB optimized for the cloud at Tencent
MariaDB plc708 views
Elephants in the Cloud by Mike Fowler
Elephants in the CloudElephants in the Cloud
Elephants in the Cloud
Mike Fowler1.4K views
캐시 분산처리 인프라 by Park Chunduck
캐시 분산처리 인프라캐시 분산처리 인프라
캐시 분산처리 인프라
Park Chunduck436 views
hbaseconasia2017: HBase Practice At XiaoMi by HBaseCon
hbaseconasia2017: HBase Practice At XiaoMihbaseconasia2017: HBase Practice At XiaoMi
hbaseconasia2017: HBase Practice At XiaoMi
HBaseCon1.8K views
Kafka Multi-Tenancy - 160 Billion Daily Messages on One Shared Cluster at LINE by kawamuray
Kafka Multi-Tenancy - 160 Billion Daily Messages on One Shared Cluster at LINEKafka Multi-Tenancy - 160 Billion Daily Messages on One Shared Cluster at LINE
Kafka Multi-Tenancy - 160 Billion Daily Messages on One Shared Cluster at LINE
kawamuray850 views
WiredTiger MongoDB Integration by MongoDB
WiredTiger MongoDB Integration WiredTiger MongoDB Integration
WiredTiger MongoDB Integration
MongoDB1.5K views
HBaseCon 2012 | Base Metrics: What They Mean to You - Cloudera by Cloudera, Inc.
HBaseCon 2012 | Base Metrics: What They Mean to You - ClouderaHBaseCon 2012 | Base Metrics: What They Mean to You - Cloudera
HBaseCon 2012 | Base Metrics: What They Mean to You - Cloudera
Cloudera, Inc.8.7K views
Webinar: Introduction to MongoDB 3.0 by MongoDB
Webinar: Introduction to MongoDB 3.0Webinar: Introduction to MongoDB 3.0
Webinar: Introduction to MongoDB 3.0
MongoDB4.5K views
hbaseconasia2017: Building online HBase cluster of Zhihu based on Kubernetes by HBaseCon
hbaseconasia2017: Building online HBase cluster of Zhihu based on Kuberneteshbaseconasia2017: Building online HBase cluster of Zhihu based on Kubernetes
hbaseconasia2017: Building online HBase cluster of Zhihu based on Kubernetes
HBaseCon3.9K views
HBaseCon 2013: A Developer’s Guide to Coprocessors by Cloudera, Inc.
HBaseCon 2013: A Developer’s Guide to CoprocessorsHBaseCon 2013: A Developer’s Guide to Coprocessors
HBaseCon 2013: A Developer’s Guide to Coprocessors
Cloudera, Inc.8K views

Similar to Scalability strategies for cloud based system architecture

Building a Just-in-Time Application Stack for Analysts by
Building a Just-in-Time Application Stack for AnalystsBuilding a Just-in-Time Application Stack for Analysts
Building a Just-in-Time Application Stack for AnalystsAvere Systems
386 views34 slides
HPC in AWS - Technical Workshop by
HPC in AWS - Technical WorkshopHPC in AWS - Technical Workshop
HPC in AWS - Technical WorkshopAlex Barbosa Coqueiro
1.3K views93 slides
Azure vs AWS Best Practices: What You Need to Know by
Azure vs AWS Best Practices: What You Need to KnowAzure vs AWS Best Practices: What You Need to Know
Azure vs AWS Best Practices: What You Need to KnowRightScale
21.4K views38 slides
Microsoft cloud stack by
Microsoft cloud stackMicrosoft cloud stack
Microsoft cloud stackMichael Rüefli
2.9K views36 slides
AWS 101 December 2014 by
AWS 101 December 2014AWS 101 December 2014
AWS 101 December 2014Ian Massingham
1.5K views117 slides
AWS Meetup Fort Lauderdale Re:invent Recap by
AWS Meetup Fort Lauderdale Re:invent RecapAWS Meetup Fort Lauderdale Re:invent Recap
AWS Meetup Fort Lauderdale Re:invent RecapAnthony Palmer
58 views27 slides

Similar to Scalability strategies for cloud based system architecture(20)

Building a Just-in-Time Application Stack for Analysts by Avere Systems
Building a Just-in-Time Application Stack for AnalystsBuilding a Just-in-Time Application Stack for Analysts
Building a Just-in-Time Application Stack for Analysts
Avere Systems386 views
Azure vs AWS Best Practices: What You Need to Know by RightScale
Azure vs AWS Best Practices: What You Need to KnowAzure vs AWS Best Practices: What You Need to Know
Azure vs AWS Best Practices: What You Need to Know
RightScale21.4K views
AWS Meetup Fort Lauderdale Re:invent Recap by Anthony Palmer
AWS Meetup Fort Lauderdale Re:invent RecapAWS Meetup Fort Lauderdale Re:invent Recap
AWS Meetup Fort Lauderdale Re:invent Recap
Anthony Palmer58 views
re:Invent Recap-AWSMeetup by CloudHesive
re:Invent Recap-AWSMeetupre:Invent Recap-AWSMeetup
re:Invent Recap-AWSMeetup
CloudHesive213 views
Cloud computing and its job opportunities by Ramya SK
Cloud computing and its job opportunities Cloud computing and its job opportunities
Cloud computing and its job opportunities
Ramya SK409 views
AWS re:Invent 2016: Discovery Channel's Broadcast Workflows and Channel Origi... by Amazon Web Services
AWS re:Invent 2016: Discovery Channel's Broadcast Workflows and Channel Origi...AWS re:Invent 2016: Discovery Channel's Broadcast Workflows and Channel Origi...
AWS re:Invent 2016: Discovery Channel's Broadcast Workflows and Channel Origi...
Amazon Web Services3.4K views
AWS 101, London - September 2014 by Ian Massingham
AWS 101, London - September 2014AWS 101, London - September 2014
AWS 101, London - September 2014
Ian Massingham2.5K views
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi... by Adrian Cockcroft
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...
CMG2013 Workshop: Netflix Cloud Native, Capacity, Performance and Cost Optimi...
Adrian Cockcroft13.8K views
AWS Cloud Computing for Startups Werner Vogels -part i by Amazon Web Services
AWS Cloud Computing for Startups   Werner Vogels -part iAWS Cloud Computing for Startups   Werner Vogels -part i
AWS Cloud Computing for Startups Werner Vogels -part i
Amazon Web Services1.3K views
Building a Big Data & Analytics Platform using AWS by Amazon Web Services
Building a Big Data & Analytics Platform using AWS Building a Big Data & Analytics Platform using AWS
Building a Big Data & Analytics Platform using AWS
Amazon Web Services11.7K views
Achieve big data analytic platform with lambda architecture on cloud by Scott Miao
Achieve big data analytic platform with lambda architecture on cloudAchieve big data analytic platform with lambda architecture on cloud
Achieve big data analytic platform with lambda architecture on cloud
Scott Miao1.1K views

More from Brandon Kang

웹에 빠른 날개를 달아주는 웹 성능 향상 이야기 by
웹에 빠른 날개를 달아주는 웹 성능 향상 이야기웹에 빠른 날개를 달아주는 웹 성능 향상 이야기
웹에 빠른 날개를 달아주는 웹 성능 향상 이야기Brandon Kang
23 views43 slides
How to Replicate PostgreSQL Database by
How to Replicate PostgreSQL DatabaseHow to Replicate PostgreSQL Database
How to Replicate PostgreSQL DatabaseBrandon Kang
181 views13 slides
HTTP/3 시대의 웹 성능 최적화 기술 이해하기 by
HTTP/3 시대의 웹 성능 최적화 기술 이해하기HTTP/3 시대의 웹 성능 최적화 기술 이해하기
HTTP/3 시대의 웹 성능 최적화 기술 이해하기Brandon Kang
6.1K views39 slides
수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019) by
수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019)수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019)
수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019)Brandon Kang
254 views37 slides
How to develop and localize Xbox 360 titles by
How to develop and localize Xbox 360 titlesHow to develop and localize Xbox 360 titles
How to develop and localize Xbox 360 titlesBrandon Kang
281 views41 slides
Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구 by
Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구
Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구Brandon Kang
1.3K views52 slides

More from Brandon Kang(13)

웹에 빠른 날개를 달아주는 웹 성능 향상 이야기 by Brandon Kang
웹에 빠른 날개를 달아주는 웹 성능 향상 이야기웹에 빠른 날개를 달아주는 웹 성능 향상 이야기
웹에 빠른 날개를 달아주는 웹 성능 향상 이야기
Brandon Kang23 views
How to Replicate PostgreSQL Database by Brandon Kang
How to Replicate PostgreSQL DatabaseHow to Replicate PostgreSQL Database
How to Replicate PostgreSQL Database
Brandon Kang181 views
HTTP/3 시대의 웹 성능 최적화 기술 이해하기 by Brandon Kang
HTTP/3 시대의 웹 성능 최적화 기술 이해하기HTTP/3 시대의 웹 성능 최적화 기술 이해하기
HTTP/3 시대의 웹 성능 최적화 기술 이해하기
Brandon Kang6.1K views
수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019) by Brandon Kang
수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019)수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019)
수요자 중심의 클라우드 운영 및 전략 (CIO Summit 2019)
Brandon Kang254 views
How to develop and localize Xbox 360 titles by Brandon Kang
How to develop and localize Xbox 360 titlesHow to develop and localize Xbox 360 titles
How to develop and localize Xbox 360 titles
Brandon Kang281 views
Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구 by Brandon Kang
Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구
Akamai 서비스 트러블 슈팅 및 테스트 방법과 도구
Brandon Kang1.3K views
HTTP/2와 웹 성능 최적화 방안 by Brandon Kang
HTTP/2와 웹 성능 최적화 방안HTTP/2와 웹 성능 최적화 방안
HTTP/2와 웹 성능 최적화 방안
Brandon Kang3.9K views
Akamai Korea - Tech Day (2015/03/11) DNS by Brandon Kang
Akamai Korea - Tech Day (2015/03/11) DNSAkamai Korea - Tech Day (2015/03/11) DNS
Akamai Korea - Tech Day (2015/03/11) DNS
Brandon Kang1.4K views
Akamai Korea - Tech Day (2015/03/11) HTTP/2 by Brandon Kang
Akamai Korea - Tech Day (2015/03/11) HTTP/2Akamai Korea - Tech Day (2015/03/11) HTTP/2
Akamai Korea - Tech Day (2015/03/11) HTTP/2
Brandon Kang6.1K views
HTML5 for web app. development by Brandon Kang
HTML5 for web app. developmentHTML5 for web app. development
HTML5 for web app. development
Brandon Kang1.3K views
Agile - SCRUM을 통한 개발관리 by Brandon Kang
Agile - SCRUM을 통한 개발관리Agile - SCRUM을 통한 개발관리
Agile - SCRUM을 통한 개발관리
Brandon Kang13.4K views
XNA2.0 Network Programming by Brandon Kang
XNA2.0 Network ProgrammingXNA2.0 Network Programming
XNA2.0 Network Programming
Brandon Kang1.5K views

Recently uploaded

Voice Logger - Telephony Integration Solution at Aegis by
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at AegisNirmal Sharma
31 views1 slide
Case Study Copenhagen Energy and Business Central.pdf by
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdfAitana
16 views3 slides
Empathic Computing: Delivering the Potential of the Metaverse by
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the MetaverseMark Billinghurst
476 views80 slides
Web Dev - 1 PPT.pdf by
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdfgdsczhcet
60 views45 slides
Report 2030 Digital Decade by
Report 2030 Digital DecadeReport 2030 Digital Decade
Report 2030 Digital DecadeMassimo Talia
15 views41 slides
Data-centric AI and the convergence of data and model engineering: opportunit... by
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...Paolo Missier
39 views40 slides

Recently uploaded(20)

Voice Logger - Telephony Integration Solution at Aegis by Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma31 views
Case Study Copenhagen Energy and Business Central.pdf by Aitana
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdf
Aitana16 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst476 views
Web Dev - 1 PPT.pdf by gdsczhcet
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet60 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier39 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker33 views
Spesifikasi Lengkap ASUS Vivobook Go 14 by Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang37 views
DALI Basics Course 2023 by Ivory Egg
DALI Basics Course  2023DALI Basics Course  2023
DALI Basics Course 2023
Ivory Egg16 views
HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn21 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson66 views
AMAZON PRODUCT RESEARCH.pdf by JerikkLaureta
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdf
JerikkLaureta19 views
Unit 1_Lecture 2_Physical Design of IoT.pdf by StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec12 views
Business Analyst Series 2023 - Week 3 Session 5 by DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10237 views
1st parposal presentation.pptx by i238212
1st parposal presentation.pptx1st parposal presentation.pptx
1st parposal presentation.pptx
i2382129 views
6g - REPORT.pdf by Liveplex
6g - REPORT.pdf6g - REPORT.pdf
6g - REPORT.pdf
Liveplex10 views
Attacking IoT Devices from a Web Perspective - Linux Day by Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 views

Scalability strategies for cloud based system architecture

  • 1. Service Platform Architect Brandon Kang sangjinn@gmail.com https://tech.brandonkang.net May 2020 Scalability Strategies for Cloud based System Architecture
  • 2. Agenda • Scalability & Availability for the Global Markets • Global scaled Scalability, Availability and Security • Architecture for 100, 1K, 100K, 500K, 1M and 10M global users • Auto-Scaling • Understand Cloud Services • Cloud Demo(AWS, GCP, Azure and Cloudflare) • Wrap-Up
  • 4. Scalability • Scalability = capability of a system to handle a growing work • Vertical : Scale Up or Down ü Add or Remove Resources ü CPU ü Memory ü Storage • Horizontal: Scale Out or In ü Add or Remove Systems ü Instance Scale OutScale In VM VM VM VMVM VMVM VM Scale Down Scale Up VMVM
  • 6. Scalability vs. Availability • Need 4 * VMs to provide services Scalability: (2* VMs in a region) + (2* VMs in another region) Availability: (4* VMs in a region) + (4* VMs in another region) for HA
  • 8. Users < 100 Network Fixed IP Application Database
  • 9. Users > 1,000 Master Slave Load Balancer Zone A Zone B Write Write Read Replication Region
  • 10. Users > 100,000 M R R S R R Active/ Write Read Replica Read Replica Read Replica Read Replica Stand-by/ Write
  • 11. Users > 100,000 M R R S R R Object Storage Object Storage www.example.com api.example.com … CDN static.example.com image.example.com …
  • 12. Users > 500,000 M R R S R R Object Storage Object Storage CDN static.example.com image.example.com www.example.com … DB Caching DB Caching API Gateway Service Micro-Services Architecture api.example.com
  • 13. Users > 500,000 • MSA(Microservices Architecture) ü Every functions move to Microservices ü Independent and loosely coupled • API Gateway ü API Routing ü API Security ü Authentication ü Authorization ü API Caching ü Hits Rate Limit ü Hits Throttling ü Traffic Monitoring
  • 14. Users > 1M M R R S R R Object Storage Object Storage CDN static.example.com image.example.com www.example.com … DB Caching DB Caching API Gateway Service api.example.com Global Queue No SQL No SQL Auto Scaling
  • 15. Actions for 1M Users • What data should be move to NoSQL from RDBMS? ü Temporary but massive data e.g.) click information, log data, session data ü Hot tables (tables who have very frequent updates) ü Meta data store and search e.g.) object information from storage ü Dynamic schema ü Time-series table e.g.) monitoring logs
  • 16. Users > 10M M R R S R R Object Storag e Object Storag e CDN static.example.com image.example.com www.example.com … DB Cachin g DB Cachin g API Gateway Service api.example.com No SQL No SQL Auto Scaling DB Federation + DB Sharding M M M User Message Forum Id=1~3 Id=4~6 Id=7~9 Auto Scaling Auto Scaling Global Queue API Gateway API Gateway CDN Serverless Functions y = f(x) + α
  • 17. Actions for 10M Users • Multi Zone architecture in every region • Consider expansion for all components e.g.) Multi-Master DB • Maximize caching utilization from architecture and network • Make autonomous systems • Build auto-scaled systems using Cloud or Kubernetes ü Virtual machine ü Load balancer ü Object storage ü Notification system ü Queuing system, ü Workflows like Emailing, Alarming, etc.
  • 18. Actions for 10M Users • Entire Architecture tuning • Application level tuning • Globally distributed systems • Global HA architecture (Multi Zone -> Multi Region) • DevOps based application deployment • CI(Continuous Integration)& CD(Continuous Development)
  • 20. Actions for 10M Users • What is Autoscaling?
  • 21. Actions for 10M Users • Autoscaling in On-Premise desiredReplicas = ceil[currentReplicas * ( currentMetricValue / desiredMetricValue )] * RC Replication Controller * Pod A Group of containers
  • 22. Actions for 10M Users • Autoscaling in Cloud
  • 23. Actions for 10M Users • Autoscaling in Cloud
  • 25. Cloud Pros • Fully Managed Services • Flexible Scale Up/Down and Scale Out/In • Auto Scaling • HA using Multi Availability Zone and Multi Regions • Performance • Unlimited Capacity • Serverless Architecture • KMS(Key Management System) • Computing, Network Big Data, IoT, AI, Machine Learning, etc. • Low CAPEX/OPEX • Compliance and Regulation e.g.) GDPR, CCPA
  • 26. Cloud Cons • Not Cheap and Unexpected Cost • Not easy to migrate from On-Premise • Sensitive Security • No regions in Vietnam yet • Vendor Stickiness? • 99.999999999% Availability e.g.)AWS S3 • Support from outside vendors • Need Experience and Training
  • 28. AWS Edge Locations ­ CDN, Serverless
  • 31. AWS Basic Networking a Internet Gateway Virtual Private Gateway Router Route Table Route Table Network ACL Network ACL Public Subnet (10.0.1.0/24) Security GroupInstance Private Subnet (10.0.2.0/24) Security GroupInstance VPC (MY_VPC_NAME) ­ 10.0.0.0/16 REGION (us-east-1) NAT Gateway
  • 34. Cloudflare (CDN, WAF, DDoS, Bot, VPN, DNS)
  • 35. - Cloud Demo ­ Demo for 20minutes with these implementation 1. Video Conference(WebRTC) platform using GCP 2. Testing PostgreSQL Multi-Master using Azure 3. AWS Chatbot usages for CloudWatch and Serverless Lambda 4. CDN, DNS and WAF integration using Cloudflare
  • 37. Best Practices for Global Markets • Multi Regional Data Center (or Cloud) • CDN(Content Delivery Network) • Prepare Attacks -> WAF, DDoS Scrubbing, Bot Managing • Server -> Instance in Cloud -> Serverless/Kubernetes • Maximize Queuing • Authentication out of Server • DB -> Master/Slave, Primary/Secondary • N/W Caching, DB Caching, Client Caching for Performance! • Manual and routine jobs -> Automatic Workflows • Microservices Architecture, DevOps and CI/CD • Global Regulations Awareness • Smart small, Grow Bigger!
  • 38. Best Practices for Global Markets Auto-Scale Everything, Cache Everything, And Protect Everything!
  • 39. - Thank You. - Service Platform Architect Brandon Kang sangjinn@gmail.com https://tech.brandonkang.net