SlideShare a Scribd company logo
Scaling on AWS
TO INFINITY AND BEYOND
1.
Agenda
1. Background
2. AWS Cloud & EC2 overview
3. Scaling on AWS
4. Infrastructure As Code
Personal Background
16 years of Java development
(Banks, Telcos, Government sector)
20+ years of Linux experience
1 year in
3
4
A family held corporation
Retail, Hotels, Restaurants,
Real Estate
Generating 220,000 jobs
Target 2018: $11.9B
Thailand, Vietnam,
Malaysia, Germany, Italy,
Austria, Denmark, others
5
Project AIP
System integration for the
new e-commerce platform
on AWS Cloud
War Stories
◂ Deploy 72 vCPU machines within
minutes when demand arose
◂ Scale out automatically as measured
load increases in production
◂ Upgrade a production cluster under
load with no downtime
◂ Deploy a full new environment in an
hour (network, DBs, ELK, instances,
monitoring, etc.)
6
AWS Cloud
◂ “The cloud is just someone else's computer”
◂ Started in 2006 with S3, EC2, SQS
◂ Offers 100+ services now
◂ Layered services (EC2-Beanstalk-Lambda)
◂ “Pay only for what you use”
◂ Free tier! - https://aws.amazon.com/free/
7
8
AWS service categories
◂ IaaS
◂ Cloud provides: Hardware + OS
◂ You: patch, upgrade, deploy, monitor, maintain
◂ eg. AWS VPC, EBS, EC2
◂ PaaS
◂ Cloud provides: Hardware + OS + Framework
◂ You: deploy, monitor
◂ eg. AWS S3, Beanstalk
◂ SaaS
◂ Cloud provides: Hardware + OS + Framework + Application
◂ You: deploy
◂ eg. AWS RDS, Lambda
9
Hosting your application
◂ EC2 (IaaS)
◂ Get a VM, do what you want
◂ Beanstalk (PaaS)
◂ Provide a JAR file
◂ Lambda (SaaS)
◂ Upload a function which gets invoked
(eg. bridged to a REST API)
10
AWS Elastic Compute Cloud
◂ Base service for IaaS virtualization
◂ Single VM instances
◂ Auto scaling groups
◂ Elastic Load Balancer
11
EC2 Hello World
1. Choose an AMI
2. Choose an EC2 instance type
Choose VPC, Subnet, Security Groups, Elastic IP, EBS disks, Shutdown behaviour, ...
<<< these are all optional :)
3. Select SSH key for authentication
4. Launch
Deploy and login to a new machine in ~2 minutes with any configuration!
12
Place your screenshot here
13
Choosing an AMI
Prepared
virtual machine
templates
EC2 instance classes
General purpose
T2 (burstable) or M5 instances
Compute optimized
C5 instances
3.0 GHz Intel Xeon Platinum processors
Run each core at up to 3.5 GHz using Intel
Turbo Boost Technology
14
Other instance types
Memory optimized
GPU optimized
Storage optimized
CloudWatch
15
Scaling up
16
Horizontal
- Balance load
between instances
- Achieve high availability
(survive hw failures **)
- Autoscale
based on measured load
Horizontal vs Vertical scaling
Vertical
- Get a bigger machine
17
Scaling *** as a Service
◂ IaaS
◂ eg. AWS EC2
◂ Scaling is manual
◂ PaaS
◂ eg. AWS Beanstalk
◂ Scaling is provided
◂ SaaS
◂ eg. AWS Lambda, SQS
◂ Scaling is invisible
“Standard queues support a nearly unlimited number of
transactions per second (TPS) per action.” 18
Scaling with EC2 - manual configuration
◂ EC2 Launch configuration
◂ AMI + startup script (optional)
◂ EC2 Autoscaling group
◂ Min / max instance count
◂ Elastic Load Balancer
◂ Target Groups
◂ CloudWatch metrics alarms
◂ eg. CPU %, network load, etc.
◂ Autoscaling policies
◂ Alarm -> Scale up 1 instance, cooldown
19
Scaling with Beanstalk
20
Place your screenshot here
21
Scaling with Lambda
Infrastructure
as Code
Provisioning data centers
through machine-readable
definition files
22
Infrastructure as Code with Terraform
◂ No more manual configuration on UI
◂ No human mistakes
◂ No single heros
everyone on team can execute it
◂ Fast, reusable
◂ Auditable (git history)
23
Place your screenshot here
24
Terraform Modules
define Resources what
you need to provision
use variables for input
reused for different
environments
Input configuration for
modules
Separate configuration for each
environment
Define requested state
Terraform
Environments
25
26
Terraform Apply
Shows result configuration
27
Thanks!
Any questions?
You can find me at:
◂ @kjozsa
◂ kristof.jozsa@dpc.hu
◂

More Related Content

