SlideShare ist ein Scribd-Unternehmen logo
1 von 18
© 2013 Impetus Technologies - Confidential1
Kafka/Camus Project
Phase I
Mountain View, CA
March 2013
(photos courtesy of LinkedIn)
© 2013 Impetus Technologies - Confidential2
Agenda
• Objective
• What tool to use?
• Kafka & Camus overview
• Infrastructure
• Architecture
• Performance benchmarks
© 2013 Impetus Technologies - Confidential3
Objective
• Customer has events (Data, UI) that happen
real-time, that need to be analyzed
• Immediate need for batch-oriented mechanism
• Events need to by ETL’ed and analyzed in
Hadoop
• Future need for more real-time stream
analysis
• Potential bursts of streaming data
© 2013 Impetus Technologies - Confidential4
What tool to use?
• JMS:
• just an API
• Not cross language
• Painful
• Doesn’t scale
• Active MQ
• Didn’t work for Linkedin:
• http://sites.computer.org/debull/A12june/pipeline
.pdf
• Apache Flume
© 2013 Impetus Technologies - Confidential5
Kafka overview
• Distributed Scalable Pub/Sub system for big
data
• Producer -> Broker -> Consumer of message
topics
• Can have multiple clients consuming at
different velocities
(synchronous/asynchronous)
• Notion of consumer group to parallelize
consumption of messages
• Persists messages so ability to rewind
© 2013 Impetus Technologies - Confidential6
Kafka overview
• More overview pictures:
© 2013 Impetus Technologies - Confidential7
Camus overview
• Pipeline out of Kafka to HDFS
• Automatic discovery of topics and partitions
• Finds latest offsets from Kafka nodes
• Uses Avro by default; option to use your own
Decoder
• Allocates topic pulls among a set # of Hadoop
job tasks
• Move data files to HDFS directories according
to timestamp
• Remembers last offset / topic
© 2013 Impetus Technologies - Confidential8
Infrastructure
• Kafka 0.7.2
• 3 nodes
• Benchmark tool to issue message size, #
of threads, # of messages, topic name,
data encoding
• CDH 4.2
• 1 NN, 1 SNN, 3 slaves for Hadoop
• Camus
• JSON or Avro decoder
• Zookeeper
• Hive
© 2013 Impetus Technologies - Confidential9
Infrastructure
• 8 Amazon EC2 large instances
• Dual core 2.0 Ghz
• 1 7200 rpm SATA drive
• 8 Gigs memory
• 200 bytes message
• 1 Producer – 1 consumer
© 2013 Impetus Technologies - Confidential10
Customer
architecture
Gam
ing
Shop
ping
Invite
friends
Consume
topics via
Camus
every hour
Kafka topic:
Data events
(i.e. User
profile
registrations)
Kafka topic:
UI events (i.e.
game
interaction)
Use Hive to
analyze the data
© 2013 Impetus Technologies - Confidential11
Performance
summary• Producer:
• Avg 20,000 messages / sec
• 3.81 MB per sec
• Consumer:
• 16,600 messages/ sec
• 3.17 MB per sec -> 190 Gig/hr
• Customer Goal: “want to scale to 5000 events
per second at peak.”
© 2013 Impetus Technologies - Confidential12
Performance
benchmarkdata size input Data type
Storage size on HDFS
(in bytes)
Hive Count
(in sec)
Hive max
(in sec) Camus run time Kafka
500000 records JSON text data 103779151 38.3 5946 seconds 34.2
JSON Serde 103779151 46.3 48.246 seconds 34.2
Avro data 60962022 25.2 29.354 seconds 15.9
1 Million records JSON text data -1M 416556931 27.582 50.8891 minute 40.56
JSON Serde -1M 416556931 39.428 32.305 40.56
Avro data 1M 122041553 35.806 26.3281 minute 22.36
7 Million records JSON text data - 7M 1456636071 57.895 111.5983 minutes 50 seconds 388
JSON Serde - 7M 1456636071 83.225 83.7763 minutes 50 seconds 388
Avro data - 7M 866962131 60.63 62.8964 minutes 50 181
10 Million records JSON text data - 10M 1919381181 78.337 144.6675 minutes 1 seconds 558
JSON Serde - 10M 1919381181 103.4 1105 minutes 1 seconds 558
Avro data - 10M 1239446765 87.042 90.9587 minutes 23 seconds 230
15 Million records JSON text data - 15M 3157886975 107.325 201.1256 minutes 24 seconds 851
JSON Serde - 15M 3157886975 141.345 153.365 851
Avro data - 15M 1865267728 96.9 98.98 minutes 26 seconds 377
20 Million records JSON text data - 20M 1159
JSON Serde - 20M 1159
Avro data - 20M 2476833359 133.606 153.46411 minutes 2 seconds 234
© 2013 Impetus Technologies - Confidential13
© 2013 Impetus Technologies - Confidential14
Kafka Speed Performance
benchmark
Kafka 500000 records
1 Million
records
7 Million
records
10 Million
records
15 Million
records
20 Million
records
JSON text data 34.2 40.56 388 558 851 1159
JSON Serde 34.2 40.56 388 558 851 1159
Avro data 15.9 22.36 181 230 377 534
34.2 40.56
388
558
851
1159
34.2 40.56
388
558
851
1159
15.9 22.36
181
230
377
534
500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records
Kafka comparison
JSON text data JSON Serde Avro data
© 2013 Impetus Technologies - Confidential15
Camus Speed
Performance benchmark
Camus 500000 records
1 Million
records
7 Million
records
10 Million
records
15 Million
records
20 Million
records
JSON text data 46 60 230 301 384
JSON Serde 46 60 230 301 384
Avro data 54 85 290 443 506 662
0
100
200
300
400
500
600
700
500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records
Camus comparison
JSON text data JSON Serde Avro data
© 2013 Impetus Technologies - Confidential16
Count Speed Performance
Count 500000 records
1 Million
records
7 Million
records
10 Million
records
15 Million
records
20
Million
records
JSON text data 38.3 27.58 57.89 78.337 107.325
JSON Serde 46.3 39.42 83.2 103.4 141.345
Avro data 25.2 35.8 60.6 87.042 96.9 133.606
0
20
40
60
80
100
120
140
160
500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records
Select Count(*) comparison
JSON text data JSON Serde Avro data
© 2013 Impetus Technologies - Confidential17
Max Speed Performance
0
50
100
150
200
250
500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records
Max(field) comparison
JSON text data JSON Serde Avro data
Max 500000 records
1 Million
records 7 Million records
10 Million
records
15 Million
records
20 Million
records
JSON text data 59 50.889 111.598 144.667 201.125
JSON Serde 48.2 32.305 83.776 110 153.365
Avro data 29.3 26.328 62.896 90.958 98.9 153.464
© 2013 Impetus Technologies - Confidential18
Q&A
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...
Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...
Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...DataWorks Summit/Hadoop Summit
 
