You are on page 1of 46

LOGO

UNIV/POLTEK

DIGITAL
TALENT
SCHOLARSHIP
2019

AWS Compute Service


digitalent.kominfo.go.id
digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Contents
• AWS Compute Service Overview
• EC2
• ECS
• Lambda
• How to Choose?

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

AWS Compute Overview

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Compute Services
• Amazon EC2
• Virtual machine on AWS
• Possible for vertical and horizontal scaling
• Payments : on demand, reserved, spot

• AWS Lambda
• Serverless architecture
• No need machine provisioning
• Highly scalable

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Compute Services
• Amazon Lightsail
• Service for quick application deployment
• Web and applications server for backend
• Amazon ECS
• Manage containerized application
• Bundling applications and libraries on container

• AWS Fargate
• Allow running containers without
managing servers or cluster
• Seamless scaling

• Amazon EKS
• Running containers on Kubernets
digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

What is Amazon EC2?

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Amazon EC2 – Overview

VM 1 VM 2 VM 3
Virtual Servers in the Cloud
Hypervisor

Server

Physical Servers in AWS


Global Regions

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

AWS Global
Infrastructure
• Over 1 million active customers
across 190 countries

• 2,000 government agencies

• 5,000 educational institutions

• 17,500 nonprofits

• 12 regions

• 33 Availability Zones

• *11 more Availability Zones


and 5 more Regions coming
• online throughout the year

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

EC2 Use Case


• Application Server
• Web Server
• Database Server
• Game Server
• Mail Server
• Media Server
• Catalog Server
• File Server
• Computing Server
• Proxy Server

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Supported OS

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Instance Types
Families Description Example Use Cases
General Purpose Websites, web applications, Dev, code
t2, m4, m3
Balanced Performance repos, micro services, business apps
Compute Optimized Front-end fleets, web-servers, batch processing,
c3, c4, cc2 High CPU distributed analytics, science and engineering
Performance apps, ad serving, M M O gaming, video-
encoding
GPU Optimized Amazon AppStream 2.0, video encoding,
g2, p2
High-end GPU machine learning, high perf databases,
science
Memory Optimized
r3, r4, x1, cr1 In-memory databases, data mining
Large RAM footprint
Storage Optimized
d2, i2, i3, hi1, hs1 NAS, data warehousing, NoSQL
High I/O, High density

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

EC2 Instance Types

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Storage Options
• Locally attached or “instance storage”

• Network attached:
• Amazon EBS General Purpose (SSD) volumes
• Amazon EBS Provisioned IOPS (SSD) volumes
• Amazon EBS Magnetic volumes
• Amazon EFS
• Amazon S3 and Amazon Glacier for object storage

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Auto Scaling
Resources scaled to demand
Actual demand

Predicted demand Actual demand

Waste Customer
dissatisfaction

Rigid on-premises resources Elastic cloud-based resources

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Purchasing Options

On-Demand Reserved Spot Dedicated

Pay for compute Make a low, one- Bid for unused Launch instances
capacity by the time payment and capacity, charged at a within Amazon VPC
hour with no long- receive a significant Spot Price which that run on hardware
term commitments discount on the fluctuates based on dedicated to a single
hourly charge supply and demand customer

For spiky For time-insensitive For highly sensitive or


workloads, or to For committed or transient compliance-related
define needs utilization workloads workloads

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Benefits of Cloud Servers

Fast Deployments Access Low Cost Elastic


computing infrastructure Pay-as-you-go pricing Easily add or remove capacity
in minutes

Globally Accessible Easily Secure Scalable


support customers around A collection of tools to Access to effectively
the world protect data and privacy limitless capacity

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Applications Evolved

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Monolithic Architecture

Order UI User UI Shipping UI

Shipping
Order Service User Service
Service

Data Access

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Scaling a Monolithic Architecture


Shipping Shipping
Order UI User UI Order UI User UI
UI UI
Shipping Shipping
Order UI User UI Order UI User UI
UI UI
Order User Shipping Order User Shipping
Shipping Shipping
Service Order UIService User UIService Service Order UIService User UIService
Order User ShippingUI Order User ShippingUI
Service Service Service Service Service Service
Data Data
Order User Shipping Order User Shipping
Access Access
Service DataService Service Service DataService Service
Access Access
Data Data
Access Access

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

A Microservices Architecture

Order UI User UI Shipping UI

Shipping
Order Service User Service
Service

Data Access

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Scaling a Microservices
Architecture
Order UI User UI Shipping UI
Order UI User UI Shipping UI

Order Service Shipping


User Service Shipping
Order Service User Service Service
Shipping
Order Service Service
Service

Data Access
Data Access
Data Access

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Compute Evolved – Containers

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Docker

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

What are Containers?


App1 App2
OS virtualization
Bins/Libs Bins/Libs Process isolation

Guest OS Images

Server
Automation

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Container Advantages
App1 App2
Portable
Bins/Libs Bins/Libs Flexible

Guest OS Fast

Server
Efficient

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Containers are Natural for


