InfoQ Homepage Presentations Big Data in Real Time at Twitter
Big Data in Real Time at Twitter
Summary
Nick Kallen discusses how Twitter handles large amounts of data in real time by creating 4 data types and query patterns -tweets, timelines, social graphs, search indices-, and the DBs storing them.
Bio
Nick Kallen is a Systems Engineer at Twitter. He is the author of Arel, NamedScope, Cache Money, and Screw.Unit, and co-creator of FlockDb, Twitter's distributed graph database.
About the conference
QCon is a conference that is organized by the community, for the community.The result is a high quality conference experience where a tremendous amount of attention and investment has gone into having the best content on the most important topics presented by the leaders in our community.QCon is designed with the technical depth and enterprise focus of interest to technical team leads, architects, and project managers.
Community comments
I have a question
by james xu,
Wrong query?
by José González D'Amico,
I have a question
by james xu,
Your message is awaiting moderation. Thank you for participating in the discussion.
take a look: stackoverflow.com/questions/6960687/mysql-why-t...
Wrong query?
by José González D'Amico,
Your message is awaiting moderation. Thank you for participating in the discussion.
Around minute 22, Mr. Kallen shows the query for the timeline executed in the original implementation.
In your timeline you see your friends' (AKA followees) tweets, not your followers'. And if I remember correctly, in the Twitter API source_id is a field of Tweets, not of Friends.
Perhaps the query should be this?
SELECT * FROM tweets
WHERE source_id IN
(SELECT user_id
FROM friends
WHERE destination_id = ?)
ORDER BY created_at DESC
LIMIT 20