facebook, robert johnson

42

Upload: fuenteovejuna

Post on 17-Dec-2014

2.062 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Facebook, Robert Johnson
Page 2: Facebook, Robert Johnson

!"" Million Active Users

!M

"!M

#$!M

#%!M

$&!M

'!!M

#""$ #""! #""% #""& #""' #""(

!""M

Page 3: Facebook, Robert Johnson

## property on the Internet (time on site)

)""s of billions of monthly page views

>$ trillion feed actions processed per day

)""s of millions of cache queries per second

Over # trillion objects cached

Over !"" million active users, half log in every day

)"" billion photo files stored

Over #" billion minutes spent every Day

Over # billion pieces of content uploaded every week

Page 4: Facebook, Robert Johnson

Move FastServer ScalingReliability

Page 5: Facebook, Robert Johnson

!"" Million Active Users

!M

"!M

#$!M

#%!M

$&!M

'!!M

#""$ #""! #""% #""& #""' #""(

!""M

Page 6: Facebook, Robert Johnson

Over ) million active users per engineer

!

"#!,!!!

#$!,!!!

%"!,!!!

&'!,!!!

(,"!!,!!!

Facebook Google* Amazon* Microsoft*

&!,"""$%,"""#$","""

#,#"","""

* Conservative estimates based on publicly available data

Page 7: Facebook, Robert Johnson

Few external deadlines... but

Page 8: Facebook, Robert Johnson

The site can’t go down

Page 9: Facebook, Robert Johnson

Frequent small changesNever a delay waiting for a pushEasier to isolate bugs

Major changes dark launched

Page 10: Facebook, Robert Johnson
Page 11: Facebook, Robert Johnson
Page 12: Facebook, Robert Johnson

Traditional websites

Bob

Bob’s data

Page 13: Facebook, Robert Johnson

Traditional websites

Bob

Bob’s data

Julie

Julie’s data

Dan

Dan’s data

Beth

Beth’s data

Sue

Sue’s data

Erin

Erin’s data

Page 14: Facebook, Robert Johnson

Facebook the data is interconnectedBob ErinBeth

Servers

Page 15: Facebook, Robert Johnson
Page 16: Facebook, Robert Johnson
Page 17: Facebook, Robert Johnson

Scale Horizontally

Page 18: Facebook, Robert Johnson

Database

Memcache

Web Server

Page 19: Facebook, Robert Johnson

Database

Memcache

Web Server

Page 20: Facebook, Robert Johnson

Database

Memcache

Web Server

Page 21: Facebook, Robert Johnson

Database

Memcache

Web Server

Page 22: Facebook, Robert Johnson

Network Incast

Memcache Memcache Memcache Memcache

Switch

PHP Client

Page 23: Facebook, Robert Johnson

Network Incast

Many SmallGet Requests

Memcache Memcache Memcache Memcache

Switch

PHP Client

Page 24: Facebook, Robert Johnson

Memcache Memcache Memcache Memcache

Switch

PHP Client

Many bigdata packets

Network Incast

Page 25: Facebook, Robert Johnson

Memcache Memcache Memcache Memcache

Switch

PHP Client

Network Incast

Page 26: Facebook, Robert Johnson

Memcache Memcache Memcache Memcache

Switch

PHP Client

Network Incast

Page 27: Facebook, Robert Johnson

Memcache Memcache Memcache Memcache

Switch

PHP Client

Network Incast

Page 28: Facebook, Robert Johnson

Reliability

Page 29: Facebook, Robert Johnson

Single Points of Failure

Page 30: Facebook, Robert Johnson

Single Points of FailureSoftware can be a SPOF

Page 31: Facebook, Robert Johnson

Don’t make small problems big

Page 32: Facebook, Robert Johnson

Don’t make small problems bigDon’t push problems upstream

Page 33: Facebook, Robert Johnson

Don’t make small problems bigDon’t push problems upstreamBe wary of “smart” failover

Page 34: Facebook, Robert Johnson

Don’t make small problems bigDon’t push problems upstreamBe wary of “smart” failoverShed load when you’re in trouble

Page 35: Facebook, Robert Johnson

If you lose half of your machinesyou’re doing well if you’re serving half of your traffic

Page 36: Facebook, Robert Johnson

Measure Everything

Page 37: Facebook, Robert Johnson

p(! vs p((

Page 38: Facebook, Robert Johnson
Page 39: Facebook, Robert Johnson

CultureAlways do a post-mortemRelease oftenControl and Responsibility

Page 40: Facebook, Robert Johnson

Facebook Platform

Page 41: Facebook, Robert Johnson

Lessons LearnedFederate everythingKeep failures containedMeasure distributionsUnderstand every problemMake a person responsible

Page 42: Facebook, Robert Johnson

(c) $!!( Facebook, Inc. or its licensors. )"Facebook" is a registered trademark of Facebook, Inc.. All rights reserved. #.!