2. Giv ing a talk at Ca l’s CS10 - The
Beauty and Joy of Computing.
inst. eecs.berkeley.e du/~cs10/sp11
16 Mar via Twitter for iPhone
from UC Berkeley
277 Cory Hall
Berkeley, CA
View Tweets at this place
35. @ladygaga
mother mons†er
6.8 million followers
@justinbieber
Justin Bieber
5.7 million followers
@BarackObama
44th President of the United States
5.6 million followers
@raffi
me!
5.1 thousand followers
41. MySQL
Can’t generate IDs fast enough
Centralized and a single point of failure
snowflake
Highly available and uncoordinated (10kqps)
Compatible with the ecosystem
http://github.com/twitter/snowflake
42. How big are they?
≈
1 tweet text =
≈ 140 characters
18 MB/min
≈ 200 bytes
≈ 26 GB/day
Just tweet text!
44. 1
Digraph 2
Need to represent this
4
1 2 3 4 3
1
Matrix
2
Naïve implementation is not scalable
3
4
45. Photo used under Creative Commons from jurvetson
Distributed graph database
flockdb High rate of CRUD operations
Complex set arithmetic queries
http://github.com/twitter/flockdb
51. Where do we want to be?
Today - 200M people generate ~1600 TPS
Tomorrow - we want to support half the world and all its devices
(right now, there are 6B people and 5B phones)