Scaling on AWS. From 1 to 10 Million Users. Matthias Jung, Solutions Architect

Similar documents
Microservices on AWS. Matthias Jung, Solutions Architect AWS

Microservices Architekturen aufbauen, aber wie?

BERLIN. 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

Security Aspekts on Services for Serverless Architectures. Bertram Dorn EMEA Specialized Solutions Architect Security and Compliance

ARCHITECTING WEB APPLICATIONS FOR THE CLOUD: DESIGN PRINCIPLES AND PRACTICAL GUIDANCE FOR AWS

About Intellipaat. About the Course. Why Take This Course?

Designing Fault-Tolerant Applications

Amazon Linux: Operating System of the Cloud

Startups and Mobile Apps on AWS. Dave Schappell, Startup Business Development Manager, AWS September 11, 2013

AWS Solution Architect Associate

2013 AWS Worldwide Public Sector Summit Washington, D.C.

Training on Amazon AWS Cloud Computing. Course Content

AWS 101. Patrick Pierson, IonChannel

Security & Compliance in the AWS Cloud. Amazon Web Services

Amazon Web Services. Foundational Services for Research Computing. April Mike Kuentz, WWPS Solutions Architect

Security & Compliance in the AWS Cloud. Vijay Rangarajan Senior Cloud Architect, ASEAN Amazon Web

Expected Learning Outcomes Introduction To AWS

Enroll Now to Take online Course Contact: Demo video By Chandra sir

AWS_SOA-C00 Exam. Volume: 758 Questions

Amazon Web Services (AWS) Solutions Architect Intermediate Level Course Content

AWS Well Architected Framework

How can you implement this through a script that a scheduling daemon runs daily on the application servers?

SAA-C01. AWS Solutions Architect Associate. Exam Summary Syllabus Questions

The Orion Papers. AWS Solutions Architect (Associate) Exam Course Manual. Enter

Werden Sie ein Teil von Internet der Dinge auf AWS. AWS Enterprise Summit 2015 Dr. Markus Schmidberger -

High School Technology Services myhsts.org Certification Courses

Better, Faster, Stronger web apps with Amazon Web Services. Senior Technology Evangelist, Amazon Web Services

At Course Completion Prepares you as per certification requirements for AWS Developer Associate.

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

AWS Solutions Architect Associate (SAA-C01) Sample Exam Questions

AWS Service Drill Downs

Amazon Web Services Training. Training Topics:

Amazon Web Services 101 April 17 th, 2014 Joel Williams Solutions Architect. Amazon.com, Inc. and its affiliates. All rights reserved.

Building Web-Scale Applications with AWS

Lean & Mean on AWS: Cost-Effective Architectures. Constantin Gonzalez, Solutions Architect, AWS

Cloud Analytics and Business Intelligence on AWS

Introduction to Database Services

Crypto-Options on AWS. Bertram Dorn Specialized Solutions Architect Security/Compliance Network/Databases Amazon Web Services Germany GmbH

Amazon Web Services (AWS) Training Course Content

What s New at AWS? A selection of some new stuff. Constantin Gonzalez, Principal Solutions Architect, Amazon Web Services

AWS Administration. Suggested Pre-requisites Basic IT Knowledge

Security on AWS(overview) Bertram Dorn EMEA Specialized Solutions Architect Security and Compliance

Serverless Architecture Hochskalierbare Anwendungen ohne Server. Sascha Möllering, Solutions Architect

Amazon Web Services. Amazon Web Services

WHITEPAPER AMAZON ELB: Your Master Key to a Secure, Cost-Efficient and Scalable Cloud.

AWS: Basic Architecture Session SUNEY SHARMA Solutions Architect: AWS

Cloud Computing. Amazon Web Services (AWS)

What s New at AWS? looking at just a few new things for Enterprise. Philipp Behre, Enterprise Solutions Architect, Amazon Web Services

Reactive Microservices Architecture on AWS

AWS Certifications. Columbus Amazon Web Services Meetup - February 2018

Amazon AWS-DevOps-Engineer-Professional Exam

LINUX, WINDOWS(MCSE),

TestkingPass. Reliable test dumps & stable pass king & valid test questions

Protecting Your Data in AWS. 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

AWS Certified Solutions Architect - Associate 2018 (SAA-001)

AWS Solutions Architect Exam Tips

PracticeDump. Free Practice Dumps - Unlimited Free Access of practice exam

Getting started with AWS security

