SlideShare uma empresa Scribd logo
1 de 34
Baixar para ler offline
a	
  Supposi)on:	
  
“	
  can	
  MySQL	
  be	
  Ka5a	
  ?	
  ”	
  
vishnu	
  rao	
  –	
  pocketmath.com	
  
Apache	
  Ka5a	
  
Apache	
  Ka5a	
  
•  A	
  publish-­‐subscribe	
  messaging	
  system	
  
implemented	
  as	
  distributed	
  commit	
  log.	
  
Apache	
  Ka5a	
  
•  A	
  publish-­‐subscribe	
  messaging	
  system	
  
implemented	
  as	
  distributed	
  commit	
  log.	
  
•  No)ons:	
  
Apache	
  Ka5a	
  
•  A	
  publish-­‐subscribe	
  messaging	
  system	
  
implemented	
  as	
  distributed	
  commit	
  log.	
  
•  No)ons:	
  
– Producer	
  
Apache	
  Ka5a	
  
•  A	
  publish-­‐subscribe	
  messaging	
  system	
  
implemented	
  as	
  distributed	
  commit	
  log.	
  
•  No)ons:	
  
– Producer	
  
– Topic	
  
Apache	
  Ka5a	
  
•  A	
  publish-­‐subscribe	
  messaging	
  system	
  
implemented	
  as	
  distributed	
  commit	
  log.	
  
•  No)ons:	
  
– Producer	
  
– Topic	
  
– Consumer	
  
Apache	
  Ka5a	
  
•  A	
  publish-­‐subscribe	
  messaging	
  system	
  
implemented	
  as	
  distributed	
  commit	
  log.	
  
•  No)ons:	
  
– Producer	
  
– Topic	
  
– Consumer	
  
– Message	
  offset	
  
	
  
Apache	
  Ka5a	
  
•  A	
  publish-­‐subscribe	
  messaging	
  system	
  
implemented	
  as	
  distributed	
  commit	
  log.	
  
•  No)ons:	
  
– Producer	
  
– Topic	
  
– Consumer	
  
– Message	
  offset	
  
– Broker	
  
	
  
•  Producers	
  publish	
  messages	
  to	
  a	
  topic.	
  	
  
	
  
•  Producers	
  publish	
  messages	
  to	
  a	
  topic.	
  	
  
	
  
•  Topic	
  is	
  just	
  a	
  par))oned	
  write-­‐ahead	
  log.	
  
Producers	
  APPEND	
  records	
  to	
  these	
  logs.	
  
	
  
•  Producers	
  publish	
  messages	
  to	
  a	
  topic.	
  	
  
	
  
•  Topic	
  is	
  just	
  a	
  par))oned	
  write-­‐ahead	
  log.	
  
Producers	
  APPEND	
  records	
  to	
  these	
  logs.	
  
•  Every	
  message	
  is	
  at	
  a	
  OFFSET	
  in	
  the	
  log.	
  
•  Producers	
  publish	
  messages	
  to	
  a	
  topic.	
  	
  
	
  
•  Topic	
  is	
  just	
  a	
  par))oned	
  write-­‐ahead	
  log.	
  
Producers	
  APPEND	
  records	
  to	
  these	
  logs.	
  
•  Every	
  message	
  is	
  at	
  a	
  OFFSET	
  in	
  the	
  log.	
  
•  Consumers	
  consume	
  messages	
  from	
  logs	
  using	
  
offset	
  
What	
  about	
  …	
  
•  Replicas?	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
•  Horizontally	
  Scalable	
  ?	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
•  Horizontally	
  Scalable	
  ?	
  
– Add	
  more	
  MySQL	
  instances	
  (split	
  write)	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
•  Horizontally	
  Scalable	
  ?	
  
– Add	
  more	
  MySQL	
  instances	
  (split	
  write)	
  
•  Mul)ple	
  Par))ons	
  in	
  a	
  ka5a	
  broker	
  Versus	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
•  Horizontally	
  Scalable	
  ?	
  
– Add	
  more	
  MySQL	
  instances	
  (split	
  write)	
  
•  Mul)ple	
  Par))ons	
  in	
  a	
  ka5a	
  broker	
  Versus	
  