Apache Kafka at LinkedIn
Apache Kafka at LinkedInApache Kafka at LinkedIn
Apache Kafka at LinkedInGuozhang Wang
 
Introduction Apache Kafka
Introduction Apache KafkaIntroduction Apache Kafka
Introduction Apache KafkaJoe Stein
 
Introduction to Kafka
Introduction to KafkaIntroduction to Kafka
Introduction to KafkaAkash Vacher
 
Real time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and CouchbaseReal time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and CouchbaseWill Gardella
 
How to Lock Down Apache Kafka and Keep Your Streams Safe
How to Lock Down Apache Kafka and Keep Your Streams SafeHow to Lock Down Apache Kafka and Keep Your Streams Safe
How to Lock Down Apache Kafka and Keep Your Streams Safeconfluent
 
Kafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life Example
Kafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life ExampleKafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life Example
Kafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life Exampleconfluent
 
Developing with the Go client for Apache Kafka
Developing with the Go client for Apache KafkaDeveloping with the Go client for Apache Kafka
Developing with the Go client for Apache KafkaJoe Stein
 
Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...
Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...
Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...JAXLondon2014
 
Kafka connect-london-meetup-2016
Kafka connect-london-meetup-2016Kafka connect-london-meetup-2016
Kafka connect-london-meetup-2016Gwen (Chen) Shapira
 
