SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Arjun Cholkar, AWS Principal Product Manager
Asha Chakrabarty, AWS Solutions Architect
Fabricio Pettena, COO LATAM, Rocket Internet
Eddie Dingels, Director of Architecture, Earth Networks
October 2015
MBL307
Scalable Messaging Architectures
How Mobile Businesses and Enterprises Use Amazon SNS to Power Their
Messaging Needs
Amazon Simple Notification Service
Fast, flexible, global messaging to any device or endpoint
Global and fast at
high scale
Send billions of
messages per day with
minimal latencies across
the world.
Send messages to any
device or endpoint
Send notifications
through mobile push,
email, HTTP or SMS, or
messages to Amazon
SQS or AWS Lambda.
Support for multiple
platforms or frameworks
Use Java, Python,
PHP, Node.js,
Objective-C, or .NET
Used by thousands of mobile apps and enterprises
One API - Multiple destination types
Back-end
systems
(via AWS SDK)
End-user devices
(via AWS Mobile SDK)
“Direct Publish”
publish(msg,endpointARN)
APNSGCMADMWNS
Mobile push gateways
iOS
Android
FireOS
Windows
“Topic Publish”
publish(msg,topicArn)
Amazon SQS queues
HTTP destinations
SMS (US mobile numbers)
Email
AWS Lambda functions
@
100K Topics x 10Million Subs per Topic = 1Trillion Subs by Default
100K Topics
per account by
default
Publish messages in three simple steps
1 Create a platform application
pReq = CreatePlatformApplicationRequest(“Foo”,”APNS”)
pArn = sns.createPlatformApplication(pReq)
2 Create a platform endpoint
eReq = CreatePlatformEndpointRequest(pArn, <TOKEN>)
eArn = sns.createPlatformEndpoint(eReq)
3 Publish to the platform endpoint
pubReq = PublishRequest(eArn, “SNS Direct Publish”)
sns.publish(pubReq)
1 Create a topic
tReq = CreateTopicRequest(“Bar”)
tArn = sns.createTopic(tReq)
2 Create a subscription (or many)
sReq = SubscribeRequest(tArn,”sqs”,qArn)
sArn = sns.subscribe(sReq)
3 Publish to the topic
pubReq = PublishRequest(tArn, “Topic Publish”)
sns.publish(pubReq)
Direct Publish Topic Publish
How are our customers using SNS?
Engage users with intelligent push notifications
Analytics data
collection
Amazon Redshift
Marketing
App back endAmazon SNS
mobile push
Use analytics to target users with fine-grained push notifications
Easy Taxi
Fabricio Pettena, COO LATAM, Rocket Internet
TAXI
EASY Easy Taxi is one of the world’s most downloaded taxi apps.
Founded in June 2011 in Rio de Janeiro, Brazil, the service has
expanded to 30 countries and over 420 cities globally,
redefining the landscape of urban mobility.
① ride accepted
② taxi arrived
③ boarding
④ payment
⑤ rate the ride
SNS is part of
the ride workflow…
…and helps our CRM team
talk to millions of riders
and 400k+ drivers
 promo codes
 traffic alerts
 campaigns
 “care days”
 partner programs
