~/talk

Realtime Search at Twitter

Talkat Berlin Buzzwords 2012 · 2012-06-04..06-05· [databases]
links:none on file
slides:none on file

Twitter runs a modified Lucene engine called Earlybird indexing ~340–400 million tweets/day and serving ~2.3 billion queries/day with <10s indexing latency and ~50ms average hits. It keeps live, in-memory time-slices of up to 60M docs, stores each posting as a 32-bit value (24-bit doc id + position byte) to allow backward reads and early termination, uses slice pools (2,16,128,2048) to grow posting lists lock‑free, relies on a volatile maxDoc publish barrier for safe reader snapshots, and reports 80–400% GC/indexing gains.

AI-written summary · about

  1. 0:00Start
  2. 1:22Agenda
  3. 3:19Search Architecture
  4. 8:48Posting Lists
  5. 17:18Document Frequency
  6. 21:05The Data Structure
  7. 27:44Concurrency
  8. 29:05Why Is It Called Optimistic Locking
  9. 31:24The Program Euler Rule
  10. 39:35Optimistic Locking
  11. 41:09Encoding of the Doc Ids
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.