Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Amazon Web Services - A Practical Approach

Amazon Web Services - A Practical Approach

Intro to Amazon Web Serivces

Avatar for kushwiz

kushwiz

June 28, 2014

Other Decks in Technology

Transcript

  1. Intro to AWS Features and components A walk through of

    planning a highly scalable architecture Live Demo WHAT'S IN
  2. We all know how to host a website using a

    3rd party service. But are they scalable? Have you ever thought of running large computationally intensive tasks, without having to invest millions on physical servers?
  3. AWS offers services that are highly scalable and are built

    to handle heavy computational load without breaking down, on pay-per- hour basis.
  4. IMPORTANT SERVICES Amazon EC2 - Elastic Compute Cloud Amazon VPC

    - Virtual Private Cloud Amazon ELB - Elastic Load Balancer Amazon RDS - Relational Database Service
  5. Various configurations are available based on purpose of usage. Security

    Group - a table of firewall rules EC2 - ELASTIC COMPUTE CLOUD EC2 instances are basically servers running on the cloud. We order a server and it is ready in less than a minute. h a s _ o n e : s e c u r i t y _ g r o u p
  6. VPC - VIRTUAL PRIVATE CLOUD Virtual Private Cloud(VPC) is your

    own virtual private network which has subnet(s). A VPC encompasses all the availability zones in the region it belongs to. h a s _ m a n y : s u b n e t s h a s _ m a n y : a v a i l a b i l i t y _ z o n e s However, a subnet belongs to only one availability zone. b e l o n g s _ t o : a v a i l a b i l i t y _ z o n e
  7. ELB - ELASTIC LOAD BALANCER Protocol load balancer Manages and

    distributes traffic between EC2 instances. Generally, used for websites with multiple application servers. h a s _ m a n y : e c 2 _ i n s t a n c e s
  8. Why should we use RDS when we can install a

    database server in an EC2 instance? - Easy Scaling - Automated Daily Backup - Disaster Recovery - Automated upgrades RDS - RELATIONAL DATABASE SERVICE A ready to use relational database server that is highly scalable with high availability.
  9. IN A NUTSHELL We will use an RDS instance as

    back-end with EC2 instances as application and web servers, load balanced using an ELB, all present in a VPC . In this way, our application is scalable at all levels. RDS ✓EC2 ✓
  10. SCALABLE MULTI-TIER ARCHITECTURE Step 1: Select Zone Step 2: Plan

    VPC and subnets Step 3: Plan RDS type and scaling Step 4: Plan EC2 & Security Groups
  11. PLAN VPC VPC with 2 subnets Private Subnet: Application EC2

    instances and RDS instance. Public Subnet: Bastion Host Bastion Host: can also act as a NAT server for the private subnet. Note: create a new security group for bastion host only.
  12. Security Group Ports 80(HTTP) & 22(SSH) PLAN EC2 & SECURITY

    GROUPS To Begin with 1 Application + Web server
  13. SETUP ELB Spin up an ELB to load balance the

    EC2 instance. One Instance - One ELB. Makes no sense now. You can always clone the EC2 instance and attach it to the ELB.