Introduction to Apache Kafka- Part 1
Introduction to Apache Kafka- Part 1Introduction to Apache Kafka- Part 1
Introduction to Apache Kafka- Part 1Knoldus Inc.
 
Introduction to Apache Kafka and why it matters - Madrid
Introduction to Apache Kafka and why it matters - MadridIntroduction to Apache Kafka and why it matters - Madrid
Introduction to Apache Kafka and why it matters - MadridPaolo Castagna
 
A la rencontre de Kafka, le log distribué par Florian GARCIA
A la rencontre de Kafka, le log distribué par Florian GARCIAA la rencontre de Kafka, le log distribué par Florian GARCIA
A la rencontre de Kafka, le log distribué par Florian GARCIALa Cuisine du Web
 
From Message to Cluster: A Realworld Introduction to Kafka Capacity Planning
From Message to Cluster: A Realworld Introduction to Kafka Capacity PlanningFrom Message to Cluster: A Realworld Introduction to Kafka Capacity Planning
From Message to Cluster: A Realworld Introduction to Kafka Capacity Planningconfluent
 
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming ApplicationsRunning Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming ApplicationsLightbend
 

Was ist angesagt? (20)

Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...
Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...
Building Large-Scale Stream Infrastructures Across Multiple Data Centers with...
 
Kafka - Linkedin's messaging backbone
Kafka - Linkedin's messaging backboneKafka - Linkedin's messaging backbone
Kafka - Linkedin's messaging backbone
 
Apache Kafka at LinkedIn
Apache Kafka at LinkedInApache Kafka at LinkedIn
Apache Kafka at LinkedIn
 
Introduction Apache Kafka
Introduction Apache KafkaIntroduction Apache Kafka
Introduction Apache Kafka
 
kafka for db as postgres
kafka for db as postgreskafka for db as postgres
kafka for db as postgres
 
Introduction to Kafka
Introduction to KafkaIntroduction to Kafka
Introduction to Kafka
 
Real time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and CouchbaseReal time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and Couchbase
 
How to Lock Down Apache Kafka and Keep Your Streams Safe
How to Lock Down Apache Kafka and Keep Your Streams SafeHow to Lock Down Apache Kafka and Keep Your Streams Safe
How to Lock Down Apache Kafka and Keep Your Streams Safe
 
Kafka blr-meetup-presentation - Kafka internals
Kafka blr-meetup-presentation - Kafka internalsKafka blr-meetup-presentation - Kafka internals
Kafka blr-meetup-presentation - Kafka internals
 
Kafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life Example
Kafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life ExampleKafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life Example
Kafka Summit NYC 2017 Introduction to Kafka Streams with a Real-life Example
 
Developing with the Go client for Apache Kafka
Developing with the Go client for Apache KafkaDeveloping with the Go client for Apache Kafka
Developing with the Go client for Apache Kafka
 
Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...
Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...
Detecting Events on the Web in Real Time with Java, Kafka and ZooKeeper - Jam...
 
Kafka connect-london-meetup-2016
Kafka connect-london-meetup-2016Kafka connect-london-meetup-2016
Kafka connect-london-meetup-2016
 
Introduction to Apache Kafka- Part 1
Introduction to Apache Kafka- Part 1Introduction to Apache Kafka- Part 1
Introduction to Apache Kafka- Part 1
 
Introduction to Apache Kafka and why it matters - Madrid
Introduction to Apache Kafka and why it matters - MadridIntroduction to Apache Kafka and why it matters - Madrid
Introduction to Apache Kafka and why it matters - Madrid
 
Data Pipeline with Kafka
Data Pipeline with KafkaData Pipeline with Kafka
Data Pipeline with Kafka
 
Kafka internals
Kafka internalsKafka internals
Kafka internals
 
A la rencontre de Kafka, le log distribué par Florian GARCIA
A la rencontre de Kafka, le log distribué par Florian GARCIAA la rencontre de Kafka, le log distribué par Florian GARCIA
A la rencontre de Kafka, le log distribué par Florian GARCIA
 
