Embrace the Cloud - Inspiring Conference 2015

2.221 Aufrufe

Veröffentlicht am

How to use Amazon Web Services for hosting a TYPO3 Flow setup.

Veröffentlicht in: Software
0 Kommentare
1 Gefällt mir
Statistik
Notizen
  • Als Erste(r) kommentieren

Keine Downloads
Aufrufe
Aufrufe insgesamt
2.221
Auf SlideShare
0
Aus Einbettungen
0
Anzahl an Einbettungen
68
Aktionen
Geteilt
0
Downloads
3
Kommentare
0
Gefällt mir
1
Einbettungen 0
Keine Einbettungen

Keine Notizen für die Folie

Embrace the Cloud - Inspiring Conference 2015

  1. 1. Embrace the Cloud Henrik Møller Rasmussen · Founder & CTO at famly.co
  2. 2. The digital daycare
  3. 3. TICKET.COM Buy Peaks with heavy load Always available
  4. 4. +
  5. 5. +
  6. 6. Hub
  7. 7. DNS - Route 53 “Amazon Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service.” Integrates extremely well with other AWS services Elastic Load Balancing Simple Email Services Health checks / failover
  8. 8. Let’s start simple - Elastic Beanstalk “Amazon Elastic Beanstalk is an easy-to-use service for deploying and scaling web applications and services.”
  9. 9. Elastic Compute Cloud (EC2) t2.micro: 1 core, 1GiB ram ~ $15 / month r3.8xlarge: 32 core, 244GiB ram ~ $2.000 / month
  10. 10. Regions and Availability Zones * Old map - more regions today
  11. 11. Zone A Zone B Zone C Region EU-WEST-1
  12. 12. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com 54.12.13.14 54.12.13.14
  13. 13. MySQL - Amazon RDS “Amazon Relational Database Service (Amazon RDS) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud.” Automated backups Encryption in transit and at rest Automated maintenance (security upgrades etc.)
  14. 14. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com 54.12.13.14 54.12.13.14 Buy
  15. 15. Elastic Load Balancing “Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances in the cloud.” High availability Scalable SSL termination (encryption / decryption)
  16. 16. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing
  17. 17. Problems with multiple servers TYPO3 Flow sessions are stored in local file cache Logging goes to local filesystem Uploaded resources are stored on local filesystem
  18. 18. TYPO3 Flow sessions are stored in local file cache Solution: Change TYPO3 Flow’s session backend to a database or redis backend (e.g. ElastiCache)
  19. 19. Logging goes to local filesystem Solution: Ship log files to a central logging server CloudWatch
  20. 20. Uploaded resources are stored on local filesystem Solution: Upload resources to a shared file service (e.g. Amazon S3)
  21. 21. Amazon S3 “Amazon S3 provides developers and IT teams with secure, durable, highly-scalable object storage.” Easy to use Cheap Highly-scalable Durable
  22. 22. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  23. 23. AWS PHP SDK Install with composer aws/aws-sdk-php
  24. 24. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  25. 25. Auto-Scaling “Auto Scaling helps you maintain application availability and allows you to scale your Amazon EC2 capacity up or down automatically according to conditions you define"
  26. 26. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  27. 27. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  28. 28. RDS Multi-AZ “Amazon RDS Multi-AZ deployments provide enhanced availability and durability for Database (DB) Instances"
  29. 29. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  30. 30. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  31. 31. Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  32. 32. RDS Read Replicas “Amazon RDS Read Replicas provide enhanced performance and durability” Reading (HTTP GET) uses a random read replica Writing (HTTP POST) goes to master
  33. 33. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3
  34. 34. Amazon SQS “Amazon Simple Queue Service (SQS) is a fast, reliable, scalable, fully managed message queuing service. Things to use a queue for: Generate and send emails (newsletters etc.) Generate and send reports Handling events in an event-driven architecture
  35. 35. Zone A Zone B Zone C Region EU-WEST-1 DNS Route 53 ticket.com One of ELB’s IP'sBuy Elastic Load Balancing S3 SQS
  36. 36. Emails - SES “Amazon Simple Email Service (Amazon SES) is a cost- effective outbound-only email-sending service built on the reliable and scalable infrastructure.” High deliverability Automated DKIM signing Anti-spam agreements Higher delivery rates
  37. 37. Push iOS / Android - Amazon SNS “Amazon Simple Notification Service is a fast, flexible, fully managed push messaging service.”
  38. 38. Amazon Cloudwatch “Amazon CloudWatch is a monitoring service to collect and track metrics and set alarms.”
  39. 39. And much more.. CDN (CloudFront) Managed Redis / Memcached (ElastiCache)
 And more …
  40. 40. Start cost My experience so far: 99% predictable, 1% unknown 2 x t2.micro (with SSD)…………… ~ $30 1 x Load Balancer ………………………… ~ $20 1 x MySQL with failover…………… ~ $30 1 x MySQL Read replica …………… ~ $15 S3, Route 53, SES, SNS etc…… ~ $ 5 —— Total ………………………………………………………… ~ $100 / month AWS Pricing is very complex and hard to predict.
  41. 41. + Some of the reasons why I love AWS: • Fairly easy to get started (with a very advanced setup) • File/push/email/queue/cache/… services are super useful and easy to use • The auto-healing / auto-scaling features gives me peace of mind • Feels confident that we can scale easily using horizontal scaling
  42. 42. Hub
  43. 43. The digital daycare Henrik Møller Rasmussen · hmr@famly.co · Twitter: @heinodk Founder & CTO at famly.co Thanks for listening.

×