SlideShare a Scribd company logo
1 of 14
Yogesh..BG
27th Nov 2015
• Introduction
• Features
• Architecture
• Storage
• Topic
• Producer and consumer
• Broker
• Zookeeper
• Use Cases
• Comparison with RMQ & AMQ
10/25/2016 Confidential 2
Agenda
Introduction
10/25/2016 Confidential 3
Open Source messaging Q written in scala.
LinkedIn Corp -> Apache
Producer1
Producer2
Queue
Consumer1
Consumer2
Consumer3
Features
10/25/2016 Confidential 4
• Brokered
• Distributed
• high throughput for publish and subscribe
• easy scalable
• fast
• replicated commit log service
• partitioned
• stores messages on disk
• In order delivery, per partition.
Architecture
10/25/2016 Confidential 5
Elements are:
• Messages
• Producer
• Consumer
• Topic
• Broker [Cluster]
• Zookeeper
Broker
10/25/2016 Confidential 6
• Stateless brokers.
• Transient System – deletes data
• Time-based SLA for the retention policy.
• Zero copy
Storage
10/25/2016 Confidential 7
Topic
10/25/2016 Confidential 8
• Unique identification for messages – offset
• Consumer can change the offset to re consume or skip the message
• Replicated among the configurable number of servers.
• Retention policy
• Parallelism at partitions level
Producers and Consumers
10/25/2016 Confidential 9
Producers:
• Decides which message to which partition - LB.
• Batch the messages
• Async Send
Consumers:
• Pull
• Queuing and pub-sub
• Consumer groups - cluster of consumers
• Ordered per partition
Zookeeper
10/25/2016 Confidential 10
Use Cases
10/25/2016 Confidential 11
• Messaging
• Website activity tracking
• Metrics
• Log Aggregation
• Stream Processing
• Event Publishing
Comparison
10/25/2016 Confidential 12
Sooo fast… How come?
10/25/2016 Confidential 13
1. No wait.
2. efficient storage format.
Header -> 9bytes (144 bytes in AMQ(As per JMS)).
3. Zero copy
4. Compressing multiple messages – message set
Thank You
Yogesh..BG
10/25/2016 Confidential 14

More Related Content

What's hot

SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020
SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020
SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020
Redis Labs
 
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
Redis Labs
 
ServiceNow-Box Integration
ServiceNow-Box IntegrationServiceNow-Box Integration
ServiceNow-Box Integration
Nagendra B
 

What's hot (20)

SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020
SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020
SQL, Redis and Kubernetes by Paul Stanton of Windocks - Redis Day Seattle 2020
 
Openstack trove-updates
Openstack trove-updatesOpenstack trove-updates
Openstack trove-updates
 
Kafka as a Datastore
Kafka as a DatastoreKafka as a Datastore
Kafka as a Datastore
 
Containerized Storage for Containers: Why, What and How OpenEBS Works
Containerized Storage for Containers:  Why, What and How OpenEBS WorksContainerized Storage for Containers:  Why, What and How OpenEBS Works
Containerized Storage for Containers: Why, What and How OpenEBS Works
 
Application Deployment and Management at Scale at 1&1
Application Deployment and Management at Scale at 1&1Application Deployment and Management at Scale at 1&1
Application Deployment and Management at Scale at 1&1
 
Reliable, Scalable Kubernetes on AWS
Reliable, Scalable Kubernetes on AWSReliable, Scalable Kubernetes on AWS
Reliable, Scalable Kubernetes on AWS
 
RedisConf18 - Video Experience Operational Insights in Real Time.
RedisConf18 - Video Experience Operational Insights in Real Time.RedisConf18 - Video Experience Operational Insights in Real Time.
RedisConf18 - Video Experience Operational Insights in Real Time.
 
autodiscoverable microservices with vertx3
autodiscoverable microservices with vertx3autodiscoverable microservices with vertx3
autodiscoverable microservices with vertx3
 
Microservice - Up to 500k CCU
Microservice - Up to 500k CCUMicroservice - Up to 500k CCU
Microservice - Up to 500k CCU
 
