Sending hundreds of millions of push notifications with a scalable, serverless architecture using AWS Lambda - AWS Serverless Web Day

Download Sending hundreds of millions of push notifications with a scalable, serverless architecture using AWS Lambda - AWS Serverless Web Day

Post on 15-Apr-2017

418 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

PowerPoint Presentation

AWS Serverless Web Day

Daniel Taschik 06/23/2016

We hit a nerve.100M Users

192 Countries

1.5BVideos

Dubsmash 2.0

ConnectCreateCommunicate

Sending hundreds of millions of pushes using AWS Lambda

Use Cases for Pushes at Dubsmash

Challenges

+

Global User BaseReal-time deliveryTracking

3 StepsDevice registrationSending push notificationsResult processing

1.) Device Registrationregister with push tokenARN & device data

worker

SNS

SQS

device store

2.) Sending Push NotificationPush Trigger

device data storeload targeted devicesslice device batch in batches of 35knotification scheduler

SNS

Lambda

notification dispatcher

wrap notifications for max. SNS payload

~ 300 recipientspush!

SNS

Code example

3.) Result Processing

SNS

Lambda

SQSLambda results

worker

device storedelivery results / APNS Feedback Servicedeactivate/ update devicesPush!

Some metrics

>500M

pushes sent last months>3.5M

Lambda invocations>11.8M

seconds of Lambda compute time