Top Banner
Breaking the Monolith
38

Breaking the Monolith - v3

Jan 26, 2017

Download

Internet

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Breaking the Monolith - v3

Breaking the Monolith

Page 2: Breaking the Monolith - v3

WHOAMI

Cristobal ViedmaFounder & CEO @Monkimun

Former life: Head of Platform @Viki ($200M exit) Founder & CEO @Bluewalks

Page 3: Breaking the Monolith - v3

80% of the world can only read <6% of the Internet

W3techs 2015: http://w3techs.com/technologies/overview/content_language/allUnesco 2012: http://unesdoc.unesco.org/images/0018/001870/187016e.pdf

Page 4: Breaking the Monolith - v3

WHATISVIKI?

Page 5: Breaking the Monolith - v3

GLOBALTV

Page 6: Breaking the Monolith - v3

NOTADUMBTV

Page 7: Breaking the Monolith - v3

TITLEHERECROSSCULTURAL COMMUNICATION

Page 8: Breaking the Monolith - v3

CHALLENGES

Page 9: Breaking the Monolith - v3

WEBviki.com 56.com pptv.com youtube.com yahoo.com msn.com...

Page 10: Breaking the Monolith - v3

MOBILEAndroid iOS Blackberry Windows Phone Samsung Bada Kindle Fire...

Page 11: Breaking the Monolith - v3

SMARTTVs

Google TV, Samsung SmartTV, Roku...

Page 12: Breaking the Monolith - v3

HIGHLYDISTRIBUTED

Data: viki.com Oct'12

Top 5 Cities: Singapore,Santiago, LaVictoria, Jakarta, New York

Page 13: Breaking the Monolith - v3

EXPLOSIVEGROWTH

~22M users winter’12 (2500% growth). ~35M summer’13

Page 14: Breaking the Monolith - v3

DEMANDINGUSERSviewers start leaving if video doesn't play in 2 secs ...and every sec of additional delay ~6% more jumping ship!

Data: Video Stream Quality Impacts Viewer Behavior: Inferring Causality Using Quasi-Experimental Designs. S. Shunmuga Krishnan, Ramesh K. Sitaraman, 2012

Page 15: Breaking the Monolith - v3

CHALLENGES

Large Ecosystem Highly DistributedExplosive GrowthDemanding Users

Page 16: Breaking the Monolith - v3

TITLEHERE

Page 17: Breaking the Monolith - v3

BREAKTHEMONOLITH

Page 18: Breaking the Monolith - v3

TITLEHERE

Page 19: Breaking the Monolith - v3

PLATFORMFOCUS

Scalability Availability

Performance

Page 20: Breaking the Monolith - v3

UNDERSTANDINGFacts:Read heavy (writes can wait) Everything fits in memory

Goal: 25ms uncached (10-100x better)

Page 21: Breaking the Monolith - v3

[SCALA|AVAILA]BILITY

Service Oriented Architecture Each vertical is a source of truth

Oceanus (Videos)

Activities (Behaviour)

Gaia (Users)

Aphrodite (Community)

Page 22: Breaking the Monolith - v3

ONEGATE

Hyperion (platform cluster)

Everything routed through api.viki.io

Oceanus (Videos)

Activities (Behaviour)

Gaia (Users)

Aphrodite (Community)

Page 23: Breaking the Monolith - v3

DISTRIBUTION

TH

HH

H

H

HH

H

Page 24: Breaking the Monolith - v3

PUB/SUBSYSTEMHyperion (platform cluster)

Oceanus (Videos)

Activities (Behaviour)

Gaia (Users)

Aphrodite (Community)

Message / Events Queue

Page 25: Breaking the Monolith - v3

… Message / Events Queue

Oceanus (Videos)

Activities (Behaviour)

Gaia (Users)

Aphrodite (Community)

Analytics

Hyperion(cluster)

viki.com

LogsSegmenting Tool

Subtitling tool

Baboon (CMS)

Hyperion(cluster)

Hyperion(cluster)

Devices (android, ios, etc)

Partners (Samsung, Youtube,

etc)

3rd Party Dev. (API)

Plat

form

Con

tent

Clie

nts

Know

ledge

EVENTDRIVENARCHITECTURE

Page 26: Breaking the Monolith - v3

CHALLENGES/FOCUS

Scalability Availability

Performance

Large Ecosystem Highly DistributedExplosive GrowthDemanding Users

Page 27: Breaking the Monolith - v3

PERFORMANCE

Generation Time Network time Render time

Hyperion Client

Page 28: Breaking the Monolith - v3

PERFORMANCE

Hyperion(cluster)

Nginx

APIProxy (GoLang)

Hyperion (Node.js)

Redis Redis Redis

Page 29: Breaking the Monolith - v3

GENERATIONOriginal (without latency) ~250ms

Everything in memory ~15-100ms

Sorting / VFind ~15ms

Paging ~9ms

Serializing ~5ms

UNCACHED

Page 30: Breaking the Monolith - v3

HORRORFUNFACTS

Alias - Redis 32bits VFIND - Redis forkJSON Concat in C

Page 31: Breaking the Monolith - v3

[email protected] https://angel.co/monkimun

Nothing new… Having fun & learning!

https://github.com/karlseguin/scaling-viki

Page 32: Breaking the Monolith - v3

80% of the world can only read <6% of the Internet

W3techs 2015: http://w3techs.com/technologies/overview/content_language/allUnesco 2012: http://unesdoc.unesco.org/images/0018/001870/187016e.pdf

Page 33: Breaking the Monolith - v3

Research shows 2-6 years is the best age to learn a language

Science 2005: http://www.sciencemag.org/content/310/5749/815

Page 34: Breaking the Monolith - v3

language learning is extremely bOOOring

and so is “gamifying” it…

Page 35: Breaking the Monolith - v3
Page 36: Breaking the Monolith - v3

A common language will accelerate growth and make the

world more united and equal

VISION

Page 37: Breaking the Monolith - v3

ADVISORS

Kent Liu Ex-GM Asia for EA Mobile Ex-Director JAMDAT mobile (IPO + $680M exit)

500 Startups Leading global venture capital seed fund

Razmig Hovaghimian Co-founder / CEO Viki Sr Executive Officer Rakuten Board Observer Rakuten

Gwynne Shotwell SpaceX President & COO

Page 38: Breaking the Monolith - v3

[email protected] https://angel.co/monkimun

[email protected]+1 415 528 99 71 +34 617 606 187

Psst, We are hiring!