Leveraging Redis for System Monitoring by Adam McCormick of SBG - Redis Day S...
Leveraging Redis for System Monitoring by Adam McCormick of SBG - Redis Day S...Leveraging Redis for System Monitoring by Adam McCormick of SBG - Redis Day S...
Leveraging Redis for System Monitoring by Adam McCormick of SBG - Redis Day S...
 
Globus Connect Server 5.1 Webinar
Globus Connect Server 5.1 WebinarGlobus Connect Server 5.1 Webinar
Globus Connect Server 5.1 Webinar
 
Flocker
FlockerFlocker
Flocker
 
Does Hypervisor matter in OpenStack
Does Hypervisor matter in OpenStackDoes Hypervisor matter in OpenStack
Does Hypervisor matter in OpenStack
 
NATS vs HTTP
NATS vs HTTPNATS vs HTTP
NATS vs HTTP
 
OpenCms Days 2015 OCEE explained
OpenCms Days 2015 OCEE explainedOpenCms Days 2015 OCEE explained
OpenCms Days 2015 OCEE explained
 
PaaS options for .NET
PaaS options for .NETPaaS options for .NET
PaaS options for .NET
 
Ceph Management and Monitoring with Dashboard v2 - Lenz Grimmer
Ceph Management and Monitoring with Dashboard v2 - Lenz GrimmerCeph Management and Monitoring with Dashboard v2 - Lenz Grimmer
Ceph Management and Monitoring with Dashboard v2 - Lenz Grimmer
 
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
 
ServiceNow-Box Integration
ServiceNow-Box IntegrationServiceNow-Box Integration
ServiceNow-Box Integration
 
OpenNebulaconf2017EU: OpenNebula 5.4 and Beyond by Tino Vázquez and Ruben S. ...
OpenNebulaconf2017EU: OpenNebula 5.4 and Beyond by Tino Vázquez and Ruben S. ...OpenNebulaconf2017EU: OpenNebula 5.4 and Beyond by Tino Vázquez and Ruben S. ...
OpenNebulaconf2017EU: OpenNebula 5.4 and Beyond by Tino Vázquez and Ruben S. ...
 

Viewers also liked

Centrales hidraulicas
Centrales hidraulicasCentrales hidraulicas
Centrales hidraulicas
gabriel60
 
TIPOS DE COMPUTADRAS
TIPOS DE COMPUTADRASTIPOS DE COMPUTADRAS
TIPOS DE COMPUTADRAS
laurapallero5
 
Peds simualtion san antonio2
Peds simualtion san antonio2Peds simualtion san antonio2
Peds simualtion san antonio2
boyd888
 
"Introduction to R Programming and Machine Learning"
"Introduction to R Programming and Machine Learning""Introduction to R Programming and Machine Learning"
"Introduction to R Programming and Machine Learning"
Edureka!
 
MENISCUS REPAIR I Dr.RAJAT JANGIR JAIPUR
MENISCUS REPAIR  I Dr.RAJAT JANGIR JAIPURMENISCUS REPAIR  I Dr.RAJAT JANGIR JAIPUR
MENISCUS REPAIR I Dr.RAJAT JANGIR JAIPUR
Dr.RAJAT JANGIR Orthopaedic surgeon Jaipur
 
Vandens reikšmė žmogaus organizmui
Vandens reikšmė žmogaus organizmuiVandens reikšmė žmogaus organizmui
Vandens reikšmė žmogaus organizmui
biomokykla
 

Viewers also liked (18)

Vicoz y vicoz two minig concessions in Puno Peru
Vicoz y vicoz two minig concessions in Puno PeruVicoz y vicoz two minig concessions in Puno Peru
Vicoz y vicoz two minig concessions in Puno Peru
 
Centrales hidraulicas
Centrales hidraulicasCentrales hidraulicas
Centrales hidraulicas
 
Sinopsis
SinopsisSinopsis
Sinopsis
 
Actividad #1 saia 2016
Actividad #1 saia 2016Actividad #1 saia 2016
Actividad #1 saia 2016
 
Christmas traditions in Romania, KA2
Christmas traditions in Romania, KA2Christmas traditions in Romania, KA2
Christmas traditions in Romania, KA2
 
