Use AWS building blocks for your architecture. ⢠Mobile applications can directly interact with. AWS services. ⢠Use
Deploy a Mobile Backend – Live! Jan Metzner, Solutions Architect Amazon Web Services Germany GmbH
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified, or distributed in whole or in part without the express consent of Amazon.com, Inc.
What You Will Learn in this Session • Some key facts for architecting a mobile backend • Building a sample application – live demo – Intro to the sample application – Live building/deploying/configuring the blocks step by step
Key Facts for Architecting a Mobile Backend Mobile applications are customer facing applications • Number of clients can be huge • If customers use your app 24/7 then you must run and support it 24/7 • Scaling is hard – think about traffic spikes • Some code might run on the client side
How you can use AWS • Use AWS building blocks for your architecture • Mobile applications can directly interact with AWS services • Use AWS managed as much as possible – and let us do the heavy lifting
Demo Use Case • Users can pin messages with pictures to POIs around their current location • Read all messages around your current location like a twitter feed • Messages are location specific and not user specific
Demo Application Overview • Mobile JavaScript application • Use AWS building blocks as much as possible • Use AWS shared infrastructure as much as possible
Demo Architecture Walkthrough
Step 1
Provide application + config (html/js/pictures)
Step 2
Add a friendly DNS name
Step 3
Read POIs next to your location and show them on a map
Step 4
Read messages from Amazon DynamoDB. Messages are pinned to a POI retrieved from Amazon CloudSearch and ordered by date.
Step 5
Add a login with AWS IAM Web Identity Federation to get temporary access keys/secrets.
Step 6
Write messages into an Amazon SQS queue.
Step 7
An AWS Elastic Beanstalk application consumes messages from SQS and writes them to DynamoDB.
Step 8
Upload images for the messages to Amazon S3
Hands On – Let’s Do it Live
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
What to change if I would have a few minutes more
• Filter the messages for inappropriate content • Add scaling automation to Amazon DynamoDB with the “Dynamic DynamoDB” library • Prevent Amazon DynamoDB Hot Keys with spreading the POIs over several HashKeys
Thank You Jan Metzner, Solutions Architect Amazon Web Services Germany GmbH
[email protected]