Slide 1

Slide 1 text

AWS Small Talk

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Amazon Services EC2 S3 SES Cloudfront

Slide 4

Slide 4 text

EC2 Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. Virtual Servers, scalable computing capacity

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

EBS Amazon Elastic Block Store (Amazon EBS) provides persistent block storage volumes for use with Amazon EC2 instances in the AWS Cloud. Each Amazon EBS volume is automatically replicated within its Availability Zone to protect you from component failure, offering high availability and durability. EBS is mountable storage; it can be mounted as a device to an EC2 instance. Multiple EBS “drives” can be mounted to one EC2 instance, and they can be then striped and/or mirrored into a larger volume using software RAID Hard driver

Slide 8

Slide 8 text

Install the command tools, database, web server etc to launch your Rails app

Slide 9

Slide 9 text

EC2 for Arcane 3 instances Host in eu-west (Ireland) Benchmark by sysbench (CPU, IO) Web performance bench by apache & ab

Slide 10

Slide 10 text

Price

Slide 11

Slide 11 text

What the f**k ?

Slide 12

Slide 12 text

S3 Amazon S3 (Simple Storage Service) is an web service offered by Amazon Web Services. Amazon S3 provides storage through web services interfaces (REST, SOAP, and BitTorrent). Public folder on cloud

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

https://s3-eu-west-1.amazonaws.com/arcane-production/uploads/user/logo/10/%E9%98%BF%E8%BF%AA%E5%B0%8F%E5%B8%BD1.jpg

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

S3 & Rails gem ‘carrierwave’ gem ‘carrierwave-aws’ gem ‘fog’ (gem ‘fog-aws’)

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

CloudFront Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services. Content delivery networks provide a globally-distributed network of proxy servers which cache content, such as web videos or other bulky media, more locally to consumers, thus improving access speed for downloading this content.

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

/uploads/campaign/ cloud_music/814/EXTSY%27s%20Addicted%20Radio%20%23091.mp3 https://arcane-production.s3-eu-west-1.amazonaws.com https://d15k0o6rdrjcy5.cloudfront.net

Slide 24

Slide 24 text

CloudFront & Rails

Slide 25

Slide 25 text

SES Amazon Simple Email Service (Amazon SES) is a cost- effective email service built on the reliable and scalable infrastructure that Amazon.com developed to serve its own customer base. Email service, send and receive email

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

SES & Rails

Slide 29

Slide 29 text

Tips (ଗᨵ҂

Slide 30

Slide 30 text

Host assets: CloudFront > S3 > EC2

Slide 31

Slide 31 text

Don’t use S3 to save “temporary files”

Slide 32

Slide 32 text

Backend Job for transferring file from EC2 -> S3 sidekiq, resque

Slide 33

Slide 33 text

Don’t use carrierwave default way to upload big file to cloud

Slide 34

Slide 34 text

Decide the S3 bucket name as early as possible if you or client has compulsion

Slide 35

Slide 35 text

Use s3cmd command tool to operate s3 bucket and files

Slide 36

Slide 36 text

Use presigned url for S3 resource downloading

Slide 37

Slide 37 text

Back up your database to S3 (use Backup gem) https://github.com/damm/backup backup perform -t arcane_local_backup -r /home/jimmy/Backup

Slide 38

Slide 38 text

Configure your SES bounce & complaint notification

Slide 39

Slide 39 text

– Jimmy @ekohe “Thanks, AWS”