Your SlideShare is downloading. ×

Architecting with AWS Sydney Customer Appreciation Day

1,006

Published on

Daniel Hand's session for the Australia Customer Appreciation Day, November 13, 2012

Daniel Hand's session for the Australia Customer Appreciation Day, November 13, 2012

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,006
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Architecting with Amazon Web Services (AWS)Daniel Hand - Principal Solutions Architect@danieljhandSlides by Carlos Conde
  • 2. 1.  ELASTICITY2.  DESIGN FOR FAILURE3.  LOOSE COUPLING4.  SECURITY5.  PERFORMANCE
  • 3. # 1ELASTICITY ●○○○○
  • 4. AMAZON EC2ELASTIC COMPUTE CLOUD
  • 5. AMAZON CLOUDWATCHMONITORING FOR AWS RESOURCES
  • 6. AUTO SCALINGSCALE UP/DOWN EC2 CAPACITY
  • 7. ELASTIC LOAD BALANCINGNETWORK TRAFFIC DISTRIBUTION
  • 8. 6 am
  • 9. 10 am
  • 10. 10 am
  • 11. 10 am
  • 12. 7 pm
  • 13. 7 pm
  • 14. 7 pm
  • 15. without elasticity you cant accelerate
  • 16. what you really need is… …adjustable capacity
  • 17. Demo
  • 18. Amazon Elastic Load Balancer Web Web Auto Scaling Group AmazonCloudWatch Auto Scaling
  • 19. Amazon Elastic Load Balancer Web Web VS Auto Scaling Group AmazonCloudWatch Auto Scaling
  • 20. Amazon Elastic Load Balancer Web Web VS Auto Scaling Group Amazon BeesCloudWatch Auto Scaling
  • 21. Amazon Elastic Load Balancer Web Web VS Auto Scaling Group Amazon Bees with machineCloudWatch Auto Scaling guns
  • 22. # 2DESIGN FOR FAILURE ●●○○○
  • 23. « Everything fails all the time » Werner Vogels CTO of Amazon
  • 24. YOUR GOALApplications should continue to function even if the underlying physical hardware fails or is removed or replaced
  • 25. Avoid single points of failure
  • 26. Avoid single points of failureAssume everything fails, and designbackwards
  • 27. AMAZON RDSRELATIONAL DATABASE SERVICE
  • 28. AMAZONROUTE 53DOMAIN NAME SERVICE
  • 29. AMAZON RDSMULTI-AZDEPLOYMENT
  • 30. AMAZON CLOUDWATCH ALARMS
  • 31. AWS BUILDING BLOCKSInherently Fault-Tolerant Services Fault-Tolerant with the right architecture  Amazon S3   Elastic Load Balancing   Amazon EC2  Amazon SimpleDB   AWS IAM   Amazon EBS  Amazon DynamoDB   AWS Elastic   Amazon RDS  Amazon CloudFront Beanstalk  Amazon SWF   Amazon VPC   Amazon  Amazon SQS ElastiCache  Amazon SNS   Amazon EMR  Amazon SES   Amazon CloudSearch  Amazon Route53
  • 32. NETFLIXCHAOS MONKEY
  • 33. Demo
  • 34. Amazon Elastic Load Balancer Web Web VS Auto Scaling Group Amazon Bees with machineCloudWatch Auto Scaling guns
  • 35. Amazon Elastic Load Balancer Web Web VS Auto Scaling Group AmazonCloudWatch Auto Scaling Bees with machine guns +
  • 36. Amazon Elastic Load Balancer Web Web VS Auto Scaling Group AmazonCloudWatch Auto Scaling Bees with machine guns + Chaos Monkey
  • 37. # 3 LOOSECOUPLING ●●●○○
  • 38. BUILD LOOSELYCOUPLED SYSTEMS The looser the are coupled, the bigger they scale
  • 39. Create independent components
  • 40. Create independent componentsDesign everything as a Black Box
  • 41. Create independent componentsDesign everything as a Black BoxThink in terms of services
  • 42. TRANSCODERECEIVE & PUBLISH
  • 43. TRANSCODERECEIVE & PUBLISH QUEUE
  • 44. AMAZON SQSSIMPLE QUEUE SERVICE
  • 45. START CHECK REJECT STOP VIDEO YES TOO NO SPAM PUBLISH SPAM? LONG? CHECK & NOTIFYYES NO SHORTEN TRANSCODE VIDEO
  • 46. MAINTENANCEAUDITABILITYFLEXIBILITYLOW-LEVEL
  • 47. WHAT ARE WETRYING TO DO?
  • 48. START CHECK REJECT STOP VIDEO YES TOO NO SPAM PUBLISH SPAM? LONG? CHECK & NOTIFYYES NO SHORTEN TRANSCODE VIDEO
  • 49. START CHECK REJECT STOP VIDEO YES TOO NO SPAM PUBLISH SPAM? LONG? CHECK & NOTIFYYES NO SHORTEN TRANSCODE VIDEO
  • 50. START CHECK REJECT STOP VIDEO YES TOO NO SPAM PUBLISH SPAM? LONG? CHECK & NOTIFYYES NO SHORTEN TRANSCODE VIDEO
  • 51. TASKSDECISIONS STATELESS ! HISTORY
  • 52. STATELESS SCALES HORIZONTALLY
  • 53. AMAZON SWFWORKFLOW SERVICE FOR SCALABLE, RESILIENT APPLICATIONS
  • 54. AMAZON SWF Keeps track of :  State  Executed tasks  Timeouts  Errors
  • 55. WORKFLOWACTORS
  • 56. DECIDERS COORDINATION LOGIC1.  Poll for work on a decision list Long polling: 60 seconds2.  Evaluate workflow execution history SWF sends full history in JSON format3.  Return decision to Amazon SWF Usually scheduling another task
  • 57. WORKERS COORDINATION LOGIC1.  Poll for work on a specific task list Long polling: 60 seconds2.  Execute works, send heartbeats SWF sends input data from deciders3.  Return success / failure Detailed data can be provided to deciders
  • 58. ALLHORIZONTAL SCALING PATTERNS APPLY
  • 59. NO NEW LANGUAGE TO LEARNYOUR CODE IS YOUR WORKFLOW LANGUAGE SWF MAINTAINS STATE
  • 60. AWS FLOW FRAMEWORKJava Library • Entire workflow can be expressed in sequential code • Integrated with Java Utils API
  • 61. CHAINED TASKS WITHOUT DECISIONS?RECEIVE TRANSCODE NOTIFY use AMAZON SQS
  • 62. TASK GRAPH WITH DECISIONS?RECEIVE CHECK GOOD SPAM OK TRANSCODE VIDEO LENGTH CHECK LONG SPAM SHORTEN PUBLISH REJECT VIDEO & NOTIFY use AMAZON SWF
  • 63. # 4SECURITY ●●●●○
  • 64. AWS IAMIDENTITY AND ACCESS MANAGEMENT
  • 65. MULTI-­‐MULTI-FACTORAUTHENTICATION
  • 66. SECURITY GROUPS LAYERED SECURITY
  • 67. CERTIFICATIONS& COMPLIANCE  SOC 1/SSAE 16/ISAE 3402  ISO 27001 Certification  PCI DSS Level 1 payment card industry  FISMA US Federal Government  DIACAP MAC III Sensitive IATO
  • 68. # 5PERFORMANCE ●●●●●
  • 69. VERTICALSCALING
  • 70. CLUSTER COMPUTEEIGHT EXTRA LARGE 2x Intel Xeon E5-2670, eight-core Sandy Bridge architecture 60.5 GB of memory – 3.3 TB of storage
  • 71. CLUSTER GPUQUADRUPLE EXTRALARGE 2x Intel Xeonarchitecture Nehalem X5570, quad-core 2x NVIDIAGPUs Fermi M2050 Tesla 22 GB of memory – 1.7 TB of storage
  • 72. AMAZONELASTICACHEMEMCACHED COMPATIBLE IN-MEMORY CACHE
  • 73. SEARCHENGINES
  • 74. Relevance & Ranking
  • 75. Faceting
  • 76. RangeSearching
  • 77. AMAZONCLOUDSEARCHFULLY-MANAGED SEARCH SERVICE
  • 78. +
  • 79. DEMOCRATIZE SEARCH Amazon CloudSearch delivers a fully-managed search service in the cloudthat can be set up and running in less than 1 hour, with automatic scaling for data & traffic, at a price starting at less than $100 per month.
  • 80. HTTP SDF POST JSON author=carlos;date=2012-06-07; article=text; …
  • 81. MEDIA SHARINGREFERENCE ARCHITECTURE
  • 82. MEDIA SDF PDF IMAGE JSON MP3…
  • 83. HTTP POST author=carlos;date=2012-06-07; article=text; + … SDF JSON MEDIA PDF IMAGE MP3…
  • 84. Demo
  • 85. Amazon Elastic Load Balancer Web Web VS Auto Scaling Group AmazonCloudWatch Auto Scaling Bees with machine guns + Chaos Monkey
  • 86. 1.  ELASTICITY2.  DESIGN FOR FAILURE3.  LOOSE COUPLING4.  SECURITY5.  PERFORMANCE
  • 87. « If youre not embarrassed when you ship your first version you waited too long » Matt Mullenweg CEO & Founder of WordPress
  • 88. AWS Customer Appreciation Day

×