Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
AWS Cloud Kata for Start-Ups and Developers
Hong Kong
Connect and Interconnect
The Mesh of Event-Driven Compute and
Marvel...
AWS Cloud Kata for Start-Ups and Developers
Innovation
AWS Cloud Kata for Start-Ups and Developers
Innovation?
Why Do Companies Innovate?
Innovation = Growth
AWS Cloud Kata for Start-Ups and Developers
Innovation = Growth!
« …innovation is now recognized as
the single most import...
AWS Cloud Kata for Start-Ups and Developers
Organizational Effectiveness – Which one are you?
AWS Cloud Kata for Start-Ups and Developers
Lower the Cost of Failure
« Invention requires two
things: the ability to try ...
AWS Cloud Kata for Start-Ups and Developers
Let’s Innovate!
Reduce undifferentiated heavy lifting (Business Focus)
Lower t...
AWS Cloud Kata for Start-Ups and Developers
Containers
AWS Cloud Kata for Start-Ups and Developers
Let’s talk about scaling an app first…
Order UI User UI
Shipping
UI
Order
Serv...
AWS Cloud Kata for Start-Ups and Developers
Horizontal Auto-Scaling
AWS Cloud Kata for Start-Ups and Developers
However a lot of people build “micro”-services instead
Order UI User UI
Shippi...
AWS Cloud Kata for Start-Ups and Developers
And scale those micro-services independently
Order UI User UI UI
Order
Service...
AWS Cloud Kata for Start-Ups and Developers
Containers to the help!
AWS Cloud Kata for Start-Ups and Developers
What is a container?
OS-level virtualization
Handled through “cgroups”
Complet...
AWS Cloud Kata for Start-Ups and Developers
Benefits of using Containers
Benefits
Portable (Local<->AWS)
Shared OS speeds ...
AWS Cloud Kata for Start-Ups and Developers
A Container Pipeline
Base
image
Patches
IT Operations Developer
Ruby
Redis
Log...
AWS Cloud Kata for Start-Ups and Developers
Amazon EC2 Container Service
Highly scalable, high performance Docker
containe...
AWS Cloud Kata for Start-Ups and Developers
AWS Elastic Beanstalk
AWS Elastic
Beanstalk
Easily deploy, monitor, and scale ...
AWS Cloud Kata for Start-Ups and Developers
Let’s Send a Container to the Cloud DEMO
Containers
AWS Elastic
Beanstalk
Inte...
AWS Cloud Kata for Start-Ups and Developers
Event-Driven
AWS Cloud Kata for Start-Ups and Developers
Polling? No thanks!
function checkNewMessage(){
// open message stream, read l...
AWS Cloud Kata for Start-Ups and Developers
Event-Driven Programming
var messageStream= new events.MessageStreamEmitter();...
AWS Cloud Kata for Start-Ups and Developers
AWS Lambda
Run your code in the cloud, fully
managed and highly-available
Trig...
AWS Cloud Kata for Start-Ups and Developers
Serverless
AWS Cloud Kata for Start-Ups and Developers
Storage and Delivery of the App
Amazon S3
Amazon
CloudFront
Amazon S3
• Highly...
AWS Cloud Kata for Start-Ups and Developers
Build a Serverless Web App!
Amazon S3 to host HTML,
Images, CSS, JS etc.
AWS J...
AWS Cloud Kata for Start-Ups and Developers
Amazon API Gateway
Fully managed and scalable RESTful
API gateway service
Powe...
AWS Cloud Kata for Start-Ups and Developers
How to build application backends?
Back-end logic DatabaseMobile
AWS Cloud Kata for Start-Ups and Developers
How to build application backends even better?
Amazon
Lambda
Amazon API
Gatewa...
AWS Cloud Kata for Start-Ups and Developers
Serverless App Architecture
JavaScript SDK
Browser
Amazon
S3
Amazon
CloudFront...
AWS Cloud Kata for Start-Ups and Developers
Introducing Chalice
Serverless micro-
framework for AWS
Deploy APIs quickly vi...
AWS Cloud Kata for Start-Ups and Developers
Serverless with AWS DEMO
Amazon
Lambda
Amazon API
Gateway
Amazon S3Amazon
Clou...
AWS Cloud Kata for Start-Ups and Developers
Serverless Framework
www.serverless.com
AWS Cloud Kata for Start-Ups and Developers
Webhooks – Integrate with other platforms DEMO
Facebook
Page AWS Lambda
Slack
...
AWS Cloud Kata for Start-Ups and Developers
Mobile
AWS Cloud Kata for Start-Ups and Developers
Mobile is Ever Stronger…
Ref: Mobile is Eating the World (a16z)
AWS Cloud Kata for Start-Ups and Developers
Mobile Apps
Mobile often the first customer touch
point these days
Themes in a...
AWS Cloud Kata for Start-Ups and Developers
Ability to Scale on AWS
AWS Cloud Kata for Start-Ups and Developers
0
190,000
380,000
570,000
760,000
950,000
1,140,000
1,330,000
1,520,000
1,710,...
AWS Cloud Kata for Start-Ups and Developers
1.7 Billion
swipes a day
October 2015
Ability to Scale on AWS
AWS Cloud Kata for Start-Ups and Developers
1.2 Trillion+
Total Swipes
October 2015
Ability to Scale on AWS
AWS Cloud Kata for Start-Ups and Developers
7 Petabytes
of Data Transfer per Month
October 2015
Ability to Scale on AWS
AWS Cloud Kata for Start-Ups and Developers
Amazon Cognito
Authenticate & sync
Amazon Mobile Analytics
Analyze user behavi...
AWS Cloud Kata for Start-Ups and Developers
AWS Mobile Hub
Allows to build, test and monitor mobile
apps within minutes
Au...
AWS Cloud Kata for Start-Ups and Developers
AWS Mobile Hub
AWS Cloud Kata for Start-Ups and Developers
AWS Mobile Hub: Select Features
AWS Cloud Kata for Start-Ups and Developers
AWS Mobile Hub: Resources
AWS Cloud Kata for Start-Ups and Developers
AWS Mobile Hub: Code Generation
AWS Cloud Kata for Start-Ups and Developers
AWS Device Farm: Build quality apps!
AWS Device Farm
Test your app on real dev...
AWS Cloud Kata for Start-Ups and Developers
Let’s build a mobile app in 5 minutes! DEMO
Amazon
Cloudfront
Amazon S3
Mobile...
AWS Cloud Kata for Start-Ups and Developers
IoT
AWS Cloud Kata for Start-Ups and Developers
All the music, in every room of your home, wirelessly.
Sonos is the smart spea...
AWS Cloud Kata for Start-Ups and Developers
AWS Cloud Kata for Start-Ups and Developers
SONOS Trueplay: Smart Speaker Tuning
Trueplay measures the
acoustics in any ro...
AWS Cloud Kata for Start-Ups and Developers
Cloud-connected devices are constantly smarter
« A 10 year old product can do ...
AWS Cloud Kata for Start-Ups and Developers
AWS IoT
“Securely connect billions of
devices to AWS,
so they can interact wit...
AWS Cloud Kata for Start-Ups and Developers
DEVICE SDK
DEVICE
GATEWAY
AUTHENTICATION
RULES
ENGINE
AWS Services
- - - - -
3...
AWS Cloud Kata for Start-Ups and Developers
Voice Control
AWS Cloud Kata for Start-Ups and Developers
Say Hello!
Alexa, Hello!
AWS Cloud Kata for Start-Ups and Developers
The Power of Speech: Alexa
Alexa, the voice service that powers
Echo, provides...
AWS Cloud Kata for Start-Ups and Developers
The Power of Speech: Alexa
Node.js SDK available to quickly build new voice sk...
AWS Cloud Kata for Start-Ups and Developers
Build your own Alexa Skill! DEMO
Amazon
Echo
Alexa Skills
Kit
AWS Lambda Amazo...
AWS Cloud Kata for Start-Ups and Developers
Virtual Worlds
AWS Cloud Kata for Start-Ups and Developers
A free AAA game engine deeply integrated with
AWS and Twitch – with full sourc...
AWS Cloud Kata for Start-Ups and Developers
Amazon Lumberyard Engine
• Built based on the
successful CryEngine
• Systems b...
AWS Cloud Kata for Start-Ups and Developers
Twitch - Create a Fan Base!
100M unique viewers / month
106 minutes / person /...
AWS Cloud Kata for Start-Ups and Developers
Interact with a virtual world! DEMO
Amazon
Lumberyard
Twitch
ChatPlay
Mobile
P...
AWS Cloud Kata for Start-Ups and Developers
Go Build!
AWS Cloud Kata for Start-Ups and Developers
There has never been a better time to build!
Build fully-managed modular and
s...
AWS Cloud Kata for Start-Ups and Developers
Thank you!
Olivier Klein 奧樂凱
Senior Solutions Architect
AWS
Prochain SlideShare
Chargement dans…5
×

Connect and Interconnect – The Mesh of Event-Driven Compute and Marvelous Virtual Worlds

733 vues

Publié le

Let’s enter the new world of serverless, voice and event-driven compute to build a broad mesh of interconnected smart devices. Services like Amazon API Gateway, AWS Lambda, Amazon S3, AWS IoT, Amazon Mobile Hub and Alexa Skills Kit all help to build completely serverless, smart, voice-enabled architectures within minutes without managing any servers. We will demonstrate interesting Webhook integrations with Facebook and Slack, build mobile apps on the fly, send containers into the cloud and give Amazon Echo new skills. In addition, experience Amazon Lumberyard, a free, cross-platform, 3D game engine to create the highest-quality games, connect your virtual worlds to the vast compute and storage of the AWS Cloud, and engage fans on Twitch. It has never been a better time to build!

Publié dans : Technologie
  • Soyez le premier à commenter

Connect and Interconnect – The Mesh of Event-Driven Compute and Marvelous Virtual Worlds

  1. 1. AWS Cloud Kata for Start-Ups and Developers Hong Kong Connect and Interconnect The Mesh of Event-Driven Compute and Marvelous Virtual Worlds Olivier Klein 奧樂凱, Senior Solutions Architect, AWS
  2. 2. AWS Cloud Kata for Start-Ups and Developers Innovation
  3. 3. AWS Cloud Kata for Start-Ups and Developers Innovation? Why Do Companies Innovate? Innovation = Growth
  4. 4. AWS Cloud Kata for Start-Ups and Developers Innovation = Growth! « …innovation is now recognized as the single most important ingredient in any modern economy…In short, it is innovation – more than the application of capital and labor – that makes the world go round »
  5. 5. AWS Cloud Kata for Start-Ups and Developers Organizational Effectiveness – Which one are you?
  6. 6. AWS Cloud Kata for Start-Ups and Developers Lower the Cost of Failure « Invention requires two things: the ability to try a lot of experiments, and not having to live with the collateral damage of failed experiments » Andy Jassy CEO, Amazon Web Services
  7. 7. AWS Cloud Kata for Start-Ups and Developers Let’s Innovate! Reduce undifferentiated heavy lifting (Business Focus) Lower the cost of failure (Experiment often) Automate and optimize (Become agile) Engage on the channel of your customer’s choice (Customer Obsession) Measure, improve and iterate (Feedback Loop) Integrate with other platforms (Ecosystem) Today we will focus on:
  8. 8. AWS Cloud Kata for Start-Ups and Developers Containers
  9. 9. AWS Cloud Kata for Start-Ups and Developers Let’s talk about scaling an app first… Order UI User UI Shipping UI Order Service User Service Shipping Service Data Access Amazon EC2
  10. 10. AWS Cloud Kata for Start-Ups and Developers Horizontal Auto-Scaling
  11. 11. AWS Cloud Kata for Start-Ups and Developers However a lot of people build “micro”-services instead Order UI User UI Shipping UI Order Service User Service Shipping Service
  12. 12. AWS Cloud Kata for Start-Ups and Developers And scale those micro-services independently Order UI User UI UI Order Service Service Shipping Service Order UI Order UI User UI UIShipping UI Order ServiceOrder Service Service Service Service Service Shipping Service
  13. 13. AWS Cloud Kata for Start-Ups and Developers Containers to the help!
  14. 14. AWS Cloud Kata for Start-Ups and Developers What is a container? OS-level virtualization Handled through “cgroups” Complete process isolation Container Image contains all dependencies { Container
  15. 15. AWS Cloud Kata for Start-Ups and Developers Benefits of using Containers Benefits Portable (Local<->AWS) Shared OS speeds up deployment Flexible resource allocation (CPU Memory, Network, Disk etc.) { Container
  16. 16. AWS Cloud Kata for Start-Ups and Developers A Container Pipeline Base image Patches IT Operations Developer Ruby Redis Logger Utilities App
  17. 17. AWS Cloud Kata for Start-Ups and Developers Amazon EC2 Container Service Highly scalable, high performance Docker container management service Eliminates the need to install, operate, and scale your cluster management infrastructure Schedule the placement of containers based on resource needs and availability requirements Full integration with ELB, EBS, IAM etc. Amazon EC2 Container Service
  18. 18. AWS Cloud Kata for Start-Ups and Developers AWS Elastic Beanstalk AWS Elastic Beanstalk Easily deploy, monitor, and scale applications Infrastructure and operating system provisioned and managed by EB Preconfigured application containers that are easily customizable
  19. 19. AWS Cloud Kata for Start-Ups and Developers Let’s Send a Container to the Cloud DEMO Containers AWS Elastic Beanstalk Internet
  20. 20. AWS Cloud Kata for Start-Ups and Developers Event-Driven
  21. 21. AWS Cloud Kata for Start-Ups and Developers Polling? No thanks! function checkNewMessage(){ // open message stream, read latest messages and alert... alertAboutMessage(); } while (true){ //let's create an endless loop checkNewMessages(); sleep (1000); //sleep and repeat every second } Inefficient use of compute cycles, storage or stream I/O Doesn’t scale well and is not reactive
  22. 22. AWS Cloud Kata for Start-Ups and Developers Event-Driven Programming var messageStream= new events.MessageStreamEmitter(); messageStream.on(’newMessage', alertAboutMessage); Only react when needed, well known in modern programming languages What if we could translate this to our cloud infrastructure? • Only react when a customer sends a message • Only execute your code when a new entry in your DB is present • Analyze the new log file only when it’s dumped into the storage
  23. 23. AWS Cloud Kata for Start-Ups and Developers AWS Lambda Run your code in the cloud, fully managed and highly-available Triggered through API calls or state changes in your setup (S3, DynamoDB, SNS, Kinesis) Scales automatically to match the incoming event rate Charged per 100ms execution time Amazon Kinesis Amazon Lambda Amazon S3 Amazon DynamoDB Amazon API Gateway Amazon SNS
  24. 24. AWS Cloud Kata for Start-Ups and Developers Serverless
  25. 25. AWS Cloud Kata for Start-Ups and Developers Storage and Delivery of the App Amazon S3 Amazon CloudFront Amazon S3 • Highly available object storage • Designed for 99.999999999% durability • Offers HTTP / HTTPS endpoint to objects Amazon CloudFront • Content Delivery Network with 56 edge locations across the world • Caches content on edge locations for low latency
  26. 26. AWS Cloud Kata for Start-Ups and Developers Build a Serverless Web App! Amazon S3 to host HTML, Images, CSS, JS etc. AWS Jumpy Fish is built this way Ok, but how about “server- side” logic? • AWS JavaScript SDK JavaScript SDK Browser • Highly Available • Scalable • Fully Managed • Fault Tolerant Amazon S3 Amazon CloudFront
  27. 27. AWS Cloud Kata for Start-Ups and Developers Amazon API Gateway Fully managed and scalable RESTful API gateway service Powered by our content delivery network via 56 global edge locations Provides DDoS protection and throttling capabilities Multiple API stages which you define (e.g. dev, test, prod) AWS Lambda Amazon API Gateway Amazon EC2 AWS API On-prem server
  28. 28. AWS Cloud Kata for Start-Ups and Developers How to build application backends? Back-end logic DatabaseMobile
  29. 29. AWS Cloud Kata for Start-Ups and Developers How to build application backends even better? Amazon Lambda Amazon API Gateway Amazon DynamoDB Microservice
  30. 30. AWS Cloud Kata for Start-Ups and Developers Serverless App Architecture JavaScript SDK Browser Amazon S3 Amazon CloudFront Amazon Lambda Amazon DynamoDB Amazon API Gateway Any other AWS Services (e.g. SNS, SES, ElastiCache etc.)
  31. 31. AWS Cloud Kata for Start-Ups and Developers Introducing Chalice Serverless micro- framework for AWS Deploy APIs quickly via AWS Lambda and Amazon API Gateway github.com/awslabs/chalice $ chalice new-project helloworld $ cat helloworld/app.py from chalice import Chalice app = Chalice(app_name="helloworld") @app.route("/") def index(): return {"hello": "world"} $ chalice deploy ... Your app is available at: https://endpoint/dev $ curl https://endpoint/dev {"hello": "world"}
  32. 32. AWS Cloud Kata for Start-Ups and Developers Serverless with AWS DEMO Amazon Lambda Amazon API Gateway Amazon S3Amazon CloudFront Browser
  33. 33. AWS Cloud Kata for Start-Ups and Developers Serverless Framework www.serverless.com
  34. 34. AWS Cloud Kata for Start-Ups and Developers Webhooks – Integrate with other platforms DEMO Facebook Page AWS Lambda Slack Channel Amazon API Gateway Amazon DynamoDB Incoming Webhook Oli just posted on your page! Oli | 2016-08- 03 | Hello
  35. 35. AWS Cloud Kata for Start-Ups and Developers Mobile
  36. 36. AWS Cloud Kata for Start-Ups and Developers Mobile is Ever Stronger… Ref: Mobile is Eating the World (a16z)
  37. 37. AWS Cloud Kata for Start-Ups and Developers Mobile Apps Mobile often the first customer touch point these days Themes in app development these days: • Ability to scale • Application quality • Development & maintenance ease
  38. 38. AWS Cloud Kata for Start-Ups and Developers Ability to Scale on AWS
  39. 39. AWS Cloud Kata for Start-Ups and Developers 0 190,000 380,000 570,000 760,000 950,000 1,140,000 1,330,000 1,520,000 1,710,000 1,900,000 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 2012 2013 2014 2015 Matches in Tinder since Launch (in 1,000s) Ability to Scale on AWS
  40. 40. AWS Cloud Kata for Start-Ups and Developers 1.7 Billion swipes a day October 2015 Ability to Scale on AWS
  41. 41. AWS Cloud Kata for Start-Ups and Developers 1.2 Trillion+ Total Swipes October 2015 Ability to Scale on AWS
  42. 42. AWS Cloud Kata for Start-Ups and Developers 7 Petabytes of Data Transfer per Month October 2015 Ability to Scale on AWS
  43. 43. AWS Cloud Kata for Start-Ups and Developers Amazon Cognito Authenticate & sync Amazon Mobile Analytics Analyze user behavior AWS Lambda Run business logic Amazon S3 Amazon DynamoDB Store content Store data Amazon SNS Mobile Push Send push notifications Back end architecture on AWS Mobile SDK Testing AWS Device Farm Amazon CloudFront and Amazon S3 App Content Delivery
  44. 44. AWS Cloud Kata for Start-Ups and Developers AWS Mobile Hub Allows to build, test and monitor mobile apps within minutes Automatically provisions all necessary AWS services based on selected features Automatic code generation for iOS (Objective-C / Swift) and Android Uses security best practices with AWS IAM
  45. 45. AWS Cloud Kata for Start-Ups and Developers AWS Mobile Hub
  46. 46. AWS Cloud Kata for Start-Ups and Developers AWS Mobile Hub: Select Features
  47. 47. AWS Cloud Kata for Start-Ups and Developers AWS Mobile Hub: Resources
  48. 48. AWS Cloud Kata for Start-Ups and Developers AWS Mobile Hub: Code Generation
  49. 49. AWS Cloud Kata for Start-Ups and Developers AWS Device Farm: Build quality apps! AWS Device Farm Test your app on real devices Many different smartphones and tablets Full built-in test suite and integration with frameworks Gesture, swipe, and interact with devices in real time, directly from your web browser
  50. 50. AWS Cloud Kata for Start-Ups and Developers Let’s build a mobile app in 5 minutes! DEMO Amazon Cloudfront Amazon S3 Mobile App AWS Lambda Amazon DynamoDB Amazon Cognito Amazon Mobile Analytics
  51. 51. AWS Cloud Kata for Start-Ups and Developers IoT
  52. 52. AWS Cloud Kata for Start-Ups and Developers All the music, in every room of your home, wirelessly. Sonos is the smart speaker system that streams all your favorite music to any room Control your music with one simple app, and fill your home with pure, immersive sound.
  53. 53. AWS Cloud Kata for Start-Ups and Developers
  54. 54. AWS Cloud Kata for Start-Ups and Developers SONOS Trueplay: Smart Speaker Tuning Trueplay measures the acoustics in any room and fine-tunes your speaker Launched in 2015 yet available to devices purchased over 5 years ago Data-driven evaluation and testing
  55. 55. AWS Cloud Kata for Start-Ups and Developers Cloud-connected devices are constantly smarter « A 10 year old product can do things that hadn't been invented 10 years ago. Most importantly, going forward, people will expect your product to improve, and if it isn't being updated and getting better, you're literally being left behind. »
  56. 56. AWS Cloud Kata for Start-Ups and Developers AWS IoT “Securely connect billions of devices to AWS, so they can interact with applications and other devices”
  57. 57. AWS Cloud Kata for Start-Ups and Developers DEVICE SDK DEVICE GATEWAY AUTHENTICATION RULES ENGINE AWS Services - - - - - 3P Services SHADOW APPLICATIONS AWS IoT API REGISTRY AWS IoT : How it works
  58. 58. AWS Cloud Kata for Start-Ups and Developers Voice Control
  59. 59. AWS Cloud Kata for Start-Ups and Developers Say Hello! Alexa, Hello!
  60. 60. AWS Cloud Kata for Start-Ups and Developers The Power of Speech: Alexa Alexa, the voice service that powers Echo, provides capabilities, or skills, that enable customers to interact with devices using voice. Alexa Skills Kit (ASK) allows device manufacturer to build their own skill Skills can be powered by AWS Lambda
  61. 61. AWS Cloud Kata for Start-Ups and Developers The Power of Speech: Alexa Node.js SDK available to quickly build new voice skills. github.com/amzn/alexa-skills-kit-js var AlexaSkill = require('./AlexaSkill'); var HelloWorld= function () { AlexaSkill.call(this, APP_ID); }; // Extend AlexaSkill HelloWorld.prototype = Object.create(AlexaSkill.prototype); HelloWorld.prototype.constructor = HelloWorld; HelloWorl.prototype.eventHandlers.onLaunch = function (launchRequest, session, response) { var speechOutput = ”Hello World”; response.tell(speechOutput); };
  62. 62. AWS Cloud Kata for Start-Ups and Developers Build your own Alexa Skill! DEMO Amazon Echo Alexa Skills Kit AWS Lambda Amazon DynamoDB (Facebook Page Post)
  63. 63. AWS Cloud Kata for Start-Ups and Developers Virtual Worlds
  64. 64. AWS Cloud Kata for Start-Ups and Developers A free AAA game engine deeply integrated with AWS and Twitch – with full source Free AAA Game Engine: Amazon Lumberyard
  65. 65. AWS Cloud Kata for Start-Ups and Developers Amazon Lumberyard Engine • Built based on the successful CryEngine • Systems by Double Helix Games • Cloud backend can be powered by AWS • Full integration with Twitch • Integration into VR
  66. 66. AWS Cloud Kata for Start-Ups and Developers Twitch - Create a Fan Base! 100M unique viewers / month 106 minutes / person / day 2M peak concurrent viewers Leading Social Video Platform for Gamers Helps to build strong communities Leverage entertaining players to spread adoption • Is this game worth buying? • How do I get better at this game?
  67. 67. AWS Cloud Kata for Start-Ups and Developers Interact with a virtual world! DEMO Amazon Lumberyard Twitch ChatPlay Mobile Phone
  68. 68. AWS Cloud Kata for Start-Ups and Developers Go Build!
  69. 69. AWS Cloud Kata for Start-Ups and Developers There has never been a better time to build! Build fully-managed modular and serverless components for your business Interconnect devices, things and applications to derive the best value Interact with your customers via new means like voice control or virtual worlds Always build scalable and fault-tolerant solutions
  70. 70. AWS Cloud Kata for Start-Ups and Developers Thank you! Olivier Klein 奧樂凱 Senior Solutions Architect AWS

×