HPE Digital Learner AWS Certified SysOps Administrator (Intermediate) Content Pack

Introduction to Amazon Cloud & EC2 Overview

Serverless Computing. Redefining the Cloud. Roger S. Barga, Ph.D. General Manager Amazon Web Services

Deliver High- quality Streaming Media Globally with AWS and Wowza

Agenda. AWS Database Services Traditional vs AWS Data services model Amazon RDS Redshift DynamoDB ElastiCache

We are ready to serve Latest IT Trends, Are you ready to learn? New Batches Info

CS15-319: Cloud Computing. Lecture 3 Course Project and Amazon AWS Majd Sakr and Mohammad Hammoud

Getting started with AWS security

Amazon ElastiCache. User Guide API Version

Amazon Web Services. Block 402, 4 th Floor, Saptagiri Towers, Above Pantaloons, Begumpet Main Road, Hyderabad Telangana India

BERLIN. 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

AWS Interview Questions and Answers

Managing IoT and Time Series Data with Amazon ElastiCache for Redis

Cloud Computing /AWS Course Content

Cloud and Storage. Transforming IT with AWS and Zadara. Doug Cliche, Storage Solutions Architect June 5, 2018

Amazon Aurora Relational databases reimagined.

Automate best practices and operational health for your AWS resources with Trusted Advisor and AWS Health

How to go serverless with AWS Lambda

Certificate of Registration

AWS Mobile Services 7/7/2014. Marco Argenti, Vice President

ActiveNET. #202, Manjeera Plaza, Opp: Aditya Park Inn, Ameerpetet HYD

Security: Michael South Americas Regional Leader, Public Sector Security & Compliance Business Acceleration

Introduction to Cloud Computing

Amazon Web Services and Feb 28 outage. Overview presented by Divya

Amazon CloudWatch. Developer Guide API Version

Migrating Existing Applications to AWS. Matt Tavis Principal Solutions Architect

Introduction to Amazon Web Services. Jeff Barr Senior AWS /

Zombie Apocalypse Workshop

What to expect from the session Technical recap VMware Cloud on AWS {Sample} Integration use case Services introduction & solution designs Solution su

Best Practices and Performance Tuning on Amazon Elastic MapReduce

Emulating Lambda to speed up development. Kevin Epstein CTO CorpInfo AWS Premier Partner

Highly Available Database Architectures in AWS. Santa Clara, California April 23th 25th, 2018 Mike Benshoof, Technical Account Manager, Percona

AWS Course Syllabus. Linux Fundamentals. Installation and Initialization:

How to host and manage enterprise customers on AWS: TOYOTA, Nippon Television, UNIQLO use cases

AWS Security Overview. Bill Shinn Principal Security Solutions Architect

AWS cloud terminology

Amazon Web Services. Amazon Web Services

Exam Questions AWS-Certified- Developer-Associate

Overview of AWS Security - Database Services

Amazon Web Services Course Outline

Vom Server bis zum WorkSpace: Windows Anwendungen auf AWS

AWS Practioner Study Guide Content by Jeanne Boyarsky and Janeice DelVecchio

Transcription:

Berlin 2015

Scaling on AWS From 1 to 10 Million Users Matthias Jung, Solutions Architect AWS @jungmats

How to Scale?

lot of results not the right starting point

What is the right starting point?

First some basics

AWS Regions US-WEST (Oregon) AWS GovCloud (US) EU-WEST (Ireland) CHINA (Beijing) ASIA PAC (Tokyo) US-EAST (Virginia) US-WEST (N. California) ASIA PAC (Sydney) SOUTH AMERICA (Sao Paulo) ASIA PAC (Singapore)

Availability Zones (AZs) US-WEST (Oregon) AWS GovCloud (US) EU-WEST (Ireland) CHINA (Beijing) EU-CENTRAL (Frankfurt) ASIA PAC (Tokyo) CHINA (Beijing) US-EAST (Virginia) US-WEST (N. California) ASIA PAC (Sydney) SOUTH AMERICA (Sao Paulo) ASIA PAC ASIA (Singapore) PAC (Singapore)

Edge Locations

Services Deployment & Administration Application Services Compute Storage Database Networking AWS Global Infrastructure

Services AWS OpsWorks CloudWatch Elastic Beanstalk AWS IAM AWS CloudFormation AWS Data Pipeline AWS CloudTrail SNS CloudSearch SQS Deployment & Administration DynamoDB ElastiCache RDS SES SWF Elastic Transcoder Application Services RedShift Compute Storage Database S3 EC2 EMR VPC Networking AWS Storage Gateway Glacier CloudFront Kinesis Route 53 AWS Direct Connect AWS Global Infrastructure

