Scaling

25
Scaling to 100 M

Transcript of Scaling

Page 1: Scaling

Scaling to 100 M

Page 2: Scaling

Agenda

• About ShareThis• What is SocialAB• Scaling Meteor at ShareThis

Problems facedRedesigned Meteor architectureLoad Test Results

• Q&A

Page 3: Scaling

Introduction

▪ Growth Engineering @ ShareThis

Vijay

Page 4: Scaling

WHOShareThis was founded in 2007 – with a lofty goal – to make social sharing a part of every day consumer behavior. And today it is.WE ARE

Page 5: Scaling
Page 6: Scaling
Page 7: Scaling
Page 8: Scaling

© 2016 ShareThis. All rights reserved.

sharethis reachTRUSTED BY 4.7 MILLION WEBSITES/APPS

8

3 Easy Steps to Install

Sharing Tools

Page 9: Scaling

ShareThis is building out a social platform to

address publishers needs.

SOCIALOPTIMIZATIO

N PLATFORM

Page 10: Scaling

© 2016 ShareThis. All rights reserved.

social A/BTHE WORLD’S TOP CONTENT CREATORS USE A/B TESTING ON SOCIAL

10

Social A/B brings the power of this share graph optimization technology to ShareThis publisher partners by testing your headlines on Facebook. This allows you to tap into social networks to draw new readers to your site.

ARTICLE HEADLINE #1

ARTICLE HEADLINE #2

Page 11: Scaling

© 2016 ShareThis. All rights reserved.

social A/BPROPRIETARY ALGORITHM

11

Our algorithm learns as the experiments run, so you can see the best results as quickly as

possible, detecting the best performing headline.

Page 12: Scaling

Why do we need to Scale?

Page 13: Scaling

Big Publishers want this tool!

100 Million events/ month

Know before our publishers

Page 14: Scaling

ShareThis Infrastructure

Page 15: Scaling

Initial Meteor Architecture

Page 16: Scaling

Slow Img

Page 17: Scaling

Things We TriedBetter Indexing Mongo

Made Meteor to tail Mongo Oplogs instead of default polling

Paginated the UI

Scale out Meteor to multiple instances

Page 18: Scaling

Load Test Data

Page 19: Scaling

Load Test Data

Page 20: Scaling

Meteor Pub/Sub Failed !

Page 21: Scaling

Decoupled UI From Meteor

Page 22: Scaling

SocialAB Architecture

Page 23: Scaling

Lessons LearntMeteor SockJs can’t handle sticky sessions in current

Infrastructure.

Meteor Publisher/Subscriber doesn’t handle heavy load in real time

Page 24: Scaling

We are Hiring!sharethis.com/join

stackshare.io/sharethis

Docker Kubernetes Kafka Google Cloud Meteor JS

Page 25: Scaling

Light Bulb, an idea

history hack a thon productivity locked in a room 2 teams 2 differnet ideas pretty difficult 2 days intense focus

Questions?