– Single	
  par))on(binlog)	
  in	
  a	
  MySQL	
  instance	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
•  Horizontally	
  Scalable	
  ?	
  
– Add	
  more	
  MySQL	
  instances	
  (split	
  write)	
  
•  Mul)ple	
  Par))ons	
  in	
  a	
  ka5a	
  broker	
  Versus	
  
– Single	
  par))on(binlog)	
  in	
  a	
  MySQL	
  instance	
  
•  Data	
  Reten)on	
  ?	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
•  Horizontally	
  Scalable	
  ?	
  
– Add	
  more	
  MySQL	
  instances	
  (split	
  write)	
  
•  Mul)ple	
  Par))ons	
  in	
  a	
  ka5a	
  broker	
  Versus	
  
– Single	
  par))on(binlog)	
  in	
  a	
  MySQL	
  instance	
  
•  Data	
  Reten)on	
  ?	
  
–  How	
  long	
  you	
  keep	
  the	
  binlogs.	
  
What	
  about	
  …	
  
•  Replicas?	
  
– MySQL	
  Master	
  –	
  Slave	
  
•  Horizontally	
  Scalable	
  ?	
  
– Add	
  more	
  MySQL	
  instances	
  (split	
  write)	
  
•  Mul)ple	
  Par))ons	
  in	
  a	
  ka5a	
  broker	
  Versus	
  
– Single	
  par))on(binlog)	
  in	
  a	
  MySQL	
  instance	
  
•  Data	
  Reten)on	
  ?	
  
–  How	
  long	
  you	
  keep	
  the	
  binlogs.	
  
•  Transac)ons	
  for	
  free	
  versus	
  no	
  txn	
  in	
  ka5a	
  
 
	
  
This	
  approach	
  might	
  seem	
  
unconven)onal	
  &	
  unorthodox.	
  
	
  
	
  
	
  
 
	
  
This	
  approach	
  might	
  seem	
  
unconven)onal	
  &	
  unorthodox.	
  
	
  
	
  
	
  
hence	
  
It’s	
  a	
  WILD	
  supposi)on	
  
“MySQL	
  can	
  be	
  Ka5a.”	
  
Thank	
  you.	
  
We	
  are	
  Hiring!	
  
h]p://www.pocketmath.com/jobs.html	
  
	
  
vishnuhr@pocketmath.com	
  
jaihind213@gmail.com	
  
sweetweet213@twi]er	
  

Mais conteúdo relacionado

Mais procurados

Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...
Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...
Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...
confluent
 

Mais procurados (20)

Camel riders in the cloud
Camel riders in the cloudCamel riders in the cloud
Camel riders in the cloud
 
Apache Con 2021 Structured Data Streaming
Apache Con 2021 Structured Data StreamingApache Con 2021 Structured Data Streaming
Apache Con 2021 Structured Data Streaming
 
AWSによるソーシャルアプリ運用事例
AWSによるソーシャルアプリ運用事例AWSによるソーシャルアプリ運用事例
AWSによるソーシャルアプリ運用事例
 
JEEConf 2018 - Camel microservices with Spring Boot and Kubernetes
JEEConf 2018 - Camel microservices with Spring Boot and KubernetesJEEConf 2018 - Camel microservices with Spring Boot and Kubernetes
JEEConf 2018 - Camel microservices with Spring Boot and Kubernetes
 
LWP + libcurl
LWP + libcurlLWP + libcurl
LWP + libcurl
 
Eventual Consistency @WalmartLabs with Kafka, Avro, SolrCloud and Hadoop
Eventual Consistency @WalmartLabs with Kafka, Avro, SolrCloud and HadoopEventual Consistency @WalmartLabs with Kafka, Avro, SolrCloud and Hadoop
Eventual Consistency @WalmartLabs with Kafka, Avro, SolrCloud and Hadoop
 
Apache Pulsar and Github
Apache Pulsar and GithubApache Pulsar and Github
Apache Pulsar and Github
 
SmartNews's journey into microservices
SmartNews's journey into microservicesSmartNews's journey into microservices
SmartNews's journey into microservices
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef Automate
 
