Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
AWS Serverless Web Day
Daniel Taschik – 06/23/2016
We hit a nerve.
100M Users
192 Countries
1.5BVideos
Dubsmash 2.0
Connect Create Communicate
Sending hundreds of millions of
pushes using AWS Lambda
Use Cases for Pushes at Dubsmash
Challenges
+
Global User Base Real-time delivery Tracking
3 Steps
1. Device registration
2. Sending push notifications
3. Result processing
1.) Device Registration
register with
push token
ARN & device data
worker
SNS
SQS device store
2.) Sending Push Notification
Push
Trigger
device data store
load targeted devices
slice device batch in batches
of 35k
notification
scheduler
SNSLambda
notification
dispatcher
wrap notifications for max.
SNS payload
~ 300 recipients
push!
SNS
Code example
3.) Result Processing
SNS
Lambda
SQS
Lambda results
worker device store
delivery results / APNS
Feedback Service
deactivate/ update
devices
Push!
Some metrics
>500Mpushes sent last months
>3.5MLambda invocations
>11.8Mseconds of Lambda
compute time
<10min*to send 15M pushes at once
14Gb/8Corehardware for scheduling
2Gb/2Corehardware for dispatcher