104 meets cloud

22
104 Meets Cloud 撥撥撥撥撥撥撥 104 撥撥撥撥 撥撥撥撥撥 撥撥撥 ©2016, 104 Corp. CC-BY 4.0

Upload: cliff-chao-kuan-lu

Post on 13-Apr-2017

62 views

Category:

Software


0 download

TRANSCRIPT

Page 1: 104 meets cloud

©2016, 104 Corp. CC-BY 4.0

104 Meets Cloud撥雲見日甘苦談

104 資訊科技資深架構師呂昭寬

Page 2: 104 meets cloud

Cliff Chao-kuan Lu

• Sr. Architect @ 104 Corp

• Full-stack Web Dev / SA• Certified AWS Professional SA• AWS Community Hero since ‘16• AWS User Group Taiwan Organizer since ‘14

Page 3: 104 meets cloud

CLOUD COMPUTING

Page 4: 104 meets cloud

Cloud - NIST Definition

• Characteristics:–On-demand self-service–Broad network access–Resource pooling–Rapid elasticity–Measured service

NIST 800-145, Sep. 2011

Page 5: 104 meets cloud

NIST Definition (cont.)

Deployment Models• Private cloud• Community cloud• Public cloud• Hybrid cloud

Service Models• Software as a Service• Platform as a Service• Infrastructure as a Service

• Function as a Service• Security as a Service• … as a Service

Page 6: 104 meets cloud

Cloud Native

• Externalized services and solutions• Micro-services– Stateless– Scalable– Highly Available

• Idempotency• Immutable architecture

Page 7: 104 meets cloud

IMPACT ON ARCHITECTURE

Page 8: 104 meets cloud

Pricey Made Accessible

• Premium services:– Load balancer– Software-defined network–Datacenter• Network, Storage and VM• Power and cooling

• Use them well in YOUR cloud

Page 9: 104 meets cloud

Armory of Services

• Just works … • Gentle learning curve, inevitably RTFM• Details abstracted away

just works

Features, gotcha, …

Tutorial

Manual& Work

Page 10: 104 meets cloud

Baseline Complexity

• Solution-based architecture is king• (Micro-)Services instead of tiers• Every component adds some complexity

Page 11: 104 meets cloud
Page 12: 104 meets cloud

Shifted Uptime Responsibility

99.9%Applications

(8h46m down)

99.999%Infrastructure

($$$$)

99.999%Applications(5m down)

99%Infrastructure

($$)

Enterprise Model Cloud Model

Pets vs. Cattle: The Elastic Cloud Story by Randy Bias, CC-BY-ND

Page 13: 104 meets cloud

Availability

• N=3 Quorum

Page 14: 104 meets cloud

CONFLICT WITH CULTURE

Page 15: 104 meets cloud

CAPEX vs. OPEX

• Cloud costs are mostly operational– Tough to plan budget– A posteriori analysis only

• Quota instead of budgeting• Taxation

Page 16: 104 meets cloud

Time to Market

• A common goal to adopt Cloud• Necessary Conditions:– Infrastructure– Level of Automation– Knowledge & skill– General affairs

Page 17: 104 meets cloud

DevOps

• Waterfall sucks in the cloud• DevOps emphasize on…– Automated workflow– Minimal turnover & information loss

• With great power comes great responsibility

Page 18: 104 meets cloud

STAY MODERN

Page 19: 104 meets cloud

Cloud App Evolution

• Handcraft

• AWS Auto Scaling• AWS Elastic Beanstalk• AWS OpsWorks• AWS ECS• AWS Lambda

machine imagecode repo

chef recipedocker image

function

Page 20: 104 meets cloud

Serverless - Lambda

• Announced AWS re:Invent 2014, accepted by communities and competitors

• Managed Java, JavaScript, or Python runtime• Supports versioning, IAM Role, and VPC• Configurable timeout and RAM

• Default concurrency = 100

Page 21: 104 meets cloud

Serverless - ECS

• Announced re:Invent ‘14• Docker scheduler with

monitoring, logging, and authorization• Flexible privilege control with task role• Okay-ish data persistence with EBS• Rusty Load balancing and inter-host access

control• Works seamlessly with Application Load

Balancer launched Aug. ‘16

Page 22: 104 meets cloud

Fog Computing

• Push workloads to end-user clients or edge devices

• Emphasizes proximity, relies on geographical density and local resource pooling

• Similar design principles as Cloud Computing