In sync with riders and drivers via mobile push
SNS driving the ride workflow
SNS
Handles delivery
Mobile Clients
• Push + deep links
• Assures workflow
• Generates engagement
Main API
• Auto Scaling group
• 000’s of txns/sec
MongoDB
on EC2
PHP
Ride Workflow
Running
on EC2
• Drives each step on the taxi rides
• Sends pushes for key events
• “Taxi arrived,” “Ride paid,” etc.
SNS enabling CRM activities through mobile
push
Marketing
teamPHP-based
scheduling
app
Standard segmentation
• city/area
• driver or rider
Ad-hoc segmentation
• top riders, drivers
• drivers near a POI now
• …
Queue
• Beware of deep links
• Throttle at 6k/min
SNS
Handles delivery
Bigquery &
MongoDB
Mobile clients
Main API
…
per day
NUMBERS:
MESSAGES
1million+ 50+
per day
CAMPAIGNS
SNS in the wild
Breaking news through SNS
PHP-based
“push console”
Newsroom
editor
National
NSW
Amazon
SNS
iOS
audience
Android
audience
Amazon
Cognito
2
1
Key Flows
1 Guest authentication with
Amazon Cognito
2
2 App registers with appropriate topics
Amazon
CloudWatch
Amazon
Kinesis
SumoLogic
GCM
APNS
3
3 Editor pushes a story
4
4
4 Clients load and display push
5
5 Logs and metrics gathered to
dashboard
From print to digital to mobile media
Migrated to SNS And in 2 months …
72% growth in push
notification volumes
89% growth in app
installs
204% growth in ad
impressions
• Established in 1948 and has print sales of 1.3 million copies daily as of 2015.
• Launched digital offering in 2009 and currently gets 150 million page views per day.
Entered into mobile,
but ran into …
Scalability challenges
High latency
Font limitations
User management
issues
Device management
issues
GCM
APNS
Amazon SNS
News category
to token mapping
Punjab Kesari
Back end
Punjab Kesari subscriber
SNS fan-out for S3 event notifications
• Event-driven data processing
architecture
• Parallel processing of same data
source
• SNS notifies different subscribers of
the S3 data event notifications
• Each subscriber processes the data
independently
• Data is stored in a storage
component of choice
Task automation with SNS, Lambda
Input from CloudWatch alarms
• EC2 metrics: CPU, disk, network, health
• EBS metrics: read/write bytes/ops
• ELB metrics: HTTPCode
• S3 metrics: NumberObjects, BucketSize
• DynamoDB metrics: read/write capacity
• Custom metrics/alarms
Output functionality
• Launch instance/tasks/apps
• Provision tables/shards/storage
• External endpoints
Using SNS as a messaging bus
• Decouple your architecture using SNS
• Use SQS for reliable storage of messages for immediate
or delayed processing
Amazon SNS
SQS queue
SQS queue
SQS queue
Earth Networks
Eddie Dingels, Director of Architecture, Earth Networks
Company
Big data and IoT sensor networks
• World’s largest environmental sensor networks
• Extensive proprietary core sensor network & shared network sources
• Highest degree of environmental monitoring and prediction through
big data and algorithmic modeling
CoretechnologyApplications
Consumer
• Local/accurate
• Safety
• Online
• Mobile
• Television
• Public safety
• Forecasting
• Environmental
• National agencies
Enterprise Government
• Safety
• Forecasting
• Energy
• Aviation
• Commercial
Smart Home
Intelligence
• Consumer
engagement
• Energy efficiency
• Demand response
Earth Networks ESB
Need
Reliable notifications between
decoupled services and tiers
Solution
SNS + SQS = Simple ESB
SQS
queue
SQS
queue
SQS
queue
SNS Topic
Earth Networks ESB
Tiers
• Alerts
• Surface observations
N pub to M sub
• Allows processing of each message at
an individual subscriber or set of
subscribers
• If a subscriber fails, can leave the
message on the queue for pickup
SQS queue
SNS Topic
Earth Networks ESB – Observation ingest
SNS Topic
SQS queue
SQS queue
SQS queue
Instance - FTP
Instances - UDP
Instance - ETL
Data marts
Data warehouse
Quality control
DynamoDB
Amazon
Redshift
50 million+ ESB messages per day
Earth Networks ESB
Fan-out
• Slowly moving data domains/dimensions
• Mapping (GIS)
1 pub to M sub
• Allows consistent fan-out to M number of
subscribers
• Ensures that each subscriber is eventually
consistent
SQS queue
SNS Topic
SNS Topic
SQS queue
SQS queue
Data
processing tier
Earth Networks ESB – Mapping data pipeline
Mapping
instance
Mapping
instance
CloudFront
ELB
S3
SNS Topic -
radar
SNS Topic -
alerts
SQS queue
SQS queue
30 Distinct Data Topics
Earth Networks ESB
Aggregation
• Reporting
• KPI
N pub to 1 sub
• Allows aggregation and synchronization from
multiple sources without data loss
• Subscriber can be run in auto-scaling pool of
size 1
• Can add troubleshooting clients
SQS queue
SNS Topic
SNS at Earth Networks
• Solid notification platform
• Internal messaging
• Complex patterns supported with SQS
• Scales seamlessly
Summary
Amazon SNS is useful for
• Mobile and enterprise messaging workloads
• Direct messaging
• Broadcast messaging
• Targeted messaging
Create custom messaging architectures that scale by using Amazon SNS with
• AWS application services like Amazon SQS
• AWS mobile services like Amazon Mobile Analytics
• AWS compute services like AWS Lambda
• AWS storage services like Amazon S3
• AWS management services like Amazon CloudWatch
Sessions you don’t want to miss!
MBL202
Mobile State of the
Union: Mobile Apps
Powered by AWS
Thursday, Oct 8th
1:30 PM - 2:30 PM
Palazzo K
WRK202
Rapid Mobile App
Development on AWS
Thursday, Oct 8th
3:15 PM – 5:15 PM
Galileo 1006
MBL309
Analyze Mobile App
Data and Build
Predictive Applications
Friday, Oct 9th
9:00 AM - 10:00 AM
Titian 2201B
Remember to complete
your evaluations!
Thank you!
Arjun Cholkar, Principal Product Manager
Asha Chakrabarty, Solutions Architect
Fabricio Pettena, COO LATAM, Rocket Internet
Eddie Dingels, Director of Architecture, Earth Networks

