building cloud-powered mobile apps

77
Building Cloud-powered Mobile Apps Danilo Poccia, Technical Evangelist October 15 th , 2014

Upload: danilo-poccia

Post on 22-Nov-2014

153 views

Category:

Mobile


3 download

DESCRIPTION

Building Cloud-Powered Mobile Apps using AWS Mobile services and SDKs, with an overview of Cognito identity and synchronization, Mobile Analytics, S3 Transfer Manager, DynamoDB Object Mapper, Kinesis Connector.

TRANSCRIPT

Page 1: Building Cloud-Powered Mobile Apps

Building Cloud-powered Mobile AppsDanilo Poccia, Technical Evangelist

October 15th, 2014

Page 2: Building Cloud-Powered Mobile Apps

#AWSUGHungary@danilop

Page 3: Building Cloud-Powered Mobile Apps

EnterpriseApplications

Virtual Desktops

Collaboration and Sharing

PlatformServices

Databases

Caching

Relational

No SQL

Analytics

Hadoop

Real-time

Data Workflows

Data Warehouse

App Services

Queuing

Orchestration

App Streaming

Transcoding

Email

Search

Deployment & Management

Containers

Dev/ops Tools

Resource Templates

Usage Tracking

Monitoring and Logs

Mobile Services

Identity

Sync

Mobile Analytics

Notifications

FoundationServices

Compute(VMs, Auto-scaling and Load Balancing)

Storage(Object, Block and Archive)

Security & Access Control

Networking

Infrastructure Regions CDN and Points of PresenceAvailability Zones

AWS Overview

Page 4: Building Cloud-Powered Mobile Apps

RegionsUS-WEST (N. California)

EU-WEST (Ireland)

ASIA PAC (Tokyo)

ASIA PAC (Singapore)

US-WEST (Oregon)

SOUTH AMERICA (Sao Paulo)

US-EAST (Virginia)

GOV CLOUD

ASIA PAC (Sydney)

CHINA

AWS Global Infrastructure

Page 5: Building Cloud-Powered Mobile Apps

Availability Zones

AWS Global Infrastructure

Page 6: Building Cloud-Powered Mobile Apps

Edge Locations

Dallas(2)

St.Louis

Miami

JacksonvilleLos Angeles (2)

Palo Alto

Seattle

Ashburn(3)

NewarkNew York (3)

Dublin

London(2)

Amsterdam (3)Stockholm

Frankfurt(3)Paris(2)

Singapore (2)

Hong Kong (2)

Tokyo (2)

Sao Paulo

South Bend

San Jose

Milan

Sydney

Madrid

Seoul

Mumbai

Chennai

Atlanta

Hayward

Rio de Janeiro

Marseille

Warsaw

Osaka

Manila

Taipei

Melbourne

AWS Global Infrastructure

Page 7: Building Cloud-Powered Mobile Apps

AWS Console

AWS Console

Self-service

On demand

Pay as you go

API-based

SDKs

CLI Tools

Page 8: Building Cloud-Powered Mobile Apps

How to build a mobile app today?

Page 9: Building Cloud-Powered Mobile Apps

Authenticate users

Authorize access

Analyze User Behavior

Store and share media

Synchronize data

Deliver media

Store shared data

Stream real-time dataTrack Retention

Send push notifications

Manage users and identity providers

Securely access cloud resources

Sync user prefs across devices

Track active users, engagement

Manage funnels, Campaign performances

Store user-generated photosMedia and share them

Automatically detect mobile devicesDeliver content quickly globally

Bring users back to your app by sendingmessages reliably

Store and query fast NoSQL dataacross users and devices

Collect real-time clickstream logs and take actions quickly

Your Mobile

App

Page 10: Building Cloud-Powered Mobile Apps

Introducing AWS Mobile Services

Amazon Cognito Amazon Mobile AnalyticsAmazon SNS Mobile Push

Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector

AWS Global Infrastructure (10 Regions, Availability Zones, 51 Edge Locations)

Core Building Block Services

Mobile Optimized Connectors

Mobile Optimized Services

Your Mobile App, Game or Device App

AWS Mobile SDK, API Endpoints, Management Console

Compute Storage Networking Analytics Databases

Integrated SDK

Page 11: Building Cloud-Powered Mobile Apps

Cross-platform, Optimized for Mobile

Amazon Cognito Amazon Mobile AnalyticsAmazon SNS Mobile Push

Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector

User identity & data synchronizationservice

Store any NoSQL data and also map mobile OS specific objects to DynamoDB tables

Fast cross-platformAnalytics & reportingService

Powerful Cross-platformPush notification service

Recorder that can handle intermittent network connection

Easily upload, download to S3 and also pause, resume, and cancel these operations

Send email reliably from device

Access distributed buffering and queuing service

Page 12: Building Cloud-Powered Mobile Apps

Fully Integrated AWS Mobile SDK• Common authentication mechanism across

all services

• Automatically handle intermittent network connections

• Cross-platform Support:Android, iOS, Fire OS, Xamarin

• Native SDKs optimized for Mobile OS, for example, uses the local offline caching architecture

• Reduced memory footprint; Pick and choose the service jars you need

Page 13: Building Cloud-Powered Mobile Apps

Authenticate users

Authorize access

Analyze User Behavior

Store and share media

Synchronize data

Deliver media

Store shared data

Stream real-time dataTrack Retention

Send push notifications

Manage users and identity providers

Securely access cloud resources

Sync user prefs across devices

Track active users, engagement

Manage funnels, Campaign performances

Store user-generated photosMedia and share them

Automatically detect mobile devicesDeliver content quickly globally

Bring users back to your app by sendingmessages reliably

Store and query fast NoSQL dataacross users and devices

Collect real-time clickstream logs and take actions quickly

Your Mobile

App

Page 14: Building Cloud-Powered Mobile Apps

Authenticate users

Authorize access

Analyze User Behavior

Store and share media

Synchronize data

AWS Mobile SDK

Amazon Mobile Analytics

Deliver media

Amazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Amazon S3Transfer Manager

Amazon CloudFront(Device Detection)

Store shared dataAmazon DynamoDB(Object Mapper)

Stream real-time dataAmazon Kinesis(Recorder)

Track RetentionAmazon Mobile Analytics

Send push notificationsAmazon SNS Mobile Push

Your Mobile

App

Page 15: Building Cloud-Powered Mobile Apps

Authenticate users: Amazon Cognito

Page 16: Building Cloud-Powered Mobile Apps

Amazon Cognito

Simplifies Identity and Access Management

Securely access all AWS services from

Mobile device

Cross-device and Cross-platform Sync

Implement security best practices

“Your App data is secure, available offline, and kept in sync between devices”

Synchronize user’s data across devices and

platforms

Manage users as unique identities across

identity providers

GuestDeveloper

AuthenticatedIdentities

Page 17: Building Cloud-Powered Mobile Apps

Identity Providers

UniqueIdentitiesJoe Anna Bob

Any DeviceAny Platform

Any AWS Service

Helps implement security best practicesSecurely access any AWS Service from mobile device. It simplifies the interaction with AWS Identity and Access Management

Support Multiple Login ProvidersEasily integrate with major login providers for authentication.

Unique Users vs. DevicesManage unique identities. Automatically recognize unique user across devices and platforms.

Amazon Cognito Identity

Mobile Analytics

S3 DynamoDB Kinesis

DeveloperAuthenticated

Identities

Page 18: Building Cloud-Powered Mobile Apps

Amazon Cognito for Unauthenticated Identities

Unique Identifier for Your “Things”“Headless” connected devices can also securely access cloud services.

Save Data to the CloudSave app and device data to the cloud and merge them after login

Guest User AccessSecurely access AWS resources and leverage app features without the need to create an account or logging in

VisitorPreferences

Cognito Store

Guest

EC2 S3 DynamoDBKinesis

Page 19: Building Cloud-Powered Mobile Apps

Getting Started with Cognito in 3 steps

Sign up for AWS Account and login to AWS Management Console

Download and integrate the Mobile SDK and store and sync user data in a dataset

Create identitypool for authenticated and unauthenticated users in the AWS Console

Page 20: Building Cloud-Powered Mobile Apps

Demo: Amazon Cognito Console

Page 21: Building Cloud-Powered Mobile Apps
Page 22: Building Cloud-Powered Mobile Apps
Page 23: Building Cloud-Powered Mobile Apps
Page 24: Building Cloud-Powered Mobile Apps
Page 25: Building Cloud-Powered Mobile Apps
Page 26: Building Cloud-Powered Mobile Apps

Amazon Cognito Security

Set granular access permissions on AWS resourcesGet fine-grained access control to cloud resources.