From Message to Cluster: A Realworld Introduction to Kafka Capacity Planning
From Message to Cluster: A Realworld Introduction to Kafka Capacity PlanningFrom Message to Cluster: A Realworld Introduction to Kafka Capacity Planning
From Message to Cluster: A Realworld Introduction to Kafka Capacity Planning
 
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming ApplicationsRunning Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
 

Ähnlich wie Architecture of a Kafka camus infrastructure

Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/Sec
Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/SecNetflix Keystone - How Netflix Handles Data Streams up to 11M Events/Sec
Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/SecPeter Bakas
 
Keystone - ApacheCon 2016
Keystone - ApacheCon 2016Keystone - ApacheCon 2016
Keystone - ApacheCon 2016Peter Bakas
 
Netflix Keystone—Cloud scale event processing pipeline
Netflix Keystone—Cloud scale event processing pipelineNetflix Keystone—Cloud scale event processing pipeline
Netflix Keystone—Cloud scale event processing pipelineMonal Daxini
 
(BDT318) How Netflix Handles Up To 8 Million Events Per Second
(BDT318) How Netflix Handles Up To 8 Million Events Per Second(BDT318) How Netflix Handles Up To 8 Million Events Per Second
(BDT318) How Netflix Handles Up To 8 Million Events Per SecondAmazon Web Services
 
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...Altinity Ltd
 
Pulsar summit asia 2021 apache pulsar with mqtt for edge computing
Pulsar summit asia 2021   apache pulsar with mqtt for edge computingPulsar summit asia 2021   apache pulsar with mqtt for edge computing
Pulsar summit asia 2021 apache pulsar with mqtt for edge computingTimothy Spann
 
Cloud Security Monitoring and Spark Analytics
Cloud Security Monitoring and Spark AnalyticsCloud Security Monitoring and Spark Analytics
Cloud Security Monitoring and Spark Analyticsamesar0
 
Netflix Data Pipeline With Kafka
Netflix Data Pipeline With KafkaNetflix Data Pipeline With Kafka
Netflix Data Pipeline With KafkaSteven Wu
 
Slide share device to iot solution – a blueprint
Slide share   device to iot solution – a blueprintSlide share   device to iot solution – a blueprint
Slide share device to iot solution – a blueprintGuy Vinograd ☁
 
Netflix Open Source Meetup Season 4 Episode 2
Netflix Open Source Meetup Season 4 Episode 2Netflix Open Source Meetup Season 4 Episode 2
Netflix Open Source Meetup Season 4 Episode 2aspyker
 
Netflix keystone streaming data pipeline @scale in the cloud-dbtb-2016
Netflix keystone   streaming data pipeline @scale in the cloud-dbtb-2016Netflix keystone   streaming data pipeline @scale in the cloud-dbtb-2016
Netflix keystone streaming data pipeline @scale in the cloud-dbtb-2016Monal Daxini
 
Beaming flink to the cloud @ netflix ff 2016-monal-daxini
Beaming flink to the cloud @ netflix   ff 2016-monal-daxiniBeaming flink to the cloud @ netflix   ff 2016-monal-daxini
Beaming flink to the cloud @ netflix ff 2016-monal-daxiniMonal Daxini
 
Monal Daxini - Beaming Flink to the Cloud @ Netflix
Monal Daxini - Beaming Flink to the Cloud @ NetflixMonal Daxini - Beaming Flink to the Cloud @ Netflix
Monal Daxini - Beaming Flink to the Cloud @ NetflixFlink Forward
 
Big data Argentina meetup 2020-09: Intro to presto on docker
Big data Argentina meetup 2020-09: Intro to presto on dockerBig data Argentina meetup 2020-09: Intro to presto on docker
Big data Argentina meetup 2020-09: Intro to presto on dockerFederico Palladoro
 
Data Streaming with Apache Kafka & MongoDB
Data Streaming with Apache Kafka & MongoDBData Streaming with Apache Kafka & MongoDB
Data Streaming with Apache Kafka & MongoDBconfluent
 