Event-Stream Processing with Kafka
Event-Stream Processing with KafkaEvent-Stream Processing with Kafka
Event-Stream Processing with Kafka
 
Cassandra Introduction & Features
Cassandra Introduction & FeaturesCassandra Introduction & Features
Cassandra Introduction & Features
 
Dynamically scaling a political news and activism hub (up to 5x the traffic i...
Dynamically scaling a political news and activism hub (up to 5x the traffic i...Dynamically scaling a political news and activism hub (up to 5x the traffic i...
Dynamically scaling a political news and activism hub (up to 5x the traffic i...
 
Your Guide to Streaming - The Engineer's Perspective
Your Guide to Streaming - The Engineer's PerspectiveYour Guide to Streaming - The Engineer's Perspective
Your Guide to Streaming - The Engineer's Perspective
 
データの民主化のために StackStorm を活用した事例
データの民主化のために StackStorm を活用した事例データの民主化のために StackStorm を活用した事例
データの民主化のために StackStorm を活用した事例
 
Apache Pulsar Community-Jennifer
Apache Pulsar Community-JenniferApache Pulsar Community-Jennifer
Apache Pulsar Community-Jennifer
 
グラフデータベース Neptune 使ってみた
グラフデータベース Neptune 使ってみたグラフデータベース Neptune 使ってみた
グラフデータベース Neptune 使ってみた
 
Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...
Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...
Don’t Be Scared: Multi-Tenant Cluster Support at Scale (Kelly Attaway, Pandor...
 
Migrating applications to serverless Apache Kafka + KSQL
Migrating applications to serverless Apache Kafka + KSQLMigrating applications to serverless Apache Kafka + KSQL
Migrating applications to serverless Apache Kafka + KSQL
 
Open Air 2016 Mini Talk
Open Air 2016 Mini TalkOpen Air 2016 Mini Talk
Open Air 2016 Mini Talk
 
Akkurate Akka
Akkurate AkkaAkkurate Akka
Akkurate Akka
 

Destaque

Destaque (14)

Build your own Real Time Analytics and Visualization, Enable Complex Event Pr...
Build your own Real Time Analytics and Visualization, Enable Complex Event Pr...Build your own Real Time Analytics and Visualization, Enable Complex Event Pr...
Build your own Real Time Analytics and Visualization, Enable Complex Event Pr...
 
Punch clock for debugging apache storm
Punch clock for  debugging apache stormPunch clock for  debugging apache storm
Punch clock for debugging apache storm
 
Do you need microservices architecture?
Do you need microservices architecture?Do you need microservices architecture?
Do you need microservices architecture?
 
Demystifying datastores
Demystifying datastoresDemystifying datastores
Demystifying datastores
 
Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker
 
Spring IO '15 - Developing microservices, Spring Boot or Grails?
Spring IO '15 - Developing microservices, Spring Boot or Grails?Spring IO '15 - Developing microservices, Spring Boot or Grails?
Spring IO '15 - Developing microservices, Spring Boot or Grails?
 
Let's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming LanguageLet's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming Language
 
Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)
 
Microservices with Spring Boot
Microservices with Spring BootMicroservices with Spring Boot
Microservices with Spring Boot
 
Microservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring CloudMicroservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring Cloud
 
Microservice With Spring Boot and Spring Cloud
Microservice With Spring Boot and Spring CloudMicroservice With Spring Boot and Spring Cloud
Microservice With Spring Boot and Spring Cloud
 
Bangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterBangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - Poster
 
Docker by Example - Basics
Docker by Example - Basics Docker by Example - Basics
Docker by Example - Basics
 
Spring boot
Spring bootSpring boot
Spring boot
 

Semelhante a a wild Supposition: can MySQL be Kafka ?

Scaling MySQL Using Fabric
Scaling MySQL Using FabricScaling MySQL Using Fabric
Scaling MySQL Using Fabric
Remote MySQL DBA
 
Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...
Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...
Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...
Erik Onnen
 
MariaDB Galera Cluster
MariaDB Galera ClusterMariaDB Galera Cluster
MariaDB Galera Cluster
Abdul Manaf
 
London devops logging
London devops loggingLondon devops logging
London devops logging
Tomas Doran
 
Message:Passing - lpw 2012
Message:Passing - lpw 2012Message:Passing - lpw 2012
Message:Passing - lpw 2012
Tomas Doran
 

Semelhante a a wild Supposition: can MySQL be Kafka ? (20)

Scaling MySQL Using Fabric
Scaling MySQL Using FabricScaling MySQL Using Fabric
Scaling MySQL Using Fabric
 
Scaling MySQL using Fabric
Scaling MySQL using FabricScaling MySQL using Fabric
Scaling MySQL using Fabric
 
Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...
Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...
Data Models and Consumer Idioms Using Apache Kafka for Continuous Data Stream...
 
Maria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High AvailabilityMaria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High Availability
 
MariaDB Galera Cluster
MariaDB Galera ClusterMariaDB Galera Cluster
MariaDB Galera Cluster
 
London devops logging
London devops loggingLondon devops logging
London devops logging
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB Cluster
 
Scaling with sync_replication using Galera and EC2
Scaling with sync_replication using Galera and EC2Scaling with sync_replication using Galera and EC2
Scaling with sync_replication using Galera and EC2
 
Message:Passing - lpw 2012
Message:Passing - lpw 2012Message:Passing - lpw 2012
Message:Passing - lpw 2012
 
Fundamentals of Apache Kafka
Fundamentals of Apache KafkaFundamentals of Apache Kafka
Fundamentals of Apache Kafka
 
MySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB ClustersMySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB Clusters
 
MySQL Day Paris 2016 - State Of The Dolphin
MySQL Day Paris 2016 - State Of The DolphinMySQL Day Paris 2016 - State Of The Dolphin
MySQL Day Paris 2016 - State Of The Dolphin
 
MariaDB - The Future of MySQL?
MariaDB - The Future of MySQL?MariaDB - The Future of MySQL?
MariaDB - The Future of MySQL?
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterMySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
 
Distributed messaging through Kafka
Distributed messaging through KafkaDistributed messaging through Kafka
Distributed messaging through Kafka
 
MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)MariaDB: in-depth (hands on training in Seoul)
MariaDB: in-depth (hands on training in Seoul)
 
Oss4b - pxc introduction
Oss4b   - pxc introductionOss4b   - pxc introduction
Oss4b - pxc introduction
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan
 
MySQL HA
MySQL HAMySQL HA
MySQL HA
 
Why MariaDB?
Why MariaDB?Why MariaDB?
Why MariaDB?
 

Mais de vishnu rao (6)

A talk on mysql & aurora
A talk on mysql & auroraA talk on mysql & aurora
A talk on mysql & aurora
 
Introduction to Apache Kafka
Introduction to Apache KafkaIntroduction to Apache Kafka
Introduction to Apache Kafka
 
Mysql Relay log - the unsung hero
Mysql Relay log - the unsung heroMysql Relay log - the unsung hero
Mysql Relay log - the unsung hero
 
simple introduction to hadoop
simple introduction to hadoopsimple introduction to hadoop
simple introduction to hadoop
 
Druid beginner performance tips
Druid beginner performance tipsDruid beginner performance tips
Druid beginner performance tips
 
StormWars - when the data stream shrinks
StormWars - when the data stream shrinksStormWars - when the data stream shrinks
StormWars - when the data stream shrinks
 

Último

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 

Último (20)

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 

a wild Supposition: can MySQL be Kafka ?

  • 1. a  Supposi)on:   “  can  MySQL  be  Ka5a  ?  ”   vishnu  rao  –  pocketmath.com  
  • 3. Apache  Ka5a   •  A  publish-­‐subscribe  messaging  system   implemented  as  distributed  commit  log.  
  • 4. Apache  Ka5a   •  A  publish-­‐subscribe  messaging  system   implemented  as  distributed  commit  log.   •  No)ons:  
  • 5. Apache  Ka5a   •  A  publish-­‐subscribe  messaging  system   implemented  as  distributed  commit  log.   •  No)ons:   – Producer  
  • 6. Apache  Ka5a   •  A  publish-­‐subscribe  messaging  system   implemented  as  distributed  commit  log.   •  No)ons:   – Producer   – Topic  
  • 7. Apache  Ka5a   •  A  publish-­‐subscribe  messaging  system   implemented  as  distributed  commit  log.   •  No)ons:   – Producer   – Topic   – Consumer  
  • 8. Apache  Ka5a   •  A  publish-­‐subscribe  messaging  system   implemented  as  distributed  commit  log.   •  No)ons:   – Producer   – Topic   – Consumer   – Message  offset    
  • 9. Apache  Ka5a   •  A  publish-­‐subscribe  messaging  system   implemented  as  distributed  commit  log.   •  No)ons:   – Producer   – Topic   – Consumer   – Message  offset   – Broker    
  • 10. •  Producers  publish  messages  to  a  topic.      
  • 11. •  Producers  publish  messages  to  a  topic.       •  Topic  is  just  a  par))oned  write-­‐ahead  log.   Producers  APPEND  records  to  these  logs.    
  • 12. •  Producers  publish  messages  to  a  topic.       •  Topic  is  just  a  par))oned  write-­‐ahead  log.   Producers  APPEND  records  to  these  logs.   •  Every  message  is  at  a  OFFSET  in  the  log.  
  • 13. •  Producers  publish  messages  to  a  topic.       •  Topic  is  just  a  par))oned  write-­‐ahead  log.   Producers  APPEND  records  to  these  logs.   •  Every  message  is  at  a  OFFSET  in  the  log.   •  Consumers  consume  messages  from  logs  using   offset  
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23. What  about  …   •  Replicas?  
  • 24. What  about  …   •  Replicas?   – MySQL  Master  –  Slave  
  • 25. What  about  …   •  Replicas?   – MySQL  Master  –  Slave   •  Horizontally  Scalable  ?  
  • 26. What  about  …   •  Replicas?   – MySQL  Master  –  Slave   •  Horizontally  Scalable  ?   – Add  more  MySQL  instances  (split  write)  
  • 27. What  about  …   •  Replicas?   – MySQL  Master  –  Slave   •  Horizontally  Scalable  ?   – Add  more  MySQL  instances  (split  write)   •  Mul)ple  Par))ons  in  a  ka5a  broker  Versus  
  • 28. What  about  …   •  Replicas?   – MySQL  Master  –  Slave   •  Horizontally  Scalable  ?   – Add  more  MySQL  instances  (split  write)   •  Mul)ple  Par))ons  in  a  ka5a  broker  Versus   – Single  par))on(binlog)  in  a  MySQL  instance  
  • 29. What  about  …   •  Replicas?   – MySQL  Master  –  Slave   •  Horizontally  Scalable  ?   – Add  more  MySQL  instances  (split  write)   •  Mul)ple  Par))ons  in  a  ka5a  broker  Versus   – Single  par))on(binlog)  in  a  MySQL  instance   •  Data  Reten)on  ?  
  • 30. What  about  …   •  Replicas?   – MySQL  Master  –  Slave   •  Horizontally  Scalable  ?   – Add  more  MySQL  instances  (split  write)   •  Mul)ple  Par))ons  in  a  ka5a  broker  Versus   – Single  par))on(binlog)  in  a  MySQL  instance   •  Data  Reten)on  ?   –  How  long  you  keep  the  binlogs.  
  • 31. What  about  …   •  Replicas?   – MySQL  Master  –  Slave   •  Horizontally  Scalable  ?   – Add  more  MySQL  instances  (split  write)   •  Mul)ple  Par))ons  in  a  ka5a  broker  Versus   – Single  par))on(binlog)  in  a  MySQL  instance   •  Data  Reten)on  ?   –  How  long  you  keep  the  binlogs.   •  Transac)ons  for  free  versus  no  txn  in  ka5a  
  • 32.     This  approach  might  seem   unconven)onal  &  unorthodox.        
  • 33.     This  approach  might  seem   unconven)onal  &  unorthodox.         hence   It’s  a  WILD  supposi)on   “MySQL  can  be  Ka5a.”  
  • 34. Thank  you.   We  are  Hiring!   h]p://www.pocketmath.com/jobs.html     vishnuhr@pocketmath.com   jaihind213@gmail.com   sweetweet213@twi]er