Submit Search
Tour of Distributed Systems 3 - Apache Kafka
2 likes
1,494 views
Chris Birchall
分散システムのツアー #3 - Apache Kafka
Technology
Read more
1 of 13
Download now
Downloaded 14 times
1
2
3
4
5
6
7
8
9
10
11
12
13
More Related Content
PPTX
社内勉強会(Docker)
Shinya Sasaki
PDF
CDP in NAGOYA
Hiroyasu Suzuki
PDF
k8sクラスタ構築
asuka y
PDF
Kafkaによるリアルタイム処理
Naoki Yanai
PDF
Fast Data を扱うためのデザインパターン
MapR Technologies Japan
PPTX
Cassandra Summit 2016 注目セッション報告
Yahoo!デベロッパーネットワーク
PDF
Azure container as a service v0.1.19.1213
Ayumu Inaba
PDF
AWS re:Invent2017で見た AWSの強さとは
NTT Communications Technology Development
社内勉強会(Docker)
Shinya Sasaki
CDP in NAGOYA
Hiroyasu Suzuki
k8sクラスタ構築
asuka y
Kafkaによるリアルタイム処理
Naoki Yanai
Fast Data を扱うためのデザインパターン
MapR Technologies Japan
Cassandra Summit 2016 注目セッション報告
Yahoo!デベロッパーネットワーク
Azure container as a service v0.1.19.1213
Ayumu Inaba
AWS re:Invent2017で見た AWSの強さとは
NTT Communications Technology Development
Similar to Tour of Distributed Systems 3 - Apache Kafka
(7)
PDF
OpenBSD/luna88k on LUNA-88K2, at OSC 2013 Nagoya
Kenji Aoyama
PDF
Docker ComposeでMastodonが必要なものを梱包する話
Masahito Zembutsu
PDF
SaaS/クラウドコンピューティングでのオープンソース活用とセキュリティ
Kuniyasu Suzaki
PDF
Kubernetesを触ってみた
Kazuto Kusama
PDF
NetBSDのクロスビルドのしくみとインストール済みLive Imageの作成
Izumi Tsutsui
PDF
Akkaとは。アクターモデル とは。
Kenjiro Kubota
PDF
EditShare システムの紹介
Dell TechCenter Japan
OpenBSD/luna88k on LUNA-88K2, at OSC 2013 Nagoya
Kenji Aoyama
Docker ComposeでMastodonが必要なものを梱包する話
Masahito Zembutsu
SaaS/クラウドコンピューティングでのオープンソース活用とセキュリティ
Kuniyasu Suzaki
Kubernetesを触ってみた
Kazuto Kusama
NetBSDのクロスビルドのしくみとインストール済みLive Imageの作成
Izumi Tsutsui
Akkaとは。アクターモデル とは。
Kenjiro Kubota
EditShare システムの紹介
Dell TechCenter Japan
Ad
More from Chris Birchall
(11)
PDF
Scala.js & friends: SCALA ALL THE THINGS
Chris Birchall
PDF
Rust 超入門
Chris Birchall
PPTX
Tour of distributed systems 2 - Cassandra
Chris Birchall
PDF
Guess the Country - Playing with Twitter Streaming API
Chris Birchall
PDF
Tour of distributed systems 1 - ZooKeeper
Chris Birchall
PDF
ScalaCache: simple caching in Scala
Chris Birchall
PDF
Hydra
Chris Birchall
PDF
Load testing with gatling
Chris Birchall
PDF
Debugging and Testing ES Systems
Chris Birchall
PDF
Phone Home: A client-side error collection system
Chris Birchall
PDF
Branching Strategies: Feature Branches vs Branch by Abstraction
Chris Birchall
Scala.js & friends: SCALA ALL THE THINGS
Chris Birchall
Rust 超入門
Chris Birchall
Tour of distributed systems 2 - Cassandra
Chris Birchall
Guess the Country - Playing with Twitter Streaming API
Chris Birchall
Tour of distributed systems 1 - ZooKeeper
Chris Birchall
ScalaCache: simple caching in Scala
Chris Birchall
Hydra
Chris Birchall
Load testing with gatling
Chris Birchall
Debugging and Testing ES Systems
Chris Birchall
Phone Home: A client-side error collection system
Chris Birchall
Branching Strategies: Feature Branches vs Branch by Abstraction
Chris Birchall
Ad
Tour of Distributed Systems 3 - Apache Kafka
1.
Apache Kafka 分散システムのツアー
#3 Chris 2014/10/15 #m3dev https://github.com/m3dev/distrib-systems-tour
2.
Kafka ● PubSubメッセージ・キュー
● LinkedIn発 ● 売り ○ パフォーマンス ○ スケーラビリティ ○ 永続性 ○ 柔軟な配布モデル:コンシューマ・グループ ● Scala実装、多言語のクライアント
3.
アーキテクチャ Producer Producer
Producer Producer Kafka cluster Broker Broker Broker Consumer Group 1 Consumer Group 2 Consumer Consumer Consumer Consumer ZooKeeper HDD HDD HDD
4.
コンシューマ・グループ ● 全てのメッセージを全てのconsumer
group(の consumerのいずれか)に配布する ● 例) ○ メッセージ 1, 2, 3, 4 ○ コンシューマグループ A, B ○ Aにコンシューマ2台:A1, A2 ○ Bにコンシューマ2台:B1, B2 Group A Group B A1 A2 B1 B2 ① ③ ② ④ ③ ④ ① ②
5.
コンシューマ・グループ ● スペシャルケース
○ 全てのコンシューマが同じグループに所属 ■ 普通のキュー ○ コンシューマはそれぞれ別グループ ■ 普通のPub-Sub
6.
(とある consumer group
の中の話です) パーティション ● トピックを複数の partition に分ける ● Producer が message ⇔ partition の振り分け を決める ● Kafka broker が partition ⇔ consumer の振り 分けを決める ● 制限:Consumer数 ≦ Partition数 Producer Producer Partition 1 Partition 2 Consumer Partition 3 Consumer
7.
永続性 ● Brokerはメッセージをファイルに書き込む
● Consumerがメッセージを消費しても、一定期間 brokerに残る ● Consumerが自身の経過を管理するので、巻き 戻して再読み込みができる
8.
パフォーマンス $ brew
install kafka $ cd /usr/local/opt/kafka $ bin/start-zookeeper-server.sh libexec/config/zookeeper.properties & $ bin/kafka-server-start.sh libexec/config/server.properties & $ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test $ bin/kafka-producer-perf-test.sh --broker-list localhost:9092 --topics test --messages 1000000 結果:49,568 messages/sec (Late 2011 MBP, 100 byte msgs)
9.
スケーラビリティ LinkedIn社で1千億メッセージ/日! https://twitter.com/jaykreps/status/479749975853641729
10.
使い所:リアルタイム通知
11.
使い所:レポーティング
12.
使い所:多目的イベント活用
13.
ハンズオン! OSX: brew
install kafka or, AWS上に稼働中のKafka を使う 192.168.51.119:9092 https://github.com/m3dev/distrib-systems-tour
Download