1

Day 1, User 1 User Route 53 Complete stack on single EC2 Instance Single Elastic IP Address Route 53 for DNS EC2 Instance Elastic IP Address

We need a bigger box Change instance size Change instance family Increase EBS PIOPS i2.4xlarge m3.xlarge t2.small

First steps User Route 53 Quite Simple Scales up to the thousands Elastic IP Address EC2 Instance

First steps User Route 53 Will hit an endpoint eventually No failover, no redundancy All eggs in one basket EC2 Instance Elastic IP Address

1,000

1000 Users and more User Route 53 Separate database and app Elastic IP Address Managed database service? Web Instance Database Instance

Database Options Self-Managed Fully-Managed Database Server on EC2 RDS DynamoDB Redshift Choice of Software and Version Bring your own license (BYOL) MS SQL, Oracle, Postgre & MySQL as managed service License included or BYOL Managed NoSQLservice with SSD storage Seamless scalability Zero administration Data Ware House as a service (SQL) Massively parallel High scalability Fast access

Which database technology to start with?

Why a SQL database? Established and well worn technology Lots of existing code, tools, communities, books Clear patterns to scalability You aren t going to break SQL DBs in your first 10 million users. No really, you won t* *Unless you are doing something SUPER weird with the data or MASSIVE amounts of it and even then SQL will have a place in your stack

When is NoSQL the better fit? Huge amounts of data (Terra Bytes) Thousands of write/update operations per second Applications with high latency requirements Unstructured data, no fix tables Data without or very loose relationships Storing meta data Expertise already in the team

DynamoDB Fully Managed Fast and predictable performance Fully distributed and fault-tolerant architecture Provisioned throughput Predictable performance Strongly consistent reads Fault tolerance built in Monitoring built in Security built in (IAM support) Integration with AWS Big Data Services

1000 Users and more Separate database and app Managed database: RDS User Elastic IP Address Route 53 Web Instance RDS DB Instance

10,000

10,000 Users and more User Route 53 Failover & Redundancy Multiple Availability Zones RDS Multi-AZ Elastic Load Balancing Web Instance Elastic Load Balancing Web Instance RDS DB Instance Active (multi AZ) Availability Zone A RDS DB Instance Standby (Multi-AZ) Availability Zone B

Elastic Load Balancing Designed for fault-tolerant and highly scalable applications Elastic Load Balancing Highly available and elastic Health checks Layer 4 and 7 support SSL termination Monitoring built in Access logs IPv6 support

Horizontal Scaling User Route 53 Elastic Load Balancing Web Instance Web Instance Web Instance Web Instance Web Instance Web- Instance Web- Instance Web- Instance RDS DB Instance Read Replica RDS DB Instance Read Replica RDS DB Instance Master (Multi-AZ) RDS DB Instance Standby (Multi-AZ) RDS DB Instance Read Replica RDS DB Instance Read Replica Availability Zone A Availability Zone B

100,000

Shift some load around User Route 53 CloudFront Move static content to S3 Deliver content via CloudFront Elastic Load Balancing Cache DB queries in ElastiCache Move session state to ElastiCache or DynamoDB Web Instance ElastiCache S3 RDS DB Instance Master (Multi-AZ) DynamoDB Availability Zone

November traffic to.com November

November traffic to.com Provisioned Capacity 76% November 24%

November traffic to.com November

Auto Scaling Triggers Auto-Scaling Policy Automatically adapts capacity to demand Integration with CloudWatch Integration with Elastic Load Balancing For scaling and availability CloudWatch as-create-auto-scaling-group MyGroup --launch-configuration MyConfig --availability-zones us-east-1a --min-size 4 --max-size 200

100,000 users + User Route 53 CloudFront Elastic Load Balancing S3 Web Instance Web Instance Web Instance Web Instance Web Instance Web Instance RDS DB Instance Master (Multi-AZ) RDS DB Instance Read Replica ElastiCache RDS DB Instance Standby (Multi-AZ) RDS DB Instance Read Replica ElastiCache DynamoDB Availability Zone Availability Zone

1,000,000

Loose coupling sets you free Decoupling is a prerequisite to scale and optimize Independent components Design everything as blackbox Decouple interactions Clean interfaces

Decoupling in action EC2 Instance Loose coupling Upload photo Resize photo