Contenu connexe

Tendances

AWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver Klein
AWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver KleinAWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver Klein
AWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver Klein
Amazon Web Services Korea
 

Tendances (20)

Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Speed and Reliability at Any Scale: Amazon SQS and Database Services (SVC206)...
Speed and Reliability at Any Scale: Amazon SQS and Database Services (SVC206)...Speed and Reliability at Any Scale: Amazon SQS and Database Services (SVC206)...
Speed and Reliability at Any Scale: Amazon SQS and Database Services (SVC206)...
 
Reliable Messaging with AWS
Reliable Messaging with AWSReliable Messaging with AWS
Reliable Messaging with AWS
 
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
(GAM401) Build a Serverless Mobile Game w/ Cognito, Lambda & DynamoDB
 
AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...
AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...
AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...
 
Messaging Systems on AWS
Messaging Systems on AWSMessaging Systems on AWS
Messaging Systems on AWS
 
AWS re:Invent 2016: Deep-Dive: Native, Hybrid and Web patterns with Serverles...
AWS re:Invent 2016: Deep-Dive: Native, Hybrid and Web patterns with Serverles...AWS re:Invent 2016: Deep-Dive: Native, Hybrid and Web patterns with Serverles...
AWS re:Invent 2016: Deep-Dive: Native, Hybrid and Web patterns with Serverles...
 
Serverless archtiectures
Serverless archtiecturesServerless archtiectures
Serverless archtiectures
 
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
AWS re:Invent 2016: Life Without SSH: Immutable Infrastructure in Production ...
 