PPTX
Aws elastic compute cloud
PPTX
Introduction to EC2
PDF
AWS Quick Intro
PPTX
Module 1 cloud computing
PPT
Cloud computing
PPTX
Build a Cloud Render-Ready Infrastructure
PPTX
Containerisation & Cloud Trends
PDF
AWS EC2
Aws elastic compute cloud
Introduction to EC2
AWS Quick Intro
Module 1 cloud computing
Cloud computing
Build a Cloud Render-Ready Infrastructure
Containerisation & Cloud Trends
AWS EC2

What's hot (13)

PDF
AWS EC2 tutorial
PPTX
Comparison of AWS, GCP & Azure web solutions
PPTX
Case study of amazon EC2 by Akash Badone
PDF
Three Stage of AWS Cost Optimisation with ActOnCloud Trusted Fixer
PDF
Usman Shakeel - Cloud Rendering at Scale :: AWS Rendering Seminar
PPTX
Rendering in the Cloud
PPTX
Deploying couchbaseserverazure cihanbiyikoglu_microsoft
PPTX
GPU Renderfarm with Integrated Asset Management & Production System (AMPS)
PPTX
PPTX
Cnam cours azure web sites
PDF
Rockford Web Devs Meetup - AWS - November 10th, 2015
PDF
Amazon Ec2 Application Design
PDF
Cloud Computing: AWS for Lean Startups
AWS EC2 tutorial
Comparison of AWS, GCP & Azure web solutions
Case study of amazon EC2 by Akash Badone
Three Stage of AWS Cost Optimisation with ActOnCloud Trusted Fixer
Usman Shakeel - Cloud Rendering at Scale :: AWS Rendering Seminar
Rendering in the Cloud
Deploying couchbaseserverazure cihanbiyikoglu_microsoft
GPU Renderfarm with Integrated Asset Management & Production System (AMPS)
Cnam cours azure web sites
Rockford Web Devs Meetup - AWS - November 10th, 2015
Amazon Ec2 Application Design
Cloud Computing: AWS for Lean Startups
Ad

Similar to Scaling on AWS (13)

PPTX
AWS Services.pptx
PDF
Java in the Cloud : PaaS Platforms in Comparison
PDF
Java in the Cloud : PaaS Platforms in Comparison
PPT
Aws class demo
PDF
Introduction to EC2 (AWS)
PDF
Sweet! Running SugarCRM on the Amazon Cloud | SugarCon 2011
KEY
Developing Social Games in the Cloud
PDF
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
PPTX
Introduction to amazon web services for developers
PDF
Amazon cloud intance launch
PDF
Amazon cloud intance launch3
PDF
Amazon cloud intance launch3
PDF
AWS 2017 re:Invent re:Cap - TriNimbus Presentation Slides
AWS Services.pptx
Java in the Cloud : PaaS Platforms in Comparison
Java in the Cloud : PaaS Platforms in Comparison
Aws class demo
Introduction to EC2 (AWS)
Sweet! Running SugarCRM on the Amazon Cloud | SugarCon 2011
Developing Social Games in the Cloud
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
Introduction to amazon web services for developers
Amazon cloud intance launch
Amazon cloud intance launch3
Amazon cloud intance launch3
AWS 2017 re:Invent re:Cap - TriNimbus Presentation Slides
Ad

More from DPC Consulting Ltd (10)

PDF
Jsonp coding dojo
PDF
Microservices and modularity with java
PDF
Garbage First Garbage Collector Algorithm
PDF
Power tools in Java
PDF
Két Java fejlesztő első Scala projektje
PDF
Server in your Client
PDF
OSGi as Enterprise Integration Platform
PDF
Docker+java
PDF
Full stack security
PDF
Java 9 and Project Jigsaw
Jsonp coding dojo
Microservices and modularity with java
Garbage First Garbage Collector Algorithm
Power tools in Java
Két Java fejlesztő első Scala projektje
Server in your Client
OSGi as Enterprise Integration Platform
Docker+java
Full stack security
Java 9 and Project Jigsaw

Recently uploaded (20)

PPTX
Mathew Digital SEO Checklist Guidlines 2025
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
PPTX
artificialintelligenceai1-copy-210604123353.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
DOC
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
DOCX
Unit-3 cyber security network security of internet system
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPT
250152213-Excitation-SystemWERRT (1).ppt
PDF
Introduction to the IoT system, how the IoT system works
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
Introduction to cybersecurity and digital nettiquette
PPT
Ethics in Information System - Management Information System
PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
Exploring VPS Hosting Trends for SMBs in 2025
Mathew Digital SEO Checklist Guidlines 2025
Unit-1 introduction to cyber security discuss about how to secure a system
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
SAP Ariba Sourcing PPT for learning material
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
artificialintelligenceai1-copy-210604123353.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
Unit-3 cyber security network security of internet system
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
newyork.pptxirantrafgshenepalchinachinane
250152213-Excitation-SystemWERRT (1).ppt
Introduction to the IoT system, how the IoT system works
Power Point - Lesson 3_2.pptx grad school presentation
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Introduction to cybersecurity and digital nettiquette
Ethics in Information System - Management Information System
presentation_pfe-universite-molay-seltan.pptx
Exploring VPS Hosting Trends for SMBs in 2025