Microservices
• Simple to model
• Any app, any language
• Image is the version
• Test & deploy same artifact
• Stateless servers decrease change risk

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Managing One Host is


Straightforward
App1 App2

Bins/Libs Bins/Libs

Guest OS

Server

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Managing a Fleet is Hard


AZ 1 AZ 2

Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS

Server Server Server Server Server Server Server Server Server Server Server Server

Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS

Server Server Server Server Server Server Server Server Server Server Server Server

Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS

Server Server Server Server Server Server Server Server Server Server Server Server

Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS

Server Server Server Server Server Server Server Server Server Server Server Server

Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS Guest OS

Server Server Server Server Server Server Server Server Server Server Server Server

AZ 3

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

What is Amazon ECS?


• Amazon EC2 Container Service (Amazon ECS) is a highly scalable,
high performance container management service.

• You can use Amazon ECS to schedule the placement of


containers across your cluster.

• You can also integrate your own scheduler or third-party


scheduler to meet business or application specific requirements.

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Container Management at Any


Scale

• Nothing to run
• Complete state Control and monitoring
scale

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Flexible Container
Placement
• Long running applications

• Batch jobs

• Multiple schedulers

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Integration with the AWS


Platform
• Elastic Load Balancing

• Amazon Elastic Block Store


• Amazon Virtual Private Cloud
• Amazon CloudWatch

• AWS Identity and Access Management

• AWS CloudTrail
digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Compute Evolved – Serverless

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

What is Serverless?
• Operations and Management
• Provisioning and Utilization
• Scaling

• Availability and Fault Tolerance

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Benefits of Serverless
• Simple
• Scalable
• Low Cost
• Reliable
• Low Latency

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

What is AWS
Lambda?
• AWS Lambda lets you run code without provisioning or
managing servers.
• You pay only for the compute time you consume - there is
no charge when your code is not running.
• Just upload your code and Lambda takes care of
everything required to run and scale your code with high
availability

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Using AWS Lambda


Bring your own code •Simple resource model
• Node.js, Java, Python • Select power rating
• Bring your own from 128 MB to 1.5 GB
libraries (even native • CPU and network
ones) allocated proportionately
• Reports actual usage

Flexible use
• Call or send events •Flexible authorization
• Integrated with other • Securely grant access to
AWS services resources, including VPCs
• Build whole • Fine-grained control over
serverless who can call your
ecosystems functions

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

Using AWS Lambda


Programming model Stateless
• AWS SDK built in (Python • Persist data using
and Node.js) Amazon DynamoDB, S3,
• Eclipse plugin (Java) or ElastiCache
• Lambda is the • No affinity to
“webserver” infrastructure (can’t “log
• Use processes, threads, in to the box”)
/tmp, sockets normally
Monitoring and logging
Authoring functions • Built-in metrics for
• Author directly using the requests, errors, latency,
console WYSIWYG and throttles
editor • Built-in logs in
• Package code as a .zip and Amazon CloudWatch
upload to Lambda or S3 Logs
• Plugins for Eclipse and
Visual Studio

digitalent.kominfo.go.id Command line tools
LOGO
UNIV/POLTEK

Pay-per Request
• Buy compute time in
100 ms increments for
21 microcents
• Request charge of 20
microcents
• No hourly, daily, or Free Tier
monthly minimums 1 million requests and 400,000 GBs of compute
• No per-device fees every month, every customer

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

How to Choose

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

How Do I Choose?
• VMs
• “I want to configure machines,
storage, networking, and my OS” EC2
• Containers
• “I want to run servers, configure
applications, and control scaling” ECS
• Serverless
• “Run my code when it’s needed”
Lambda

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

If You Need to Run…


• Open-source cluster management, big data, and
database software (e.g., Mesos, Hadoop)
• Enterprise applications (e.g., SAP, Oracle, Sharepoint)
• On-premises migrations

EC2

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

If You Need to
Run…
• Web applications
• Docker workloads
• Microservices
• Batch jobs

ECS
digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

If You Need to Run…


 Web applications
 Mobile backends
 IoT backends
 Stream processing workloads
 File processing workloads

Lambda
digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

List of Reference
• Overview AWS Compute Services
https://docs.aws.amazon.com/whitepapers/latest/aws-overview/c
ompute-services.html
• AWS EC2
https://aws.amazon.com/ec2/
• AWS ECS
https://aws.amazon.com/ecs/
• AWS Lambda
https://aws.amazon.com/lambda/

digitalent.kominfo.go.id
LOGO
UNIV/POLTEK

IKUTI KAMI

digitalent.kominfo
digitalent.kominfo
DTS_kominfo
Digital Talent Scholarship 2019

Pusat Pengembangan Profesi dan Sertifikasi


Badan Penelitian dan Pengembangan SDM
Kementerian Komunikasi dan Informatika
Jl. Medan Merdeka Barat No. 9
(Gd. Belakang Lt. 4 - 5)
Jakarta Pusat, 10110

digitalent.kominfo.go.id
digitalent.kominfo.go.id

You might also like