AWS Mobile Hub + AWS Device Farm
AWS Mobile Hub + AWS Device FarmAWS Mobile Hub + AWS Device Farm
AWS Mobile Hub + AWS Device Farm
 
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
Deep Dive on Amazon Cognito - DevDay Los Angeles 2017
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
AWS re:Invent 2016: Journeys to the Cloud: Different Experiences in Video (CT...
AWS re:Invent 2016: Journeys to the Cloud: Different Experiences in Video (CT...AWS re:Invent 2016: Journeys to the Cloud: Different Experiences in Video (CT...
AWS re:Invent 2016: Journeys to the Cloud: Different Experiences in Video (CT...
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
AWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver Klein
AWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver KleinAWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver Klein
AWS Innovate 2016: Build Mobile Apps using AWS SDKs and Mobile Hub- Oliver Klein
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load Balancing
 
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless CloudSRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
 
Working with microservices and Amazon ECS at Airtime
Working with microservices and Amazon ECS at AirtimeWorking with microservices and Amazon ECS at Airtime
Working with microservices and Amazon ECS at Airtime
 
Serverless Patterns: “No server is easier to manage than no server” - AWS Sec...
Serverless Patterns: “No server is easier to manage than no server” - AWS Sec...Serverless Patterns: “No server is easier to manage than no server” - AWS Sec...
Serverless Patterns: “No server is easier to manage than no server” - AWS Sec...
 
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
AWS re:Invent 2016: Workshop: Building Your First Big Data Application with A...
 

En vedette

モバイルアプリ向けAWSネイティブアーキテクチャ
モバイルアプリ向けAWSネイティブアーキテクチャモバイルアプリ向けAWSネイティブアーキテクチャ
モバイルアプリ向けAWSネイティブアーキテクチャ
Rikitake Oohashi
 

En vedette (17)

AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
AWS re:Invent 2016: Serverless Architectural Patterns and Best Practices (ARC...
 
Build high performing mobile apps, faster with AWS
Build high performing mobile apps, faster with AWSBuild high performing mobile apps, faster with AWS
Build high performing mobile apps, faster with AWS
 
Mobile on AWS
Mobile on AWSMobile on AWS
Mobile on AWS
 
Transforming Mobile Push Notifications with Big Data
Transforming Mobile Push Notifications with Big DataTransforming Mobile Push Notifications with Big Data
Transforming Mobile Push Notifications with Big Data
 
AWSクラウドデザインパターン - JEITA講演 -
AWSクラウドデザインパターン - JEITA講演 - AWSクラウドデザインパターン - JEITA講演 -
AWSクラウドデザインパターン - JEITA講演 -
 
(SDD412) Amazon Simple Email Service Deep Dive and Best Practices | AWS re:In...
(SDD412) Amazon Simple Email Service Deep Dive and Best Practices | AWS re:In...(SDD412) Amazon Simple Email Service Deep Dive and Best Practices | AWS re:In...
(SDD412) Amazon Simple Email Service Deep Dive and Best Practices | AWS re:In...
 
AWS Black Belt Techシリーズ Amazon Kinesis
AWS Black Belt Techシリーズ  Amazon KinesisAWS Black Belt Techシリーズ  Amazon Kinesis
AWS Black Belt Techシリーズ Amazon Kinesis
 
AWS Black Belt Tech シリーズ 2015 - Amazon Kinesis
AWS Black Belt Tech シリーズ 2015 - Amazon KinesisAWS Black Belt Tech シリーズ 2015 - Amazon Kinesis
AWS Black Belt Tech シリーズ 2015 - Amazon Kinesis
 
AWS Lambdaによるデータ処理理の⾃自動化とコモディティ化
AWS Lambdaによるデータ処理理の⾃自動化とコモディティ化AWS Lambdaによるデータ処理理の⾃自動化とコモディティ化
AWS Lambdaによるデータ処理理の⾃自動化とコモディティ化
 
[AWSマイスターシリーズ] Amazon Simple Email Service
[AWSマイスターシリーズ] Amazon Simple Email Service[AWSマイスターシリーズ] Amazon Simple Email Service
[AWSマイスターシリーズ] Amazon Simple Email Service
 
AWS IoTアーキテクチャパターン
AWS IoTアーキテクチャパターンAWS IoTアーキテクチャパターン
AWS IoTアーキテクチャパターン
 
モバイルアプリ向けAWSネイティブアーキテクチャ
モバイルアプリ向けAWSネイティブアーキテクチャモバイルアプリ向けAWSネイティブアーキテクチャ
モバイルアプリ向けAWSネイティブアーキテクチャ
 
[AWS初心者向けWebinar] AWSではじめよう、IoTシステム構築
[AWS初心者向けWebinar] AWSではじめよう、IoTシステム構築[AWS初心者向けWebinar] AWSではじめよう、IoTシステム構築
[AWS初心者向けWebinar] AWSではじめよう、IoTシステム構築
 
AWS Black Belt Tech シリーズ 2015 - AWS IoT
AWS Black Belt Tech シリーズ 2015 - AWS IoTAWS Black Belt Tech シリーズ 2015 - AWS IoT
AWS Black Belt Tech シリーズ 2015 - AWS IoT
 
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
 
AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)
AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)
AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)
 
Build Your Mobile App Faster with AWS Mobile Services (Cognito, Lambda, SNS, ...
Build Your Mobile App Faster with AWS Mobile Services (Cognito, Lambda, SNS, ...Build Your Mobile App Faster with AWS Mobile Services (Cognito, Lambda, SNS, ...
Build Your Mobile App Faster with AWS Mobile Services (Cognito, Lambda, SNS, ...
 

Similaire à (MBL307) How Mobile Businesses and Enterprises Use Amazon SNS

Similaire à (MBL307) How Mobile Businesses and Enterprises Use Amazon SNS (20)

Overview of AWS Services for Media Content
Overview of AWS Services for Media ContentOverview of AWS Services for Media Content
Overview of AWS Services for Media Content
 
AWS September Webinar Series - Infrastructure Deployment and Monitoring with ...
AWS September Webinar Series - Infrastructure Deployment and Monitoring with ...AWS September Webinar Series - Infrastructure Deployment and Monitoring with ...
AWS September Webinar Series - Infrastructure Deployment and Monitoring with ...
 
Operating Microservices at Hyperscale — Tech in Asia PDC 2019
Operating Microservices at Hyperscale — Tech in Asia PDC 2019Operating Microservices at Hyperscale — Tech in Asia PDC 2019
Operating Microservices at Hyperscale — Tech in Asia PDC 2019
 
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
 
Build Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile ServicesBuild Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile Services
 
AWS Mobility: Go Mobile in minutes.
AWS Mobility: Go Mobile in minutes. AWS Mobility: Go Mobile in minutes.
AWS Mobility: Go Mobile in minutes.
 
Come costruire apllicazioni "12-factor microservices" in AWS
Come costruire apllicazioni "12-factor microservices" in AWSCome costruire apllicazioni "12-factor microservices" in AWS
Come costruire apllicazioni "12-factor microservices" in AWS
 
UNIT V.pdf
UNIT V.pdfUNIT V.pdf
UNIT V.pdf
 
Unit 6.pptx
Unit 6.pptxUnit 6.pptx
Unit 6.pptx
 
Journey Through the Cloud - Mobile & Social Apps
Journey Through the Cloud - Mobile & Social AppsJourney Through the Cloud - Mobile & Social Apps
Journey Through the Cloud - Mobile & Social Apps
 
Intro Presentation at AWS AWSome Day Dublin July 2015
Intro Presentation at AWS AWSome Day Dublin July 2015Intro Presentation at AWS AWSome Day Dublin July 2015
Intro Presentation at AWS AWSome Day Dublin July 2015
 
2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS
 
What is Cloud Computing with Amazon Web Services?
What is Cloud Computing with Amazon Web Services?What is Cloud Computing with Amazon Web Services?
What is Cloud Computing with Amazon Web Services?
 
Aws re invent 2018 recap
Aws re invent 2018 recapAws re invent 2018 recap
Aws re invent 2018 recap
 
What is Cloud Computing?
What is Cloud Computing?What is Cloud Computing?
What is Cloud Computing?
 
Aberdeen Oil & Gas Event - Enterprise Cloud Adoption Patterns
Aberdeen Oil & Gas Event - Enterprise Cloud Adoption PatternsAberdeen Oil & Gas Event - Enterprise Cloud Adoption Patterns
Aberdeen Oil & Gas Event - Enterprise Cloud Adoption Patterns
 
AWS 2016 re:Invent Launch Summary
AWS 2016 re:Invent Launch SummaryAWS 2016 re:Invent Launch Summary
AWS 2016 re:Invent Launch Summary
 
Accelerate your Cloud Success with Platform Services
Accelerate your Cloud Success with Platform ServicesAccelerate your Cloud Success with Platform Services
Accelerate your Cloud Success with Platform Services
 
AWS AWSome Day London October 2015
AWS AWSome Day London October 2015 AWS AWSome Day London October 2015
AWS AWSome Day London October 2015
 
Getting started with aws io t.compressed.compressed
Getting started with aws io t.compressed.compressedGetting started with aws io t.compressed.compressed
Getting started with aws io t.compressed.compressed
 

Plus de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

(MBL307) How Mobile Businesses and Enterprises Use Amazon SNS

  • 1. © 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Arjun Cholkar, AWS Principal Product Manager Asha Chakrabarty, AWS Solutions Architect Fabricio Pettena, COO LATAM, Rocket Internet Eddie Dingels, Director of Architecture, Earth Networks October 2015 MBL307 Scalable Messaging Architectures How Mobile Businesses and Enterprises Use Amazon SNS to Power Their Messaging Needs
  • 2. Amazon Simple Notification Service Fast, flexible, global messaging to any device or endpoint Global and fast at high scale Send billions of messages per day with minimal latencies across the world. Send messages to any device or endpoint Send notifications through mobile push, email, HTTP or SMS, or messages to Amazon SQS or AWS Lambda. Support for multiple platforms or frameworks Use Java, Python, PHP, Node.js, Objective-C, or .NET
  • 3. Used by thousands of mobile apps and enterprises
  • 4. One API - Multiple destination types Back-end systems (via AWS SDK) End-user devices (via AWS Mobile SDK) “Direct Publish” publish(msg,endpointARN) APNSGCMADMWNS Mobile push gateways iOS Android FireOS Windows “Topic Publish” publish(msg,topicArn) Amazon SQS queues HTTP destinations SMS (US mobile numbers) Email AWS Lambda functions @ 100K Topics x 10Million Subs per Topic = 1Trillion Subs by Default 100K Topics per account by default
  • 5. Publish messages in three simple steps 1 Create a platform application pReq = CreatePlatformApplicationRequest(“Foo”,”APNS”) pArn = sns.createPlatformApplication(pReq) 2 Create a platform endpoint eReq = CreatePlatformEndpointRequest(pArn, <TOKEN>) eArn = sns.createPlatformEndpoint(eReq) 3 Publish to the platform endpoint pubReq = PublishRequest(eArn, “SNS Direct Publish”) sns.publish(pubReq) 1 Create a topic tReq = CreateTopicRequest(“Bar”) tArn = sns.createTopic(tReq) 2 Create a subscription (or many) sReq = SubscribeRequest(tArn,”sqs”,qArn) sArn = sns.subscribe(sReq) 3 Publish to the topic pubReq = PublishRequest(tArn, “Topic Publish”) sns.publish(pubReq) Direct Publish Topic Publish
  • 6. How are our customers using SNS?
  • 7. Engage users with intelligent push notifications Analytics data collection Amazon Redshift Marketing App back endAmazon SNS mobile push Use analytics to target users with fine-grained push notifications
  • 8. Easy Taxi Fabricio Pettena, COO LATAM, Rocket Internet
  • 9. TAXI EASY Easy Taxi is one of the world’s most downloaded taxi apps. Founded in June 2011 in Rio de Janeiro, Brazil, the service has expanded to 30 countries and over 420 cities globally, redefining the landscape of urban mobility.
  • 10. ① ride accepted ② taxi arrived ③ boarding ④ payment ⑤ rate the ride SNS is part of the ride workflow… …and helps our CRM team talk to millions of riders and 400k+ drivers  promo codes  traffic alerts  campaigns  “care days”  partner programs In sync with riders and drivers via mobile push
  • 11. SNS driving the ride workflow SNS Handles delivery Mobile Clients • Push + deep links • Assures workflow • Generates engagement Main API • Auto Scaling group • 000’s of txns/sec MongoDB on EC2 PHP Ride Workflow Running on EC2 • Drives each step on the taxi rides • Sends pushes for key events • “Taxi arrived,” “Ride paid,” etc.
  • 12. SNS enabling CRM activities through mobile push Marketing teamPHP-based scheduling app Standard segmentation • city/area • driver or rider Ad-hoc segmentation • top riders, drivers • drivers near a POI now • … Queue • Beware of deep links • Throttle at 6k/min SNS Handles delivery Bigquery & MongoDB Mobile clients Main API …
  • 13. per day NUMBERS: MESSAGES 1million+ 50+ per day CAMPAIGNS SNS in the wild
  • 14. Breaking news through SNS PHP-based “push console” Newsroom editor National NSW Amazon SNS iOS audience Android audience Amazon Cognito 2 1 Key Flows 1 Guest authentication with Amazon Cognito 2 2 App registers with appropriate topics Amazon CloudWatch Amazon Kinesis SumoLogic GCM APNS 3 3 Editor pushes a story 4 4 4 Clients load and display push 5 5 Logs and metrics gathered to dashboard
  • 15. From print to digital to mobile media Migrated to SNS And in 2 months … 72% growth in push notification volumes 89% growth in app installs 204% growth in ad impressions • Established in 1948 and has print sales of 1.3 million copies daily as of 2015. • Launched digital offering in 2009 and currently gets 150 million page views per day. Entered into mobile, but ran into … Scalability challenges High latency Font limitations User management issues Device management issues GCM APNS Amazon SNS News category to token mapping Punjab Kesari Back end Punjab Kesari subscriber
  • 16. SNS fan-out for S3 event notifications • Event-driven data processing architecture • Parallel processing of same data source • SNS notifies different subscribers of the S3 data event notifications • Each subscriber processes the data independently • Data is stored in a storage component of choice
  • 17. Task automation with SNS, Lambda Input from CloudWatch alarms • EC2 metrics: CPU, disk, network, health • EBS metrics: read/write bytes/ops • ELB metrics: HTTPCode • S3 metrics: NumberObjects, BucketSize • DynamoDB metrics: read/write capacity • Custom metrics/alarms Output functionality • Launch instance/tasks/apps • Provision tables/shards/storage • External endpoints
  • 18. Using SNS as a messaging bus • Decouple your architecture using SNS • Use SQS for reliable storage of messages for immediate or delayed processing Amazon SNS SQS queue SQS queue SQS queue
  • 19. Earth Networks Eddie Dingels, Director of Architecture, Earth Networks
  • 20. Company Big data and IoT sensor networks • World’s largest environmental sensor networks • Extensive proprietary core sensor network & shared network sources • Highest degree of environmental monitoring and prediction through big data and algorithmic modeling CoretechnologyApplications Consumer • Local/accurate • Safety • Online • Mobile • Television • Public safety • Forecasting • Environmental • National agencies Enterprise Government • Safety • Forecasting • Energy • Aviation • Commercial Smart Home Intelligence • Consumer engagement • Energy efficiency • Demand response
  • 21. Earth Networks ESB Need Reliable notifications between decoupled services and tiers Solution SNS + SQS = Simple ESB SQS queue SQS queue SQS queue SNS Topic
  • 22. Earth Networks ESB Tiers • Alerts • Surface observations N pub to M sub • Allows processing of each message at an individual subscriber or set of subscribers • If a subscriber fails, can leave the message on the queue for pickup SQS queue SNS Topic
  • 23. Earth Networks ESB – Observation ingest SNS Topic SQS queue SQS queue SQS queue Instance - FTP Instances - UDP Instance - ETL Data marts Data warehouse Quality control DynamoDB Amazon Redshift 50 million+ ESB messages per day
  • 24. Earth Networks ESB Fan-out • Slowly moving data domains/dimensions • Mapping (GIS) 1 pub to M sub • Allows consistent fan-out to M number of subscribers • Ensures that each subscriber is eventually consistent SQS queue SNS Topic
  • 25. SNS Topic SQS queue SQS queue Data processing tier Earth Networks ESB – Mapping data pipeline Mapping instance Mapping instance CloudFront ELB S3 SNS Topic - radar SNS Topic - alerts SQS queue SQS queue 30 Distinct Data Topics
  • 26. Earth Networks ESB Aggregation • Reporting • KPI N pub to 1 sub • Allows aggregation and synchronization from multiple sources without data loss • Subscriber can be run in auto-scaling pool of size 1 • Can add troubleshooting clients SQS queue SNS Topic
  • 27. SNS at Earth Networks • Solid notification platform • Internal messaging • Complex patterns supported with SQS • Scales seamlessly
  • 28. Summary Amazon SNS is useful for • Mobile and enterprise messaging workloads • Direct messaging • Broadcast messaging • Targeted messaging Create custom messaging architectures that scale by using Amazon SNS with • AWS application services like Amazon SQS • AWS mobile services like Amazon Mobile Analytics • AWS compute services like AWS Lambda • AWS storage services like Amazon S3 • AWS management services like Amazon CloudWatch
  • 29. Sessions you don’t want to miss! MBL202 Mobile State of the Union: Mobile Apps Powered by AWS Thursday, Oct 8th 1:30 PM - 2:30 PM Palazzo K WRK202 Rapid Mobile App Development on AWS Thursday, Oct 8th 3:15 PM – 5:15 PM Galileo 1006 MBL309 Analyze Mobile App Data and Build Predictive Applications Friday, Oct 9th 9:00 AM - 10:00 AM Titian 2201B
  • 31. Thank you! Arjun Cholkar, Principal Product Manager Asha Chakrabarty, Solutions Architect Fabricio Pettena, COO LATAM, Rocket Internet Eddie Dingels, Director of Architecture, Earth Networks