Using AWS Lambda as a push
notification cannon
AWS Usergroup Dublin MeetUp #15
Daniel Taschik – 09/06/2016
We hit a nerve.
100M
Users
192
Countries
1.5B
Videos
Dubsmash 2.0
Connect Create Communicate
Sending hundreds of million 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
>520M
pushes sent last months
>3.7M
Lambda invocations
>12.3M
seconds of Lambda
compute time
<10min*
to send 15M pushes at once
14Gb/8Core
hardware for scheduling
2Gb/2Core
hardware for dispatcher
Let’s say it with video!
Thank you
daniel@dubsmash.com | @dtaschik

AWS User Group Dublin - Using AWS Lambda as a push notification cannon