Safeguard AWS CredentialsNo need to embed credentials in the app anymore. Get least-privileged temporary credentials.

Helps implement security best practicesSecurely access any AWS Service. It simplifies the interaction with Security Token Service and removes the need of Token Vending Machine

EC2 S3 DynamoDB Kinesis

Page 27: Building Cloud-Powered Mobile Apps

Amazon Cognito Security Architecture

User ID(Temp

Credentials)

DynamoDB

End Users

Developer

App w/SDKAccessto AWS

Services

Cognito Identity Broker

Login OAUTH/OpenIDAccess Token

Cognito ID, Temp

Credentials

S3

Mobile Analytics

Cognito Sync Store

AWS Management

Console

Access TokenPool ID

Role ARNs

DeveloperAuthenticated

Identities

Page 28: Building Cloud-Powered Mobile Apps

Authorize access: Amazon Cognito + AWS IAM+ Fine-grained access control

Page 29: Building Cloud-Powered Mobile Apps

Amazon Cognito (Identity Broker)

Identitypool

Identity Providers

Pool of identities that share the same trust policy

Access Policy

Access to AWS

Servicesidentitypool

Unauthenticated Identities

authenticated identities

AWS IAM Roles

AWS Account

Web Identity Federation

S3

DynamoDB

Get Delete Put

DeveloperAuthenticated

Identities

Page 30: Building Cloud-Powered Mobile Apps