TIPOS DE COMPUTADRAS
TIPOS DE COMPUTADRASTIPOS DE COMPUTADRAS
TIPOS DE COMPUTADRAS
 
Jenkins a latravis - @cfgmgmtcamp 2016
Jenkins a latravis - @cfgmgmtcamp 2016Jenkins a latravis - @cfgmgmtcamp 2016
Jenkins a latravis - @cfgmgmtcamp 2016
 
Vicoz y vicoz 2, im landkreis coasa
Vicoz y vicoz 2, im landkreis coasaVicoz y vicoz 2, im landkreis coasa
Vicoz y vicoz 2, im landkreis coasa
 
Termistores saia
Termistores saiaTermistores saia
Termistores saia
 
Home flip
Home flipHome flip
Home flip
 
"Naghihinayang na Pag-ibig" - Tagupa
"Naghihinayang na Pag-ibig" - Tagupa"Naghihinayang na Pag-ibig" - Tagupa
"Naghihinayang na Pag-ibig" - Tagupa
 
Peds simualtion san antonio2
Peds simualtion san antonio2Peds simualtion san antonio2
Peds simualtion san antonio2
 
Advantages and Disadvantages and Disadvantages of being Rich
Advantages and Disadvantages and Disadvantages of being RichAdvantages and Disadvantages and Disadvantages of being Rich
Advantages and Disadvantages and Disadvantages of being Rich
 
"Introduction to R Programming and Machine Learning"
"Introduction to R Programming and Machine Learning""Introduction to R Programming and Machine Learning"
"Introduction to R Programming and Machine Learning"
 
MENISCUS REPAIR I Dr.RAJAT JANGIR JAIPUR
MENISCUS REPAIR  I Dr.RAJAT JANGIR JAIPURMENISCUS REPAIR  I Dr.RAJAT JANGIR JAIPUR
MENISCUS REPAIR I Dr.RAJAT JANGIR JAIPUR
 
Internet of Things Security: IBM HorizonWatch 2016 Trend Brief
Internet of Things Security:  IBM HorizonWatch 2016 Trend BriefInternet of Things Security:  IBM HorizonWatch 2016 Trend Brief
Internet of Things Security: IBM HorizonWatch 2016 Trend Brief
 
Vandens reikšmė žmogaus organizmui
Vandens reikšmė žmogaus organizmuiVandens reikšmė žmogaus organizmui
Vandens reikšmė žmogaus organizmui
 
Neu-IR 2016: Lessons from the Trenches
Neu-IR 2016: Lessons from the TrenchesNeu-IR 2016: Lessons from the Trenches
Neu-IR 2016: Lessons from the Trenches
 

Similar to Apache kafka

Using Apache Cassandra and Apache Kafka to Scale Next Gen Applications
Using Apache Cassandra and Apache Kafka to Scale Next Gen ApplicationsUsing Apache Cassandra and Apache Kafka to Scale Next Gen Applications
Using Apache Cassandra and Apache Kafka to Scale Next Gen Applications
Data Con LA
 

Similar to Apache kafka (20)

Pulsar - flexible pub-sub for internet scale
Pulsar - flexible pub-sub for internet scalePulsar - flexible pub-sub for internet scale
Pulsar - flexible pub-sub for internet scale
 
Pimping the ForgeRock Identity Platform for a Billion Users
Pimping the ForgeRock Identity Platform for a Billion UsersPimping the ForgeRock Identity Platform for a Billion Users
Pimping the ForgeRock Identity Platform for a Billion Users
 
Managing storage on Prem and in Cloud
Managing storage on Prem and in CloudManaging storage on Prem and in Cloud
Managing storage on Prem and in Cloud
 
Evaluating Streaming Data Solutions
Evaluating Streaming Data SolutionsEvaluating Streaming Data Solutions
Evaluating Streaming Data Solutions
 
Apache geode
Apache geodeApache geode
Apache geode
 
Hands-on Workshop: Apache Pulsar
Hands-on Workshop: Apache PulsarHands-on Workshop: Apache Pulsar
Hands-on Workshop: Apache Pulsar
 
