~/talk

Building domain specific databases using Python for prototypes during take off

Talkat PyData San Francisco 2016 · 2016-08-12..08-14· [databases]
speakerdeck:qix
slides:none on file

Prototype implements a Sliding HyperLogLog unique counter using Kafka & Python as a durable stream and in-memory prototype, then ports to RocksDB and C++ with trivial effort. Initial Redis approach stores buckets three times and costs hundreds of gigabytes in RAM; the production stack drops ~500 GB in memory to ~30 GB on disk. Prototype code is small (about 125 lines of algo-specific code), holds up for six months in production, and supports sharding, replication and quick recovery via Kafka offsets.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Trust and safety platform
  3. 3:53Why build our own DB
  4. 5:18Initial Redis solution
  5. 9:11Moving to RocksDB
  6. 10:56Kafka for data streaming
  7. 12:42Fault tolerance with Kubernetes
  8. 14:49Final architecture savings
  9. 15:34Extending for labels and search
  10. 16:16Accurate counters
  11. 16:57Docker and Kubernetes issues
  12. 18:23Future derived data work
  13. 24:00Team workflow
  14. 25:49Lessons from mistakes
  15. 27:18Data backup strategies
  16. 28:52Rule-based vs ML anti-fraud
  17. 31:58Data collection tactics
  18. 33:02Q&A
~/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.