Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Un backend: pour tous vos objets connectés

1.385 visualizaciones

Publicado el

Après-midi - Track 2 - S1 - Un backend pour tous vos objets connectés

Cette session vous a plû ? Si c'est le cas, n'hésitez pas à vous inscrire à notre Summit !

Publicado en: Tecnología
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

Un backend: pour tous vos objets connectés

  1. 1. Un backend pour tous vos objets connectés Michael Garcia – Architecte Solutions – mlgarcia@amazon.fr @aws_actus
  2. 2. Source: reservoir.jobs / festivalmawazine
  3. 3. Source: tlciscreatice.com / activate.com
  4. 4. Source: engagor.com
  5. 5. We asked two questions to our mobile customers: What makes your mobile apps unique? Where are you spending most of your time?
  6. 6. We asked two questions to our mobile customers: What makes your mobile apps unique? Where are you spending most of your time?
  7. 7. How to build a mobile app today?
  8. 8. Your Mobile App
  9. 9. Your Mobile App AWS Mobile SDK
  10. 10. Your Mobile App Authenticate users Amazon Cognito (Identity Broker) AWS Mobile SDK
  11. 11. Your Mobile App Authenticate users Synchronize data Amazon Cognito (Sync) Amazon Cognito (Identity Broker) AWS Mobile SDK
  12. 12. Your Mobile App Authenticate users Analyze User Behavior Synchronize data Amazon Mobile Analytics Amazon Cognito (Sync) Amazon Cognito (Identity Broker) AWS Mobile SDK
  13. 13. Your Mobile App Authenticate users Analyze User Behavior Synchronize data Amazon Mobile Analytics Amazon Cognito (Sync) Amazon Cognito (Identity Broker) AWS Mobile SDK Send push notifications Amazon SNS Mobile Push
  14. 14. Your Mobile App Authenticate users Authorize access Analyze User Behavior Synchronize data Amazon Mobile Analytics Amazon Cognito (Sync) Amazon Cognito (Identity Broker) AWS Identity and Access Management Store shared data Amazon DynamoDB (Object Mapper) Store and share media Deliver media Amazon S3 Transfer Manager Amazon CloudFront (Device Detection) Event driven compute AWS Lambda AWS Mobile SDK Send push notifications Amazon SNS Mobile Push
  15. 15. Improve mobile apps retention with Amazon Simple Notification Service Emmanuel Lemoine CTO & Founder @ Pretty Fun Therapy
  16. 16. Pretty Fun Therapy • We do ”Mobile Social Discovery” – To bring people together through casual apps – Because meeting people should be fun
  17. 17. Playme! Dating + Gaming • Release: May 15, 2014 • Platform: iOS and Android • Audience: 6k DAU Filter Browse Play Engage
  18. 18. What is Amazon Simple Notification Service? • Notification service (HTTP/S, Email, SQS, Mobile Push) • Cross platform for Mobile Push – Android / iOS / Windows / Baidu / FireOS • Cross platform “Native Push“ handler
  19. 19. Why do we use it? • “Social app” means “users engagement” Without SNS: Hey, how are you? DynamoDB
  20. 20. Why do we use it? • “Social app” means “users engagement” With SNS: Hey, how are you? DynamoDB SNS Fine, what about u? Rentention booster UX enhancer
  21. 21. What does SNS do for us? • PFT uses SNS for Native Push purpose • SNS acts as an intermediate between our App and providers’ Native Push System (Only one integration to build) • SNS is also like a database of our users’ device identifier Cross platform devices Register SNS UserId: 1 DeviceToken: ecaffa86334b6885359… Platform: APNS UserId: 2 DeviceToken: APA91bHpUYDrDRlNA… Platform: GCM UserId: 1 DeviceToken: addcea86334b6885359… Platform: APNS
  22. 22. What does SNS do for us? • PFT uses SNS for Native Push purpose • SNS acts as an intermediate between our App and providers’ Native Push System (Only one integration to build) • SNS is also like a database of our users’ device identifier "SNS rocks!" Android? iOS? GCM APNS
  23. 23. Multiple platforms, one syntax : @sns.pulish(params)
  24. 24. MyCrazyTopic Android subscribers SNS Topics • Call once, deliver to thousands @sns.pulish(topic_arn: ‘MyCrazyTopic’) GCM APNS MyCrazyTopic iOS subscribers
  25. 25. Pricing ? Amazon SNS Mobile Push Free Tier: 1 Million push messages every month 15 GB for all free tier services
  26. 26. What did we gain using SNS ? Low Cost +20% day 1 user retention Building the app faster with less maintenance
  27. 27. Your Mobile App Authenticate users Analyze User Behavior Synchronize data Amazon Mobile Analytics Amazon Cognito (Sync) Amazon Cognito (Identity Broker) AWS Mobile SDK Send push notifications Amazon SNS Mobile Push
  28. 28. Amazon Cognito Authentication
  29. 29. Amazon Cognito Cross-device and Cross-platform Sync Securely access all AWS services from Mobile device Simplifies Identity and Access Management 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 Guest Your own Auth
  30. 30. Amazon Cognito Security EC2 S3 DynamoDB Kinesis
  31. 31. Amazon Cognito Security Architecture End Users App with AWS Mobile SDK Access to AWS Services Login OAUTH/OpenID Access Token Cognito ID, Temp Credentials Access Token Pool ID Role ARNs Cognito ID (Temp Credentials) DynamoDB Cognito Identity Broker S3 Mobile Analytics Cognito Sync Store
  32. 32. Identity Providers Unique IdentitiesJoe Anna Bob Any Device Any Platform Amazon Cognito Identity
  33. 33. Amazon Cognito for Unauthenticated Identities Visitor Preferences Cognito Store Guest S3 DynamoDB Kinesis
  34. 34. Users begin their life as guests Amazon Cognito for Unauthenticated Identities
  35. 35. Later on they register an account • The transition should be seamless Amazon Cognito for Unauthenticated Identities
  36. 36. Multiple accounts can be linked • You should have a consistent identifier Amazon Cognito for Unauthenticated Identities
  37. 37. Amazon Cognito Sync
  38. 38. Amazon Cognito Sync
  39. 39. Amazon Cognito Sync
  40. 40. Amazon Cognito Sync AWS SDK Local SQLite Cache iOS/Android/FireOS/any platform (AWS SDK)
  41. 41. Concrete Software builds cross platform mobile games With Amazon Cognito, We can build games much faster and provide great user experience to our customers. Keith A. Pichelman CEO, Concrete Software ” “ • Provide a seamless user experience across devices and platforms to our users. • Store save games in the cloud and synchronize them across all of a user’s devices without creating or hosting a backend. The Challenge The solution • Amazon Cognito helps us securely access our AWS resources. • Cognito Sync gives us flexibility to save data in the cloud, and cache it on a user’s devices, without managing any backend infrastructure.
  42. 42. Integrating Cognito Sync functionality is fast Initialize the CredentialsProvider and CognitoClient Call synchronize on the dataset Create or open Dataset and Add Key Values provider = new CognitoCachingCredentialsProvider (context, AWS_ACCOUNT_ID, COGNITO_POOL_ID, COGNTIO_ROLE_UNAUTH, COGNITO_ROLE_AUTH, Regions.US_EAST_1); cognito = new CognitoSyncManager (context, Regions.US_EAST_1, provider); dataset.synchronize(new SyncCallback(){..}); cognito.openOrCreateDataset(datasetName); dataset.put(key, value);
  43. 43. Integrating Cognito Sync functionality is fast 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
  44. 44. Analyze User Behavior: Amazon Mobile Analytics
  45. 45. 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.
  46. 46. 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
  47. 47. Specific metrics related to your app and your business 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 Active users / Sessions / Revenue / Retention Track Behavior Events
  48. 48. Integrating Mobile Analytics is fast Initialize the MobileAnalyticsManager. That’s it! Get Session Activity in the AWS Management Console. For Custom Events activity reports, add events. Add OnResume() and OnPause() private static MobileAnalyticsManager analytics; analytics = MobileAnalyticsManager.getOrCreateInstance( this.getApplicationContext(),"yourCompany.yourAppId", Regions.YOUR_REGION, config, cognitoProvider ); EventClient eventClient = analytics.getEventClient(); MobileAnalyticsEvent visitEvent = eventClient.createEvent("speedSet"); eventClient.recordEvent(visitEvent); analytics.getSessionClient().resumeSession(); analytics.getSessionClient().pauseSession(); Analytics.getEventClient().submitEvents();
  49. 49. Integrating Mobile Analytics is fast Initialize the AWSMobileAnalytics 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
  50. 50. Demo: Amazon Mobile Analytics
  51. 51. Beyond mobile analytics mobile client Amazon S3 Amazon RedshiftAmazon Mobile Analytics Analytic tool
  52. 52. 53 FORZA FOOTBALLSINCE 2012
  53. 53. BY TABLEAU VISUALIZATIONS
  54. 54. PENETRATION USERS PER COUNTRY 55
  55. 55. LEVERAGE ON MISSION VOTE PER COUNTRY 56
  56. 56. DEVICES IN FORZA FOOTBALL 57
  57. 57. Amazon Cognito Amazon Mobile Analytics Amazon SNS Mobile Push Free Tier: 1 Million push messages every month Free Tier: 1 Million syncs/month + 10GB of storage for Amazon Cognito Free Tier: 100 Million events every month Get Started for Free! http://aws.amazon.com/mobile
  58. 58. AWS Mobile SDK Your Mobile App serverless backend
  59. 59. Thank you !! @aws_actus
  60. 60. Inscrivez-vous gratuitement à l’adresse : aws.amazon.com/summits/paris

×