#TwitterRealTime - Real time processing @twitter
#TwitterRealTime - Real time processing @twitter#TwitterRealTime - Real time processing @twitter
#TwitterRealTime - Real time processing @twitterTwitter Developers
 
Event Detection Pipelines with Apache Kafka
Event Detection Pipelines with Apache KafkaEvent Detection Pipelines with Apache Kafka
Event Detection Pipelines with Apache KafkaDataWorks Summit
 

Ähnlich wie Architecture of a Kafka camus infrastructure (20)

Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/Sec
Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/SecNetflix Keystone - How Netflix Handles Data Streams up to 11M Events/Sec
Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/Sec
 
Keystone - ApacheCon 2016
Keystone - ApacheCon 2016Keystone - ApacheCon 2016
Keystone - ApacheCon 2016
 
Netflix Keystone—Cloud scale event processing pipeline
Netflix Keystone—Cloud scale event processing pipelineNetflix Keystone—Cloud scale event processing pipeline
Netflix Keystone—Cloud scale event processing pipeline
 
Robotics technical Presentation
Robotics technical PresentationRobotics technical Presentation
Robotics technical Presentation
 
(BDT318) How Netflix Handles Up To 8 Million Events Per Second
(BDT318) How Netflix Handles Up To 8 Million Events Per Second(BDT318) How Netflix Handles Up To 8 Million Events Per Second
(BDT318) How Netflix Handles Up To 8 Million Events Per Second
 
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
 
Pulsar summit asia 2021 apache pulsar with mqtt for edge computing
Pulsar summit asia 2021   apache pulsar with mqtt for edge computingPulsar summit asia 2021   apache pulsar with mqtt for edge computing
Pulsar summit asia 2021 apache pulsar with mqtt for edge computing
 
Cloud Security Monitoring and Spark Analytics
Cloud Security Monitoring and Spark AnalyticsCloud Security Monitoring and Spark Analytics
Cloud Security Monitoring and Spark Analytics
 
Netflix Data Pipeline With Kafka
Netflix Data Pipeline With KafkaNetflix Data Pipeline With Kafka
Netflix Data Pipeline With Kafka
 
Netflix Data Pipeline With Kafka
Netflix Data Pipeline With KafkaNetflix Data Pipeline With Kafka
Netflix Data Pipeline With Kafka
 
Slide share device to iot solution – a blueprint
Slide share   device to iot solution – a blueprintSlide share   device to iot solution – a blueprint
Slide share device to iot solution – a blueprint
 
Netflix Open Source Meetup Season 4 Episode 2
Netflix Open Source Meetup Season 4 Episode 2Netflix Open Source Meetup Season 4 Episode 2
Netflix Open Source Meetup Season 4 Episode 2
 
Netflix keystone streaming data pipeline @scale in the cloud-dbtb-2016
Netflix keystone   streaming data pipeline @scale in the cloud-dbtb-2016Netflix keystone   streaming data pipeline @scale in the cloud-dbtb-2016
Netflix keystone streaming data pipeline @scale in the cloud-dbtb-2016
 
Beaming flink to the cloud @ netflix ff 2016-monal-daxini
Beaming flink to the cloud @ netflix   ff 2016-monal-daxiniBeaming flink to the cloud @ netflix   ff 2016-monal-daxini
Beaming flink to the cloud @ netflix ff 2016-monal-daxini
 
Monal Daxini - Beaming Flink to the Cloud @ Netflix
Monal Daxini - Beaming Flink to the Cloud @ NetflixMonal Daxini - Beaming Flink to the Cloud @ Netflix
Monal Daxini - Beaming Flink to the Cloud @ Netflix
 
Big data Argentina meetup 2020-09: Intro to presto on docker
Big data Argentina meetup 2020-09: Intro to presto on dockerBig data Argentina meetup 2020-09: Intro to presto on docker
Big data Argentina meetup 2020-09: Intro to presto on docker
 
Data Streaming with Apache Kafka & MongoDB
Data Streaming with Apache Kafka & MongoDBData Streaming with Apache Kafka & MongoDB
Data Streaming with Apache Kafka & MongoDB
 
KONG-APIGateway.pptx
KONG-APIGateway.pptxKONG-APIGateway.pptx
KONG-APIGateway.pptx
 