Access Policy for the IAM Role{ "Effect":"Allow", "Action":["s3:*"], "Resource":"*"} { "Effect": ”Deny", "Action": ["dynamodb:*"], "Resource": "*"}

{ "Effect": "Allow", "Action": [”cognito-sync:*"], "Resource": "*"}

AllowActions:

All S3, Sync store Operations

Resource:All resources within these services

DenyActions:

All DDB Operations

Resource:All resources

Page 31: Building Cloud-Powered Mobile Apps

Access Policy Restriction{ "Effect":"Allow", "Action":["s3:PutObject","s3:GetObject","s3:DeleteObject",

"s3:ListMultipartUploadParts","s3:AbortMultipartUpload"], "Resource":"arn:aws:s3:::BUCKET_NAME/*"} { "Effect":"Allow", "Action":["s3:ListBucket","s3:ListBucketMultipartUploads"], "Resource":"arn:aws:s3:::BUCKET_NAME"}{ "Effect": "Allow", "Action": ["dynamodb:GetItem", "dynamodb:Query", "dynamodb:PutItem"], "Resource" : [ "arn:aws:dynamodb:REGION:123456789:table/TABLE_NAME",

"arn:aws:dynamodb:REGION:123456789:table/TABLE_NAME/index/INDEX_NAME" ]

}

AllowActions:

Certain operations

Resource:One bucket, table ..

Page 32: Building Cloud-Powered Mobile Apps

Access Policy Restriction

{ "Effect":"Allow”,"Action” ["s3:PutObject","s3:GetObject","s3:DeleteObject”,”s3:ListMultipartUploadParts","s3:AbortMultipartUpload"], "Resource":"arn:aws:s3:::BUCKET_NAME/Bob/*"} { "Effect":"Allow", "Action":"s3:ListBucket", "Resource":"arn:aws:s3:::BUCKET_NAME", "Condition":{"StringLike":{"s3:prefix":”Bob/"}}}{ "Effect":"Allow", "Action":["s3:ListBucketMultipartUploads"], "Resource":"arn:aws:s3:::BUCKET_NAME"}

AllowActions:

Certain operations

Resource:Within a bucket with specific prefix (user)

Page 33: Building Cloud-Powered Mobile Apps

Access Policy Restriction (Policy Variables)

AllowActions:

All sync operations

Resource:Only to that identity

{"Effect": "Allow”,"Action": ["s3:GetObject”,"s3:PutObject”],"Resource": ["arn:aws:s3:::

myBucket/amazon/snakegame/${cognito-identity.amazonaws.com:sub}"]

}

{"Effect":"Allow","Action":"cognito-sync:*", "Resource":["arn:aws:cognito-sync:us-east-1: 123456789012:identitypool/

${cognito-identity.amazonaws.com:aud}/identity/

${cognito-identity.amazonaws.com:sub}/*"] }

AllowActions:

S3 Get/Put operations

Resource:Only to a specific part of bucket to that identity

Page 34: Building Cloud-Powered Mobile Apps

Synchronize data across devices : Amazon Cognito (Sync)

Page 35: Building Cloud-Powered Mobile Apps

What have customers told us about“Synchronized Profile”

People have multiple devices and want to transition between devices. Implementing a user profile that syncs across devices, OS, apps is hard. It not only has to work when offline, but easy to integrate with existing apps.

Page 36: Building Cloud-Powered Mobile Apps

Amazon Cognito Sync

User Data Storage andSync

Any Platform

iOS/Android/FireOS

Store App Data, Preferences and StateSave app and device data to the cloud and merge them after login

Cross-device Cross-OS Sync Sync user data and preferences across devices with one line of code

Work OfflineData always stored in local SQLite DB first. Works seamlessly when intermittent or no connectivity

k/v data

Identity pool

Page 37: Building Cloud-Powered Mobile Apps

Amazon Cognito SyncOffline: The client SDK manages a local SQLite data store to allow the app to work even when connectivity is not available.

Fast: The methods to read and write data only interact with the local SQLite database.

Intelligent Sync: The sync method compares the local version of the data to the cloud sync store, pushes up deltas and pulls down new changes.

Flexible Conflict resolution: The sync method first reads the changes then writes its local changes to the cloud sync store By default Cognito assumes that the last write wins. Developers can override and implement their own conflict resolution programmatically

Local SQLite Cache

Page 38: Building Cloud-Powered Mobile Apps

Amazon Cognito Sync Data ModelAWS

Account

Identitypool

Dataset

Pool of identities that share the same trust policy

IdentityIdentityIdentity

DatasetDataset

identitypool

Unique identifier across devices, get cached on local devicesas well as saved in the cloud

1:n

1:n

1:n

Dataset synchronized acrossdevices by simply calling dataset.synchronize() method

DatasetDatasetKey/Value

1:n

Key-value and sync count

Page 39: Building Cloud-Powered Mobile Apps

Amazon Cognito Sync Data Model - ExampleAWS

Account

Identitypool

Dataset

IdentityIdentityIdentity

DatasetDataset

identitypool

1:n

1:n

1:n

Userpreferences

Developer has two apps: a game and a productivity app

Game state

Identitypool1

Productivity App

GameApp

DatasetDatasetKey/Value

1:n

Page 40: Building Cloud-Powered Mobile Apps

Integrating Cognito Sync functionality is very simple

Initialize the CredentialsProvider and CognitoClient

Call synchronize on the dataset

Create or open Dataset and Add Key Values

provider = new CognitoCredentialsProvider(context, AWS_ACCOUNT_ID, COGNITO_POOL_ID,

COGNTIO_ROLE_UNAUTH, COGNITO_ROLE_AUTH);

cognito = new DefaultCognitoSyncClient(context, COGNITO_POOL_ID, provider);

dataset.synchronize(new SyncCallback(){..});

cognito.openOrCreateDataset(datasetName);dataset.put(key, value);

Page 41: Building Cloud-Powered Mobile Apps

Integrating Cognito Sync functionality is very simple

Initialize the AWSCognitoSyncClient

Call synchronize on the dataset

Create or open Dataset and Add Key Values

DataSet *dataset = [syncClient openOrCreateDataSet:@"myDataSet"];NSString *value = [dataset readStringForKey:@"myKey"];[dataset putString:@"my value" forKey:@"myKey"];

AWSCognitoSyncClient *syncClient = [[AWSCognitoSyncClient alloc] initWithConfiguration: configuration];

[dataset synchronize];

iOS

Page 42: Building Cloud-Powered Mobile Apps

Analyze User Behavior

Store and share media

Deliver media

Store shared data

Stream real-time dataTrack Retention

Send push notifications

Track active users, engagement

Manage funnels, Campaign performances

Store user-generated photosMedia and share them

Automatically detect mobile devicesDeliver content quickly globally

Bring users back to your app by sendingmessages reliably

Store and query fast NoSQL dataacross users and devices

Collect real-time clickstream logs and take actions quickly

Your Mobile

App

Authenticate users

Authorize access

Synchronize dataAmazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Page 43: Building Cloud-Powered Mobile Apps

Analyze User Behavior: Amazon Mobile Analytics

Page 44: Building Cloud-Powered Mobile Apps
Page 45: Building Cloud-Powered Mobile Apps

User Analytics (and Cloud Computing) among top 10 most popular tools

Successful developers use more tools

Developer EconomicsState of the Developer Nation Q3 2014© VisionMobile

Page 46: Building Cloud-Powered Mobile Apps

What Customers Told Us About “Mobile Analytics”

Developers deeply value user analytics and consider it an integral part of their app development process. They want to monitor their most important metrics in a timely manner, and take action quickly. They would like to own their mobile data, just like they do with any other AWS service.

Page 47: Building Cloud-Powered Mobile Apps

Amazon Mobile Analytics

Scalable and Generous Free Tier

Focus on metrics that matter. Usage reports

available within 60 minutes of receiving data

from an app

Fast

Scale to billions of events per day from

millions of users.

Own Your Data

“Easily collect, visualize and understand your app usage data at scale”

Data collected are not shared, aggregated, or

reused

Page 48: Building Cloud-Powered Mobile Apps

Getting Started with Mobile Analytics in 3 steps

Sign up for AWS Account and create or use existing Cognito ID in the AWS Management Console

View engagement and session activity reports in the AWS Management console within minutes

Download and integrate the Mobile SDK with one line of code (Android/FireOS, iOS)

Page 49: Building Cloud-Powered Mobile Apps
Page 50: Building Cloud-Powered Mobile Apps

Key Business Metrics (with one line of code) 1. Monthly Active Users

(MAU) 2. Daily Active Users

(DAU) 3. New Users, 4. Daily Sessions, 5. Sticky Factor, 6. 1-Day Retention, 7. Avg. Revenue per DAU, 8. Daily Paying Users,9. Avg. Paying DAU

Page 51: Building Cloud-Powered Mobile Apps

Track Retention

User retention is a key indicator to judge the outcome of a marketing campaign, new feature introduction, UX changes, app updates, etc.

Mobile Analytics provide four charts to track daily or weekly rate of returning users, after first use of the app

Page 52: Building Cloud-Powered Mobile Apps

Get behavioral insights into app specific actions that your users take

Reports provide a view of how often custom events occur. You can add further context with Attributes and Metrics, to each custom event

Examples

Track the number of Likes/Shares, per article, in a news app

Understand player abort rates per level, in a game

Number of songs played, per user session, in a music app

In-app item popularity in a shopping app

Track Custom Events

Page 53: Building Cloud-Powered Mobile Apps

Integrating Mobile Analytics is super simple

Initialize the AmazonMobileAnalyticsClient. That’s it! Get Session Activity in the AWS Management Console.

For Custom Events activity reports, add events.

Add OnResume() and OnPause()

analytics = new AmazonMobileAnalytics(provider, context, "SnakeGameAWS”);

EventClient eventClient = analytics.getEventClient();MobileAnalyticsEvent visitEvent = eventClient.createEvent("speedSet");eventClient.recordEvent(visitEvent);

analytics.getSessionClient().resumeSession();analytics.getSessionClient().pauseSession();Analytics.getEventClient().submitEvents();

Page 54: Building Cloud-Powered Mobile Apps

Integrating Mobile Analytics is super simple

Initialize the AmazonMobileAnalytics object. That’s it! Get Session Activity in the AWS Management Console.

Submit the event. If we don't call submitEvents, events will automatically be submitted at periodic intervals.

Create add Custom Events

[eventClient submitEvents];

id<AWSMobileAnalyticsEventClient> eventClient = analytics.eventClient;id<AWSMobileAnalyticsEvent> level1Event = [eventClient createEventWithEventType:@"level1Complete"];

AWSMobileAnalytics* analytics = [AWSMobileAnalytics defaultAWSMobileAnalyticsWithIdentifier:@"someuniqueid"];

iOS

Page 55: Building Cloud-Powered Mobile Apps

Store and share media

Deliver media

Store shared data

Stream real-time data

Send push notifications

Store user-generated photosMedia and share them

Automatically detect mobile devicesDeliver content quickly globally

Bring users back to your app by sendingmessages reliably

Store and query fast NoSQL dataacross users and devices

Collect real-time clickstream logs and take actions quickly

Your Mobile

App

Authenticate users

Authorize access

Analyze User Behavior

Synchronize data

Amazon Mobile Analytics

Amazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Track RetentionAmazon Mobile Analytics

Page 56: Building Cloud-Powered Mobile Apps

Store and share media: Amazon S3

Page 57: Building Cloud-Powered Mobile Apps

Amazon S3 Connector: Transfer Manager

S3 Connector

Multipart upload media (photos, videos, audio)Fault tolerant download (e.g. assets)No backend requiredAutomatic retriesPause, resume, cancel functionsOptimized for native OS

Page 58: Building Cloud-Powered Mobile Apps

// Creating the transfer manager

self.transferManager = [S3TransferManager new];

self.transferManager.s3 = s3client;

// Upload image

[self.transferManager uploadFile:fileName bucket:bucketName key:objectName];

// Download image

[self.transferManager downloadFile:fileName bucket:bucketName key:objectName];

// Pause, Resume, Cancel

[self.transferManager pauseAllTransfers];

[self.transferManager resumeAllTransfers];

[self.transferManager cancelAllTransfers];

Amazon S3 Connector: Transfer Manager

Page 59: Building Cloud-Powered Mobile Apps

Store shared data

Stream real-time data

Send push notificationsBring users back to your app by sendingmessages reliably

Store and query fast NoSQL dataacross users and devices

Collect real-time clickstream logs and take actions quickly

Your Mobile

App

Authenticate users

Authorize access

Analyze User Behavior

Synchronize data

Amazon Mobile Analytics

Amazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Track RetentionAmazon Mobile Analytics

Store and share media

Deliver media

Amazon S3Transfer Manager

Amazon CloudFront(Device Detection)

Page 60: Building Cloud-Powered Mobile Apps

Authenticate users

Authorize access

Analyze User Behavior

Store and share media

Synchronize data

AWS Mobile SDK

Amazon Mobile Analytics

Deliver media

Amazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Amazon S3Transfer Manager

Amazon CloudFront(Device Detection)

Store shared dataAmazon DynamoDB(Object Mapper)

Stream real-time dataAmazon Kinesis(Recorder)

Track RetentionAmazon Mobile Analytics

Send push notificationsAmazon SNS Mobile Push

Your Mobile

App

Page 61: Building Cloud-Powered Mobile Apps

Send Push Notifications: Amazon SNS Mobile Push

Page 62: Building Cloud-Powered Mobile Apps

What Customers Told Us About “Push Notifications”

Sending large-scale push notifications, cross-platform is still hard.

Developers want to be able to reach their customers globally and across all devices.

Page 63: Building Cloud-Powered Mobile Apps

Each platform works differently, and push gets even more complex as you scale to support millions of devices.

Cloud App

Platform Services Mobile Apps

Page 64: Building Cloud-Powered Mobile Apps

Amazon SNSCross-

platform Mobile Push

Internet

Apple APNS

Google GCM

Amazon ADM

Windows WNS and MPNS

Baidu CP

Industry’s First!

New!

With Amazon SNS, developers can send push notifications on multiple platforms and reach mobile users around the world

New features:

Message Expiry Time

Message Attributes

Amazon SNS Mobile Push

Android Phones and Tablets

Apple iPhones and iPads

Kindle Fire Devices

Android Phones and Tablets in China

iOS

Windows Desktop and Windows Phone Devices

Page 65: Building Cloud-Powered Mobile Apps

Developers Love Cross-Platform Features of SNS

Fast reliable notification for every Email received is powered by SNS

Customers love high scale and Reliability of SNS

High-profile Startupstrust SNS for their high-profile launches

Secret.ly

Advanced targeted notificationsbring players back intothe game

Mature games increaseretention using SNS

Launched its AndroidApp with SNS, noprovisioning required

Jetpack Joyride

Fruit ninja

Page 66: Building Cloud-Powered Mobile Apps

Store shared data

Stream real-time data

Send push notificationsBring users back to your app by sendingmessages reliably

Store and query fast NoSQL dataacross users and devices

Collect real-time clickstream logs and take actions quickly

Your Mobile

App

Authenticate users

Authorize access

Analyze User Behavior

Synchronize data

Amazon Mobile Analytics

Amazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Track RetentionAmazon Mobile Analytics

Store and share media

Deliver media

Amazon S3Transfer Manager

Amazon CloudFront(Device Detection)

Page 67: Building Cloud-Powered Mobile Apps

Authenticate users

Authorize access

Analyze User Behavior

Store and share media

Synchronize data

AWS Mobile SDK

Amazon Mobile Analytics

Deliver media

Amazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Amazon S3Transfer Manager

Amazon CloudFront(Device Detection)

Store shared dataAmazon DynamoDB(Object Mapper)

Stream real-time dataAmazon Kinesis(Recorder)

Track RetentionAmazon Mobile Analytics

Send push notificationsAmazon SNS Mobile Push

Your Mobile

App

Page 68: Building Cloud-Powered Mobile Apps

Collect real-time click-stream data:Amazon Kinesis Mobile Connector

Page 69: Building Cloud-Powered Mobile Apps

Amazon Kinesis

RedshiftS3Kinesis enabled Apps on EC2

AWS Mobile SDK

Amazon Kinesis Connector for Mobile Apps

For sophisticatedUser Behavior

Analysis

Integrated AWS Mobile SDK

Generic batching system that handles intermittent network connection and also optimize

battery utilization

Page 70: Building Cloud-Powered Mobile Apps

Summary

Page 71: Building Cloud-Powered Mobile Apps

Authenticate users

Authorize access

Analyze User Behavior

Store and share media

Synchronize data

Deliver media

Store shared data

Stream real-time dataTrack Retention

Send push notifications

Manage users and identity providers

Securely access cloud resources

Sync user prefs across devices

Track active users, engagement

Manage funnels, Campaign performances

Store user-generated photosMedia and share them

Automatically detect mobile devicesDeliver content quickly globally

Bring users back to your app by sendingmessages reliably

Store and query fast NoSQL dataacross users and devices

Collect real-time clickstream logs and take actions quickly

Your Mobile

App

Page 72: Building Cloud-Powered Mobile Apps

Authenticate users

Authorize access

Analyze User Behavior

Store and share media

Synchronize data

AWS Mobile SDK

Amazon Mobile Analytics

Deliver media

Amazon Cognito (Sync)

AWS Identity and Access Management

Amazon Cognito(Identity Broker)

Amazon S3Transfer Manager

Amazon CloudFront(Device Detection)

Store shared dataAmazon DynamoDB(Object Mapper)

Stream real-time dataAmazon Kinesis(Recorder)

Track RetentionAmazon Mobile Analytics

Send push notificationsAmazon SNS Mobile Push

Your Mobile

App

Page 73: Building Cloud-Powered Mobile Apps

Key Takeaways

Amazon Cognito Amazon Mobile AnalyticsAmazon SNS Mobile Push

Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector

AWS Global Infrastructure (10 Regions, Availability Zones, 51 Edge Locations)

Core Building Block Services

Mobile Optimized Connectors

Mobile Optimized Services

Your Mobile App, Game or Device App

AWS Mobile SDK, API Endpoints, Management Console

Compute Storage Networking Analytics Databases

Integrated SDK

Page 74: Building Cloud-Powered Mobile Apps

Key Takeaways

Amazon Cognito Amazon Mobile AnalyticsAmazon SNS Mobile Push

Kinesis Connector DynamoDB Connector S3 Connector SQS ConnectorSES Connector

AWS Global Infrastructure (10 Regions, Availability Zones, 51 Edge Locations)

Core Building Block Services

Mobile Optimized Connectors

Mobile Optimized Services

Your Mobile App, Game or Device App

AWS Mobile SDK, API Endpoints, Management Console

Compute Storage Networking Analytics Databases

Integrated SDK

Cross Platform and Optimized

for Mobile

FlexibilityAnd Freedom

of Choice

Fully integratedand easy to get

started

Page 75: Building Cloud-Powered Mobile Apps

Amazon Cognito Amazon Mobile Analytics

Amazon SNS Mobile Push

Free Tier:1 Million push messages every month

Free Tier (for first 12 months):1 Million syncs/month + 10GB of storage for Amazon Cognito

Free Tier:100 Million events every month

Get Started for Free!

Page 76: Building Cloud-Powered Mobile Apps

Simple and predictable pay as you go pricing

Amazon Cognito Amazon Mobile Analytics

Amazon SNS Mobile Push

Free Tier:1 Million push messages every month

Thereafter:$0.50 for Million notifications delivered$0.50 for Million requests

Free Tier (for first 12 months):1 Million syncs/month + 10GB of storage for Amazon Cognito

Thereafter:$0.15 for 10K Syncs$0.15 per GB for storage

Free Tier:100 Million events every month

Thereafter:$1.00 per Million events

Page 77: Building Cloud-Powered Mobile Apps

Thank You!

#AWSUGHungary@danilop