Scaling on AWS

  • 1. Scaling on AWS TO INFINITY AND BEYOND
  • 2. 1. Agenda 1. Background 2. AWS Cloud & EC2 overview 3. Scaling on AWS 4. Infrastructure As Code
  • 3. Personal Background 16 years of Java development (Banks, Telcos, Government sector) 20+ years of Linux experience 1 year in 3
  • 4. 4 A family held corporation Retail, Hotels, Restaurants, Real Estate Generating 220,000 jobs Target 2018: $11.9B Thailand, Vietnam, Malaysia, Germany, Italy, Austria, Denmark, others
  • 5. 5 Project AIP System integration for the new e-commerce platform on AWS Cloud
  • 6. War Stories ◂ Deploy 72 vCPU machines within minutes when demand arose ◂ Scale out automatically as measured load increases in production ◂ Upgrade a production cluster under load with no downtime ◂ Deploy a full new environment in an hour (network, DBs, ELK, instances, monitoring, etc.) 6
  • 7. AWS Cloud ◂ “The cloud is just someone else's computer” ◂ Started in 2006 with S3, EC2, SQS ◂ Offers 100+ services now ◂ Layered services (EC2-Beanstalk-Lambda) ◂ “Pay only for what you use” ◂ Free tier! - https://aws.amazon.com/free/ 7
  • 8. 8
  • 9. AWS service categories ◂ IaaS ◂ Cloud provides: Hardware + OS ◂ You: patch, upgrade, deploy, monitor, maintain ◂ eg. AWS VPC, EBS, EC2 ◂ PaaS ◂ Cloud provides: Hardware + OS + Framework ◂ You: deploy, monitor ◂ eg. AWS S3, Beanstalk ◂ SaaS ◂ Cloud provides: Hardware + OS + Framework + Application ◂ You: deploy ◂ eg. AWS RDS, Lambda 9
  • 10. Hosting your application ◂ EC2 (IaaS) ◂ Get a VM, do what you want ◂ Beanstalk (PaaS) ◂ Provide a JAR file ◂ Lambda (SaaS) ◂ Upload a function which gets invoked (eg. bridged to a REST API) 10
  • 11. AWS Elastic Compute Cloud ◂ Base service for IaaS virtualization ◂ Single VM instances ◂ Auto scaling groups ◂ Elastic Load Balancer 11
  • 12. EC2 Hello World 1. Choose an AMI 2. Choose an EC2 instance type Choose VPC, Subnet, Security Groups, Elastic IP, EBS disks, Shutdown behaviour, ... <<< these are all optional :) 3. Select SSH key for authentication 4. Launch Deploy and login to a new machine in ~2 minutes with any configuration! 12
  • 13. Place your screenshot here 13 Choosing an AMI Prepared virtual machine templates
  • 14. EC2 instance classes General purpose T2 (burstable) or M5 instances Compute optimized C5 instances 3.0 GHz Intel Xeon Platinum processors Run each core at up to 3.5 GHz using Intel Turbo Boost Technology 14 Other instance types Memory optimized GPU optimized Storage optimized
  • 17. Horizontal - Balance load between instances - Achieve high availability (survive hw failures **) - Autoscale based on measured load Horizontal vs Vertical scaling Vertical - Get a bigger machine 17
  • 18. Scaling *** as a Service ◂ IaaS ◂ eg. AWS EC2 ◂ Scaling is manual ◂ PaaS ◂ eg. AWS Beanstalk ◂ Scaling is provided ◂ SaaS ◂ eg. AWS Lambda, SQS ◂ Scaling is invisible “Standard queues support a nearly unlimited number of transactions per second (TPS) per action.” 18
  • 19. Scaling with EC2 - manual configuration ◂ EC2 Launch configuration ◂ AMI + startup script (optional) ◂ EC2 Autoscaling group ◂ Min / max instance count ◂ Elastic Load Balancer ◂ Target Groups ◂ CloudWatch metrics alarms ◂ eg. CPU %, network load, etc. ◂ Autoscaling policies ◂ Alarm -> Scale up 1 instance, cooldown 19
  • 21. Place your screenshot here 21 Scaling with Lambda
  • 22. Infrastructure as Code Provisioning data centers through machine-readable definition files 22
  • 23. Infrastructure as Code with Terraform ◂ No more manual configuration on UI ◂ No human mistakes ◂ No single heros everyone on team can execute it ◂ Fast, reusable ◂ Auditable (git history) 23
  • 24. Place your screenshot here 24 Terraform Modules define Resources what you need to provision use variables for input reused for different environments
  • 25. Input configuration for modules Separate configuration for each environment Define requested state Terraform Environments 25
  • 27. 27 Thanks! Any questions? You can find me at: ◂ @kjozsa ◂ kristof.jozsa@dpc.hu ◂