#TwitterRealTime - Real time processing @twitter
#TwitterRealTime - Real time processing @twitter#TwitterRealTime - Real time processing @twitter
#TwitterRealTime - Real time processing @twitter
 
Event Detection Pipelines with Apache Kafka
Event Detection Pipelines with Apache KafkaEvent Detection Pipelines with Apache Kafka
Event Detection Pipelines with Apache Kafka
 

Kürzlich hochgeladen

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Kürzlich hochgeladen (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 

Architecture of a Kafka camus infrastructure

  • 1. © 2013 Impetus Technologies - Confidential1 Kafka/Camus Project Phase I Mountain View, CA March 2013 (photos courtesy of LinkedIn)
  • 2. © 2013 Impetus Technologies - Confidential2 Agenda • Objective • What tool to use? • Kafka & Camus overview • Infrastructure • Architecture • Performance benchmarks
  • 3. © 2013 Impetus Technologies - Confidential3 Objective • Customer has events (Data, UI) that happen real-time, that need to be analyzed • Immediate need for batch-oriented mechanism • Events need to by ETL’ed and analyzed in Hadoop • Future need for more real-time stream analysis • Potential bursts of streaming data
  • 4. © 2013 Impetus Technologies - Confidential4 What tool to use? • JMS: • just an API • Not cross language • Painful • Doesn’t scale • Active MQ • Didn’t work for Linkedin: • http://sites.computer.org/debull/A12june/pipeline .pdf • Apache Flume
  • 5. © 2013 Impetus Technologies - Confidential5 Kafka overview • Distributed Scalable Pub/Sub system for big data • Producer -> Broker -> Consumer of message topics • Can have multiple clients consuming at different velocities (synchronous/asynchronous) • Notion of consumer group to parallelize consumption of messages • Persists messages so ability to rewind
  • 6. © 2013 Impetus Technologies - Confidential6 Kafka overview • More overview pictures:
  • 7. © 2013 Impetus Technologies - Confidential7 Camus overview • Pipeline out of Kafka to HDFS • Automatic discovery of topics and partitions • Finds latest offsets from Kafka nodes • Uses Avro by default; option to use your own Decoder • Allocates topic pulls among a set # of Hadoop job tasks • Move data files to HDFS directories according to timestamp • Remembers last offset / topic
  • 8. © 2013 Impetus Technologies - Confidential8 Infrastructure • Kafka 0.7.2 • 3 nodes • Benchmark tool to issue message size, # of threads, # of messages, topic name, data encoding • CDH 4.2 • 1 NN, 1 SNN, 3 slaves for Hadoop • Camus • JSON or Avro decoder • Zookeeper • Hive
  • 9. © 2013 Impetus Technologies - Confidential9 Infrastructure • 8 Amazon EC2 large instances • Dual core 2.0 Ghz • 1 7200 rpm SATA drive • 8 Gigs memory • 200 bytes message • 1 Producer – 1 consumer
  • 10. © 2013 Impetus Technologies - Confidential10 Customer architecture Gam ing Shop ping Invite friends Consume topics via Camus every hour Kafka topic: Data events (i.e. User profile registrations) Kafka topic: UI events (i.e. game interaction) Use Hive to analyze the data
  • 11. © 2013 Impetus Technologies - Confidential11 Performance summary• Producer: • Avg 20,000 messages / sec • 3.81 MB per sec • Consumer: • 16,600 messages/ sec • 3.17 MB per sec -> 190 Gig/hr • Customer Goal: “want to scale to 5000 events per second at peak.”
  • 12. © 2013 Impetus Technologies - Confidential12 Performance benchmarkdata size input Data type Storage size on HDFS (in bytes) Hive Count (in sec) Hive max (in sec) Camus run time Kafka 500000 records JSON text data 103779151 38.3 5946 seconds 34.2 JSON Serde 103779151 46.3 48.246 seconds 34.2 Avro data 60962022 25.2 29.354 seconds 15.9 1 Million records JSON text data -1M 416556931 27.582 50.8891 minute 40.56 JSON Serde -1M 416556931 39.428 32.305 40.56 Avro data 1M 122041553 35.806 26.3281 minute 22.36 7 Million records JSON text data - 7M 1456636071 57.895 111.5983 minutes 50 seconds 388 JSON Serde - 7M 1456636071 83.225 83.7763 minutes 50 seconds 388 Avro data - 7M 866962131 60.63 62.8964 minutes 50 181 10 Million records JSON text data - 10M 1919381181 78.337 144.6675 minutes 1 seconds 558 JSON Serde - 10M 1919381181 103.4 1105 minutes 1 seconds 558 Avro data - 10M 1239446765 87.042 90.9587 minutes 23 seconds 230 15 Million records JSON text data - 15M 3157886975 107.325 201.1256 minutes 24 seconds 851 JSON Serde - 15M 3157886975 141.345 153.365 851 Avro data - 15M 1865267728 96.9 98.98 minutes 26 seconds 377 20 Million records JSON text data - 20M 1159 JSON Serde - 20M 1159 Avro data - 20M 2476833359 133.606 153.46411 minutes 2 seconds 234
  • 13. © 2013 Impetus Technologies - Confidential13
  • 14. © 2013 Impetus Technologies - Confidential14 Kafka Speed Performance benchmark Kafka 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records JSON text data 34.2 40.56 388 558 851 1159 JSON Serde 34.2 40.56 388 558 851 1159 Avro data 15.9 22.36 181 230 377 534 34.2 40.56 388 558 851 1159 34.2 40.56 388 558 851 1159 15.9 22.36 181 230 377 534 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records Kafka comparison JSON text data JSON Serde Avro data
  • 15. © 2013 Impetus Technologies - Confidential15 Camus Speed Performance benchmark Camus 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records JSON text data 46 60 230 301 384 JSON Serde 46 60 230 301 384 Avro data 54 85 290 443 506 662 0 100 200 300 400 500 600 700 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records Camus comparison JSON text data JSON Serde Avro data
  • 16. © 2013 Impetus Technologies - Confidential16 Count Speed Performance Count 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records JSON text data 38.3 27.58 57.89 78.337 107.325 JSON Serde 46.3 39.42 83.2 103.4 141.345 Avro data 25.2 35.8 60.6 87.042 96.9 133.606 0 20 40 60 80 100 120 140 160 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records Select Count(*) comparison JSON text data JSON Serde Avro data
  • 17. © 2013 Impetus Technologies - Confidential17 Max Speed Performance 0 50 100 150 200 250 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records Max(field) comparison JSON text data JSON Serde Avro data Max 500000 records 1 Million records 7 Million records 10 Million records 15 Million records 20 Million records JSON text data 59 50.889 111.598 144.667 201.125 JSON Serde 48.2 32.305 83.776 110 153.365 Avro data 29.3 26.328 62.896 90.958 98.9 153.464
  • 18. © 2013 Impetus Technologies - Confidential18 Q&A Thank You

Hinweis der Redaktion

  1. Active mq: t if the queue backed up beyond what could be kept inmemory, performance would severely degrade due to heavy amounts of random I/O.Flume: Flume is a distributed, reliable, and available service for moving large amounts of log data. It accepts on streaming data flows; Ability to store the data temporarily.Very fast.
  2. Assumes everythings (all the layers) are distributed, and can be started at any given time, no master node. (scalability). It’s all synced and coordinated by Zookepper.Kafka acts as a buffer; between live activity and asynchronous processing.Was built for high thruput by Linkedin.Provides a single pipeline of data for both online and offline consumers. is well suited for situations where you need to both process data in realtime while still having the possibility to analyse them in bulk via MapReduce later on.concept
  3. Camus is LinkedIn's Kafka->HDFS pipeline. It is a mapreduce job that does distributed data loads out of Kafka. Setup stage fetches available topics and partitions from Zookeeper and the latest offsets from the Kafka Nodes.Atstartup time the job reads its current offset for each partition from a file in HDFS and queries Kafka to discoverany new topics and read the current log offset for each partition. It then loads all data from the last load offset tothe current Kafka offset and writes it out to Hadoop,