SlideShare una empresa de Scribd logo
1 de 34
Descargar para leer sin conexión
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	
  

Más contenido relacionado

La actualidad más candente

Camel riders in the cloud
Camel riders in the cloudCamel riders in the cloud
Camel riders in the cloudClaus Ibsen
 
Apache Con 2021 Structured Data Streaming
Apache Con 2021 Structured Data StreamingApache Con 2021 Structured Data Streaming
Apache Con 2021 Structured Data StreamingShivji Kumar Jha
 
AWSによるソーシャルアプリ運用事例
AWSによるソーシャルアプリ運用事例AWSによるソーシャルアプリ運用事例
AWSによるソーシャルアプリ運用事例Yasuhiro Horiuchi
 
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 KubernetesClaus Ibsen
 
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 HadoopAyon Sinha
 
Apache Pulsar and Github
Apache Pulsar and GithubApache Pulsar and Github
Apache Pulsar and GithubStreamNative
 
SmartNews's journey into microservices
SmartNews's journey into microservicesSmartNews's journey into microservices
SmartNews's journey into microservicesSmartNews, Inc.
 
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 AutomateAmazon Web Services
 
Event-Stream Processing with Kafka
Event-Stream Processing with KafkaEvent-Stream Processing with Kafka
Event-Stream Processing with KafkaTim Lossen
 
Cassandra Introduction & Features
Cassandra Introduction & FeaturesCassandra Introduction & Features
Cassandra Introduction & FeaturesPhil Peace
 
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...Susan Potter
 
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 PerspectiveIlya Ganelin
 
データの民主化のために StackStorm を活用した事例
データの民主化のために StackStorm を活用した事例データの民主化のために StackStorm を活用した事例
データの民主化のために StackStorm を活用した事例Yoshiyasu SAEKI
 
Apache Pulsar Community-Jennifer
Apache Pulsar Community-JenniferApache Pulsar Community-Jennifer
Apache Pulsar Community-JenniferStreamNative
 
グラフデータベース Neptune 使ってみた
グラフデータベース Neptune 使ってみたグラフデータベース Neptune 使ってみた
グラフデータベース Neptune 使ってみたYoshiyasu SAEKI
 
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
 
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 + KSQLconfluent
 
Open Air 2016 Mini Talk
Open Air 2016 Mini TalkOpen Air 2016 Mini Talk
Open Air 2016 Mini TalkSky Yin
 

La actualidad más candente (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
 

Destacado

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...vishnu rao
 
Punch clock for debugging apache storm
Punch clock for  debugging apache stormPunch clock for  debugging apache storm
Punch clock for debugging apache stormvishnu rao
 
Do you need microservices architecture?
Do you need microservices architecture?Do you need microservices architecture?
Do you need microservices architecture?Manu Pk
 
Demystifying datastores
Demystifying datastoresDemystifying datastores
Demystifying datastoresvishnu rao
 
Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker vishnu rao
 
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?Fátima Casaú Pérez
 
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 LanguageGanesh Samarthyam
 
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)Ganesh Samarthyam
 
Microservices with Spring Boot
Microservices with Spring BootMicroservices with Spring Boot
Microservices with Spring BootJoshua Long
 
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 CloudEberhard Wolff
 
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 CloudEberhard Wolff
 
Bangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterBangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterGanesh Samarthyam
 
Spring boot
Spring bootSpring boot
Spring bootsdeeg
 

Destacado (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
 

Similar a a wild Supposition: can MySQL be Kafka ?

Scaling MySQL Using Fabric
Scaling MySQL Using FabricScaling MySQL Using Fabric
Scaling MySQL Using FabricRemote MySQL DBA
 
Scaling MySQL using Fabric
Scaling MySQL using FabricScaling MySQL using Fabric
Scaling MySQL using FabricKarthik .P.R
 
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
 
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 AvailabilityOSSCube
 
MariaDB Galera Cluster
MariaDB Galera ClusterMariaDB Galera Cluster
MariaDB Galera ClusterAbdul Manaf
 
London devops logging
London devops loggingLondon devops logging
London devops loggingTomas Doran
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMario Beck
 
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 EC2Marco Tusa
 
Message:Passing - lpw 2012
Message:Passing - lpw 2012Message:Passing - lpw 2012
Message:Passing - lpw 2012Tomas Doran
 
Fundamentals of Apache Kafka
Fundamentals of Apache KafkaFundamentals of Apache Kafka
Fundamentals of Apache KafkaChhavi Parasher
 
MySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB ClustersMySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB ClustersMatt Lord
 
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 DolphinOlivier DASINI
 
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 ClusterOlivier DASINI
 
Distributed messaging through Kafka
Distributed messaging through KafkaDistributed messaging through Kafka
Distributed messaging through KafkaDileep Kalidindi
 
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)Colin Charles
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivanIvan Tu
 

Similar 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?
 

Más de vishnu rao

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

Más 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

COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...Health
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...HenryBriggs2
 
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 PPTbhaskargani46
 

Último (20)

COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
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
 

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