sending hundreds of millions of push notifications with a scalable, serverless architecture using...

13
AWS Serverless Web Day Daniel Taschik – 06/23/2016

Upload: aws-germany

Post on 15-Apr-2017

438 views

Category:

Technology


3 download

TRANSCRIPT

AWS Serverless Web DayDaniel 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

SNSLambdanotification 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

>500M

pushes sent last months

>3.5M

Lambda invocations

>11.8M

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

[email protected] | @dtaschik