Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apache Kafka

Apache Kafka

Build solid architecture using apache kafka

Avatar for TEBOURBI Maher

TEBOURBI Maher

December 03, 2015

More Decks by TEBOURBI Maher

Other Decks in Technology

Transcript

  1. !

  2. Ok Set X = 1 Set X = 1 Set

    X = 3 Set X = 3 X = 3 X = 1 Ok Ok Ok
  3. DB 3 2 1 4 5 6 7 8 9

    10 11 Command log Web App Search Cache
  4. 3 2 1 4 5 6 7 8 9 10

    11 Topic Producer Consumer Offset
  5. 3 2 1 4 5 6 7 8 9 10

    11 3 2 1 4 5 6 7 3 2 1 4 5 6 7 8 9 P1 P2 P3 Producer Topic Partitions :
  6. 3 2 1 4 5 6 7 8 9 10

    11 Partition Consumer Offset ZooKeeper Topic DB Vs Vs
  7. 3 2 1 4 5 6 7 8 9 10

    11 1 2 1 3 4 5 4 3 1 6 9 F B C X K D H nil Y W V Key Value Offset Key Value Offset 4 5 2 1 6 9 7 6 2 9 10 11 H D B Y W V Compaction
  8. Some annoyances • Require Zookeeper. • Official java client API

    changes. • Log compaction not possible with compressed topics. • Partition limited to single machine.
  9. Performance • Use of OS page cache. • Linux: sendfile()

    syscall : pagecache -> socket. • 1.1 Trillion Messages Per Day at Linkedin • 2 Million Writes Per Second: https:/ /goo.gl/acmi00 3 Servers : Intel Xeon 2.5 GHz processor with six cores Six 7200 RPM SATA drives 32GB of RAM 1Gb Ethernet Kafka version : 0.8.1
  10. ?