Decoupling in action EC2 Instance Loose coupling Upload photo Resize photo Q SQS Upload photo Resize photo EC2 Instances

Decoupling in action EC2 Instances Loose coupling Upload photo Upload photo Upload photo Resize photo Resize photo Resize photo Q SQS Upload photo Resize photo Resize photo Resize photo EC2 Instances

Think services Fine-granular services instead monoliths Consistent and coherent services with specific responsibilities 100% independent services Services communicate via welldefined APIs only

Think services Fine-granular services instead monoliths Consistent and coherent services with specific responsibilities 100% independent services Services communicate via welldefined APIs only

Think services Fine-granular services instead monoliths Consistent and coherent services with specific responsibilities 100% independent services Services communicate via welldefined APIs only = principle behind AWS und.com

Don t reinvent the wheel If you find yourself writing your own Notification system E-Mail component Search engine SNS CloudSearch SQS Workflow engine Queue Transcoding system Monitoring system SES SWF Elastic Transcoder

Don t reinvent the wheel If you find yourself writing your own Notification system E-Mail component Search engine SNS CloudSearch SQS Workflow engine Queue Transcoding system Monitoring system SES SWF Elastic Transcoder take a deep breath and stop it now!

1 Mio users and more User Route 53 CloudFron t Elastic Load Balancing Web Instance Web- Instance Web Instance Web Instance Worker Instance Worker Instance SQS S3 ElastiCache DynamoDB RDS DB Instance Read Replica RDS DB Instance Read Replica Verfügbarkeitszone RDS DB Instance Master (Multi-AZ) Internal App Server Internal App Server CloudWatch SES

10,000,000

SERVER METRICS AGGREGATED METRICS LOG ANALYSIS EXTERNAL MONITORING

AWS Marketplace & Partners Customer can find, research, buy software Simple on demand pricing Launch in minutes Billing integrated into your AWS account 1400+ products across 20+ categories Learn more at: aws.amazon.com/marketplace

Automation AWS Elastic Beanstalk AWS OpsWorks AWS CloudFormation EC2 Convenience Control

Scaling the database Federation: distribute database structure to different database systems by function Sharding: distribute data to different database systems (e.g. users by region) NoSQL: offload database by moving certain workloads to NoSQL databases

and this leads us to 10 million users

In a nutshell: scaling with AWS to 10 mio users Distribute infrastructure across AZs Caching, caching, caching Decoupling and think services Don t reinvent the wheel Auto-Scaling (once you have done your homework) Monitoring on all levels Automate deployment and operation

100,000,000

10-100 Million Users Iterate on previous patterns More fine-granular services More monitoring, fine-tuning and optimization From multi-az to multi-region More and more individual solutions

Some reading aws.amazon.com/documentation aws.amazon.com/architecture aws.amazon.com/start-ups

Thank you!

Web Services @ Foodpanda Foodpanda GmbH Mathias Nitzsche, CTO

Online food ordering platform Active in >40 emerging markets

Mid 2012: Launch DevOps Test of business model in few example markets (SG, IN) Small IT team with very limited resources Basic setup: Route53, ELB, EC2, RDS, CloudFront AWS: Quick setup; easy to use; no long term contract; standardized; documented

2013: Global Expansion DevOps 1-2 country launches per week AWS: Global coverage; flexibility; pricing model

2014: Rapid Growth DevOps Architecture gradually changes towards microservices VPC, Autoscaling, CloudFormation, SQS, SNS, S3, ElastiCache AWS: scalability; extensibility; openness; security; automatization; high availability using Multi-AZ

2015: Market leadership DevOps Ongoing growth + Acquisitions, huge TV campaigns, additional business models ( ) AWS: Buys time 2015 2013 2014 Foodpanda AWS Costs

Instances Throughput Asia with 13 countries, June 28th RestaurantBackend Frontend Backend 04:00 08:00 12:00 16:00 20:00 0:00

Cost of scalability Microservices, VPC, nosql, Scalability

Current Challenges Ongoing cost and performance optimization Spot / reserved / proper sized instances; merging regions; improving the app) Deployment with prepared AMIs Monitoring (CloudWatch, Icinga, Kibana, NewRelic, Pings) Security review

What s next on our wishlist? New regions in India & Russia? Microservice hosting? Mature enough for the Chaos monkey? Elastic File System? Aurora? A little more love for AWS Route53 or AWS CloudFront?...and maybe even basic DDoS?

Thank you!