Distributed messaging through Kafka
Distributed messaging through KafkaDistributed messaging through Kafka
Distributed messaging through Kafka
 
Distributed messaging with Apache Kafka
Distributed messaging with Apache KafkaDistributed messaging with Apache Kafka
Distributed messaging with Apache Kafka
 
Closer Look at Cloud Centric Architectures
Closer Look at Cloud Centric ArchitecturesCloser Look at Cloud Centric Architectures
Closer Look at Cloud Centric Architectures
 
Kafka talk
Kafka talkKafka talk
Kafka talk
 
EVOLVE'15 | Enhance | Richard Gatewood | Integrating SFDC & AEM
EVOLVE'15 | Enhance | Richard Gatewood | Integrating SFDC & AEM EVOLVE'15 | Enhance | Richard Gatewood | Integrating SFDC & AEM
EVOLVE'15 | Enhance | Richard Gatewood | Integrating SFDC & AEM
 
Cloud Messaging Service: Technical Overview
Cloud Messaging Service: Technical OverviewCloud Messaging Service: Technical Overview
Cloud Messaging Service: Technical Overview
 
Apache Kafka Introduction
Apache Kafka IntroductionApache Kafka Introduction
Apache Kafka Introduction
 
Serving Files In Azure
Serving Files In AzureServing Files In Azure
Serving Files In Azure
 
Tokyo Azure Meetup #5 - Microservices and Azure Service Fabric
Tokyo Azure Meetup #5 - Microservices and Azure Service FabricTokyo Azure Meetup #5 - Microservices and Azure Service Fabric
Tokyo Azure Meetup #5 - Microservices and Azure Service Fabric
 
IBM Message Hub service in Bluemix - Apache Kafka in a public cloud
IBM Message Hub service in Bluemix - Apache Kafka in a public cloudIBM Message Hub service in Bluemix - Apache Kafka in a public cloud
IBM Message Hub service in Bluemix - Apache Kafka in a public cloud
 
Messaging, storage, or both? The real time story of Pulsar and Apache Distri...
Messaging, storage, or both?  The real time story of Pulsar and Apache Distri...Messaging, storage, or both?  The real time story of Pulsar and Apache Distri...
Messaging, storage, or both? The real time story of Pulsar and Apache Distri...
 
Introduction to Apache Kafka
Introduction to Apache KafkaIntroduction to Apache Kafka
Introduction to Apache Kafka
 
Using Apache Cassandra and Apache Kafka to Scale Next Gen Applications
Using Apache Cassandra and Apache Kafka to Scale Next Gen ApplicationsUsing Apache Cassandra and Apache Kafka to Scale Next Gen Applications
Using Apache Cassandra and Apache Kafka to Scale Next Gen Applications
 
Pulsar - Distributed pub/sub platform
Pulsar - Distributed pub/sub platformPulsar - Distributed pub/sub platform
Pulsar - Distributed pub/sub platform
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Apache kafka

Editor's Notes

  1. Non JMS Initial development was for activity tracker for web pages
  2. Has its unique design Communication is by TCP Compression
  3. Physically is a file Uses distributed commit log Storage is distributed. Kafka is all about log
  4. Leader partitions in one server handles all r/w. followers will passively copies the leader.
  5. Compression Pull Flow control at consumer side aggressive batching Suppose: Queue –> all the instances have same group name Pub-sub –> each instance has different group name
  6. Candidates: Apache Kafka Apache ActiveMQ version 5.4 RabbitMQ version 2.4   System: Linux m/c 8 2Ghz cores 16GB mem 6diskd with RAID 10 1GB network link one m/c as broker and another for Prod and Cons
  7. justification: 1. Kafka doesn’t wait for ack. 2. efficient storage format. Header is 9bytes than 144 bytes in AMQ(As per JMS). Busiest thread in AMQ is to access the B-Tree to maintain msg meta data n state. 3. Zero copy Disk -> page caches of kernal space   Kernal space -> user space User spcace -> socket buffers socket buffers -> NIC buffer 4. Compressing multiple messages – message set