Top Banner
Shuen-Huei Guan, KKBOX 2015-12-01 AWS re:Invnet 2015 Recap Migrate the Mission Critical Application to AWS Cloud
28

Migrate the Mission Critical Application to AWS Cloud

Feb 08, 2017

Download

Technology

Shuen-Huei Guan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Migrate the Mission Critical Application to AWS Cloud

Shuen-Huei Guan, KKBOX

2015-12-01

AWS re:Invnet 2015 Recap Migrate the Mission Critical Application to

AWS Cloud

Page 2: Migrate the Mission Critical Application to AWS Cloud

Who am I?

Shuen-Huei (Drake) Guan / @drakeguan Sr. Principal Engineer, Video.KKBOX Volunteer, PyCon Taiwan

Page 3: Migrate the Mission Critical Application to AWS Cloud

What to Expect from the Session

•  How we migrate a video-on-demand service. •  What we benefited from AWS. •  What we saw in AWS re:Invent 2015. •  What’s next then.

Page 4: Migrate the Mission Critical Application to AWS Cloud
Page 5: Migrate the Mission Critical Application to AWS Cloud

VideoPass

•  Video-on-demand (OTT) service, built as on-premises platform.

•  1M subscription users. •  The scale of commercial contents is huge.

•  More than 10k videos, ~= 2,000,000 minutes.

•  Content encoding capacity is constrained.

Page 6: Migrate the Mission Critical Application to AWS Cloud

VideoPass Migration Plan

•  1yr Development. •  Integration of 4+2 vendors. •  Nearly seamless. No obvious service shutdown. •  2-staged migration.

Page 7: Migrate the Mission Critical Application to AWS Cloud

What We Pursue…

•  Built on cloud from 1st day. •  Just one AWS DevOps Engineer. •  4 dynamic environments:

develop, testing, staging, and production. •  Scalable infrastructure, storage and bandwidth. •  Powerful content encoding capability. •  Standardized format: MPEG-DASH, HLS, CENC, …

Page 8: Migrate the Mission Critical Application to AWS Cloud
Page 9: Migrate the Mission Critical Application to AWS Cloud

Typical Architecture

•  Entry points: EC2 + ELB + Auto Scaling group.

•  Valuable Data: Multi-AZ RDS + ElasticSearch.

•  Media warehouse: S3 + CDN.

•  Future-proof: wrapped API access to AWS.

Page 10: Migrate the Mission Critical Application to AWS Cloud

Content Encoding Workflow

Page 11: Migrate the Mission Critical Application to AWS Cloud
Page 12: Migrate the Mission Critical Application to AWS Cloud

Orchestrating the execution of workflows for media streaming service and even more

- PyCon APAC 2015 - https://github.com/KKBOX/mass�

Page 13: Migrate the Mission Critical Application to AWS Cloud

Gains from AWS

•  Cooperation with AWS team to survive the migration. - IEM (Infrastructure Event Management) - Enterprise Support.

•  Really insane encoding capability. - 3,000 videos in just one day. - done by 800 encoders.

•  We just hired one AWS DevOps!

Page 14: Migrate the Mission Critical Application to AWS Cloud

Rumor has it that AWS re:Invent is awesome!

Page 15: Migrate the Mission Critical Application to AWS Cloud
Page 16: Migrate the Mission Critical Application to AWS Cloud

Data Center Migration

•  GAM303 - Riot Games: Migrating Mountains of Big Data to AWS

•  DAT205 - Introduction to AWS Database Migration Service

•  ISM201 - Preparing for Migration: Developing a Roadmap to AWS for 7,700 Systems and 5 Global Data Centers

•  … (Data center of KKBOX music streaming?)

Page 17: Migrate the Mission Critical Application to AWS Cloud

Real-time Streaming Data

•  BDT403 - Best Practices for Building Real-time Streaming Applications with Amazon Kinesis

•  ARC310-APAC - Amazon.com: Solving Amazon's Catalog Contention and Cost with Amazon Kinesis

•  BDT205 - Your First Big Data Application on AWS •  … (Real-time user behaviors analysis?)

Page 18: Migrate the Mission Critical Application to AWS Cloud

Microservices

•  ARC201 - Microservices Architecture for Digital Platforms with AWS Lambda, Amazon CloudFront and Amazon DynamoDB

•  ARC303 - Pure Play Video OTT: A Microservices Architecture in the Cloud

•  ARC309 - From Monolithic to Microservices: Evolving Architecture Patterns in the Cloud

•  ... (Developers >> Researchers >> DevOps)

Page 19: Migrate the Mission Critical Application to AWS Cloud

Cost Optimization

•  ARC302 - Running Lean Architectures: How to Optimize for Cost Efficiency

•  ISM402 - Cost Optimization at Scale •  STG311 - AWS Storage Gateway: Simple, Secure, Cost-

Effective Backup and Archive in the Cloud •  … (Cost optimization is always that hot even after

re:Play party!)

Page 20: Migrate the Mission Critical Application to AWS Cloud

The best server is no server at all

Page 21: Migrate the Mission Critical Application to AWS Cloud
Page 22: Migrate the Mission Critical Application to AWS Cloud

AWS Lambda (2.0)

•  Python++ •  1 minute -> 5 minutes •  Scheduling •  Events

•  S3 •  Kinesis •  SWF •  CloudWatch Log

Page 23: Migrate the Mission Critical Application to AWS Cloud
Page 24: Migrate the Mission Critical Application to AWS Cloud
Page 25: Migrate the Mission Critical Application to AWS Cloud

Before AWS re:Invent, We Thought

•  Cost optimization: - lower IT labor - flexible infrastructure

•  Fully-managed scalability (IaaS): - Auto-Scaling group - ELB - VPC

•  Well support: - Enterprise support

Page 26: Migrate the Mission Critical Application to AWS Cloud

After AWS re:Invent, We Thought

•  Cost optimization: - development faster, then deployment - quit/change even faster if necessary

•  Brainless scalability (PaaS): - serverless microservices - Lambda + API Gateway

•  Deeper support: - continuous mutual cooperation - more KKBOX staffs to AWS re:Invent!

Page 27: Migrate the Mission Critical Application to AWS Cloud

KKBOX Video

•  Initiated in 2014. •  Team built from 10 staff. •  1yr development for the whole system. •  Preparing for next challenges.

Page 28: Migrate the Mission Critical Application to AWS Cloud

Thank you!

Have I mentioned that we are hiring? Try this: [email protected]