SlideShare a Scribd company logo
1 of 57
Download to read offline
Synchronize your data
between MySQL
and MongoDB
using Tungsten Replicator
Giuseppe Maxia, Director of QA
Continuent, Inc

©Continuent 2013
Tuesday, October 15, 13

1
About me

•

Giuseppe Maxia, a.k.a. "The Data Charmer"

• Director of Quality Assurance, Continuent, Inc
• 25+ years development and DB experience
• Long timer MySQL community member.
• Oracle ACE Director
• Blog: http://datacharmer.blogspot.com
• Twitter: @datacharmer

©Continuent 2013
Tuesday, October 15, 13

2
2
Introducing Continuent

•

The leading provider of clustering and
replication for open source DBMS

•

Our Product: Continuent Tungsten

• Clustering - Commercial-grade HA, performance
scaling and data management for MySQL

• Replication - Flexible, high-performance data
movement

©Continuent 2013
Tuesday, October 15, 13

3
3
A Review of Tungsten Replicator

©Continuent 2013
Tuesday, October 15, 13

4
4
Tungsten Replicator Overview
Master
Replicator

Download
transactions
via network
DBMS
Logs

(Transactions + Metadata)

Slave

Replicator

Apply using JDBC

©Continuent 2013
Tuesday, October 15, 13

THL

THL
(Transactions + Metadata)

5
5
Master Replication Service
Pipeline
Stage
Extract Filter

Stage
Apply

Extract Filter

Apply

tcp/ip

Binlog
MySQL
Master

©Continuent 2013
Tuesday, October 15, 13

Slave
Replicators

Transaction
History Log

In-Memory
Queue

6
6
Slave Replication Service
Pipeline
Stage
Apply

Extract Filter

Stage
Apply

Extract Filter

Apply

tcp/ip

Extract Filter

Stage

Master
Replicator
Transaction
History Log

©Continuent 2013
Tuesday, October 15, 13

In-Memory
Queue

Slave
DBMS

7
7
master-slave
MySQL

Oracle
fan-in slave

Oracle

MySQL
all-masters

Heterogeneous

Oracle

MySQL

MySQL

Oracle
star

©Continuent 2013
Tuesday, October 15, 13

8
MongoDB in a nutshell

©Continuent 2013
Tuesday, October 15, 13

9
9
What is MongoDB

•
•
•
•
•
•
•
©Continuent 2013
Tuesday, October 15, 13

A non-relational database
A document-oriented database
Schema-free
Open source
High performance
Scalable
Developer-friendly (sort of)

10
10
What is MongoDB good for?

•
•
•

Storing large amount of unrelated data

•

IT IS NOT a drop-in replacement for a
relational database

©Continuent 2013
Tuesday, October 15, 13

Data that can't be constrained in a schema
Complement to relational data

11
11
Relational vs. document
person
p_id name age
1

Joe

30

2

Fred

23

3

Jack

26

p_id

d_id

4

Sue

25

1

2

5

Pete

32

2

2

3

1

4

3

5

1

department
d_id
name
1
sales
2
dev
3
support

©Continuent 2013
Tuesday, October 15, 13

pers_dept

Relational

12
12
Relational vs. document
person
p_id name age
1

Joe

30

2

Fred

23

3

Jack

26

p_id

d_id

4

Sue

25

1

2

5

Pete

32

2

2

3

1

4

3

5

1

department
d_id
name
1
sales
2
dev
3
support

©Continuent 2013
Tuesday, October 15, 13

pers_dept

Relational

13
13
Relational vs. document
person
p_id name age
1

Joe

30

2

Fred

23

3

Jack

26

p_id

d_id

4

Sue

25

1

2

5

Pete

32

2

2

3

1

4

3

5

1

department
d_id
name
1
sales
2
dev
3
support

©Continuent 2013
Tuesday, October 15, 13

pers_dept

Relational

14
14
Relational vs. document
person
p_id name age
1

Joe

30

2

Fred

23

3

Jack

26

p_id

d_id

4

Sue

25

1

2

5

Pete

32

2

2

3

1

4

3

5

1

department
d_id
name
1
sales
2
dev
3
support

©Continuent 2013
Tuesday, October 15, 13

pers_dept

Relational

15
15
Relational vs. document
person
p_id name age
1

Joe

30

2

Fred

23

3

Jack

26

p_id

d_id

4

Sue

25

1

2

5

Pete

32

2

2

3

1

4

3

5

1

department
d_id
name
1
sales
2
dev
3
support

©Continuent 2013
Tuesday, October 15, 13

pers_dept

Relational

16
16
Relational vs. document
person
p_id name age
1

Joe

30

2

Fred

23

3

Jack

26

p_id

d_id

4

Sue

25

1

2

5

Pete

32

2

2

3

1

4

3

5

1

department
d_id
name
1
sales
2
dev
3
support

©Continuent 2013
Tuesday, October 15, 13

pers_dept

Relational

17
17
Relational vs. document
person
_id

name

age

department

1

Joe

30

dev

2

Fred

23

dev

3

Jack

26

sales

4

Sue

25

support

5

Pete

32

sales

Document
©Continuent 2013
Tuesday, October 15, 13

18
18
How MongoDB keeps data

•

©Continuent 2013
Tuesday, October 15, 13

three levels:

•
•
•

dbs
collections
documents

19
19
MongoDB insertion demo
> show collections
>
> db.person.insert( {_id: 1, name: "Joe", age: 30, department:
"dev"})
> show collections
person
system.indexes

©Continuent 2013
Tuesday, October 15, 13

20
20
MongoDB insertion demo
> db.person.insert(
"dev"})
> db.person.insert(
"sales"})
> db.person.insert(
"support"})
> db.person.insert(
"sales"})
> db.person.find()
{ "_id" : 1, "name"
{ "_id" : 2, "name"
{ "_id" : 3, "name"
{ "_id" : 4, "name"
{ "_id" : 5, "name"

©Continuent 2013
Tuesday, October 15, 13

{_id: 2, name: "Fred", age: 23, department:
{_id: 3, name: "Jack", age: 26, department:
{_id: 4, name: "Sue", age: 25, department:
{_id: 5, name: "Pete", age: 30, department:
:
:
:
:
:

"Joe", "age" : 30, "department" : "dev" }
"Fred", "age" : 23, "department" : "dev" }
"Jack", "age" : 26, "department" : "sales" }
"Sue", "age" : 25, "department" : "support" }
"Pete", "age" : 30, "department" : "sales" }

21
21
MySQL to MongoDB basics

©Continuent 2013
Tuesday, October 15, 13

22
22
Replication from MySQL to MongoDB

•
•
•
•
•
•
•
©Continuent 2013
Tuesday, October 15, 13

Requires ROW-based-replication
Replication happens by table
There is no consolidation into "documents"
DDL commands are ignored
Statement commands are ignored
Column names become document attributes
enum and set columns are converted to
strings
23
23
First example of replication
# MySQL
create schema oneschema;
use oneschema ;
create table myfirst( num int not null primary key,
dt datetime,
ts timestamp,
going enum('yes', 'no'));
# MongoDB
> show dbs
local 0.078125GB
test 0.203125GB
tungsten_mysql2mongodb

0.203125GB

# NOTICE: no "oneschema"
©Continuent 2013
Tuesday, October 15, 13

24
24
Inserting data
# MySQL
insert into myfirst values (1, '2003-04-26 09:15:00', null, 'yes');
Query OK, 1 row affected (0.01 sec)
select * from myfirst;
+-----+---------------------+---------------------+-------+
| num | dt
| ts
| going |
+-----+---------------------+---------------------+-------+
|
1 | 2003-04-26 09:15:00 | 2013-10-14 19:39:38 | yes
|
+-----+---------------------+---------------------+-------+
1 row in set (0.00 sec)

©Continuent 2013
Tuesday, October 15, 13

25
25
Checking results in MongoDB
# MongoDB
> show dbs
local 0.078125GB
oneschema 0.203125GB
test 0.203125GB
tungsten_mysql2mongodb

0.203125GB

> use oneschema
switched to db oneschema
> show collections
myfirst
system.indexes
> db.myfirst.find()
{ "_id" : ObjectId("525c2c5af5d9ca820fcee01d"), "num" : "1", "dt" :
"2003-04-26 11:15:00.0", "ts" : "2013-10-14 19:39:38.0", "going" :
"yes" }
©Continuent 2013
Tuesday, October 15, 13

26
26
Another interesting insertion
#MySQL
create table t1(_id int not null primary key, c char(10));
insert into t1 values (1, 'abc');
select * from t1;
+-----+------+
| _id | c
|
+-----+------+
|
1 | abc |
+-----+------+
1 row in set (0.00 sec)
# MongoDB
> db.t1.find()
{ "_id" : "1", "c" : "abc" }

©Continuent 2013
Tuesday, October 15, 13

27
27
More insertions
# MySQL
insert into t1 values (2,'def'), (3,'ghi'), (4,'jkl'), (5, 'mno');
Query OK, 4 rows affected (0.01 sec)
Records: 4 Duplicates: 0 Warnings: 0
select * from t1;
+-----+------+
| _id | c
|
+-----+------+
|
1 | abc |
|
2 | def |
|
3 | ghi |
|
4 | jkl |
|
5 | mno |
+-----+------+
5 rows in set (0.00 sec)

©Continuent 2013
Tuesday, October 15, 13

28
28
More insertions
# MongoDB
>
{
{
{
{
{

db.t1.find()
"_id" : "1",
"_id" : "2",
"_id" : "3",
"_id" : "4",
"_id" : "5",

©Continuent 2013
Tuesday, October 15, 13

"c"
"c"
"c"
"c"
"c"

:
:
:
:
:

"abc"
"def"
"ghi"
"jkl"
"mno"

}
}
}
}
}

29
29
Update and delete as seen on master
update t1 set c = 'ZZZ' where _id = 3;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
delete from t1 where _id=2;
Query OK, 1 row affected (0.00 sec)
select * from t1;
+-----+------+
| _id | c
|
+-----+------+
|
1 | abc |
|
3 | ZZZ |
|
4 | jkl |
|
5 | mno |
+-----+------+
4 rows in set (0.00 sec)
©Continuent 2013
Tuesday, October 15, 13

30
30
e!ects of update and delete on the
slave
# MongoDB
>
{
{
{
{

db.t1.find()
"_id" : "1",
"_id" : "3",
"_id" : "4",
"_id" : "5",

©Continuent 2013
Tuesday, October 15, 13

"c"
"c"
"c"
"c"

:
:
:
:

"abc"
"ZZZ"
"jkl"
"mno"

}
}
}
}

31
31
Overview of Tungsten installer

©Continuent 2013
Tuesday, October 15, 13

32
32
Overview of Installation Process
1. Set up hosts
2. Prepare MySQL replicas
3. Download software
4. Install using tpm

Amazon Setup:
https://docs.continuent.com/wiki/display/TEDOC/
Preparing+EC2+Servers

©Continuent 2013
Tuesday, October 15, 13

33
33
How tungsten-installer Works for
Basic Master/Slave Deployment
Staging copy
of files

db1

db2

check prereqs
copy code
configure
©Continuent 2013
Tuesday, October 15, 13

db3

34
34
Tungsten master/slave replication
alpha

THL

THL

host1

alpha

host2

alpha

THL

host3

installer

©Continuent 2013
Tuesday, October 15, 13

35
35
Bi-directional replication
alpha

alpha

bravo

bravo

host1

host2

installer
Install all master and slave services on all hosts at once

©Continuent 2013
Tuesday, October 15, 13

36
36
4 nodes all-masters
alpha

alpha

bravo

host1

bravo

charlie

charlie

delta

host2

delta

alpha
bravo

©Continuent 2013
Tuesday, October 15, 13

bravo

charlie

charlie

delta

host3

alpha

delta

host4

37
37
Tungsten security layer

•

Tra!c encryption:

Tuesday, October 15, 13

all data in transit (transaction history logs, or THL) is
encrypted using SSL

•
•
•

©Continuent 2013

•

all administrative tra!c is encrypted with SSL
Transparent to the user
Independent of the database server (works also for
heterogeneous replication)

38
38
Tungsten replicator without security
THL

alpha

THL

alpha

alpha

host2

plain text

THL

host1

THL

host4

host3

master
slave

©Continuent 2013
Tuesday, October 15, 13

alpha

replicator
services

39
39
Tungsten Replicator with security
SSL
alpha

THL

alpha

THL

THL

alpha

host2

SSL

host1

SSL

SSL

slave

©Continuent 2013
Tuesday, October 15, 13

alpha

host4

host3

master

THL

replicator
services

40
40
Installing Master/Slave Replication ...
alpha

THL

THL

host1

alpha

host2

alpha

THL

host3

©Continuent 2013
Tuesday, October 15, 13

41
41
master/slave using tpm

./tools/tpm install alpha 
--topology=master-slave 
--home-directory=/opt/continuent/replicator 
--replication-user=tungsten 
--replication-password=secret 
--master=host1 
--slaves=host2,host3,host4 
--start

©Continuent 2013
Tuesday, October 15, 13

42
42
Installing Master/Slave Replication
with MongoDB
alpha

alpha

host1

host2

alpha

alpha

host3

©Continuent 2013
Tuesday, October 15, 13

host4

43
43
master/slave with MongoDB
./tools/tpm configure mysql2mongodb 
--enable-heterogenous-service=true 
--topology=master-slave 
--master=host1 
--replication-user=tungsten 
--replication-password=secret 
--slaves=host2,host3,host4 
--home-directory=$MYSQL_DEPLOY 
--start-and-report
./tools/tpm configure mysql2mongodb 
--hosts=host4 
--datasource-type=mongodb 
--replication-port=$MONGODB_PORT
./tools/tpm install

©Continuent 2013
Tuesday, October 15, 13

44
44
Installing Fan-In Replication
alpha
bravo

host1

host2

alpha

charlie

bravo

host3

©Continuent 2013
Tuesday, October 15, 13

host4

charlie

45
45
fan-in using tpm

./tools/tpm install many_towns 
--replication-user=tungsten 
--replication-password=secret 
--home-directory=/opt/continuent/replication 
--masters=host1,host2,host3 
--slaves=host4 
--master-services=alpha,bravo,charlie 
--topology=fan-in 
--start

©Continuent 2013
Tuesday, October 15, 13

46
46
Installing Fan-In Replication with
MongoDB
alpha
bravo

host1

host2

alpha
bravo

host3

©Continuent 2013
Tuesday, October 15, 13

charlie

charlie

host4

47
47
fan-in with MongoDB
./tools/tpm configure mysql2mongodb 
--enable-heterogenous-service=true 
--topology=fan-in 
--masters=host1,host2,host3 
--master-services=alpha,bravo,charlie 
--slaves=host4 
--replication-user=tungsten 
--replication-password=secret 
--home-directory=$MYSQL_DEPLOY 
--datasource-type=mysql 
--start-and-report
./tools/tpm configure mysql2mongodb 
--hosts=host4 
--datasource-type=mongodb 
--replication-port=$MONGODB_PORT
./tools/tpm install

©Continuent 2013
Tuesday, October 15, 13

48
48
Install Multi-Master replication
alpha

alpha

bravo

host1

bravo

charlie

charlie

host2

alpha
bravo

host3

©Continuent 2013
Tuesday, October 15, 13

charlie

49
49
multi-master using tpm

../tools/tpm install musketeers 
--reset 
--topology=all-masters 
--home-directory=/opt/continuent/replicator 
--replication-user=tungsten 
--replication-password=secret 
--masters=host1,host2,host3 
--master-services=alpha,bravo,charlie 
--start

©Continuent 2013
Tuesday, October 15, 13

50
50
Install Multi-Master replication with
Mongodb
alpha

alpha

bravo

host1

bravo

charlie

charlie

alpha

host3

©Continuent 2013
Tuesday, October 15, 13

alpha

bravo

bravo

charlie

charlie

host2

host4

51
51
multi-master with MongoDB
./tools/tpm configure mysql2mongodb 
--enable-heterogenous-service=true 
--topology=all-masters 
--masters=host1,host2,host3 
--slaves=host1,host2,host3,host4 
--master-services=alpha,bravo,charlie 
--replication-user=tungsten 
--replication-password=secret 
--home-directory=$MYSQL_DEPLOY 
--datasource-type=mysql 
--start-and-report
./tools/tpm configure mysql2mongodb 
--hosts=host4 
--datasource-type=mongodb 
--replication-port=$MONGODB_PORT
./tools/tpm install

©Continuent 2013
Tuesday, October 15, 13

52
52
MongoDB or TokuMX

•

TokuMX is a drop-in replacement for
MongoDB

•
•
•

Open source project, developed by TokuTek

©Continuent 2013
Tuesday, October 15, 13

https://github.com/Tokutek/mongo
it includes

•
•
•
•

better indexing
row-level locking (MongoDB locks at db level)
transactions
better compression
53
53
DEMO:
MongoDB
and multi master
installation

©Continuent 2013
Tuesday, October 15, 13

54
54
Joining the Community

©Continuent 2013
Tuesday, October 15, 13

55
55
Tungsten Replicator is Open Source

•

Project home:
http://code.google.com/p/tungsten-replicator/

•

Log bugs, "nd builds, post in replicator discussion
group

•

Documentation:
https://docs.continuent.com/wiki/display/TEDOC/
Tungsten+Documentation+Home
https://docs.continuent.com/wiki/display/TEDOC/
Deploying+MongoDB+Replication

©Continuent 2013
Tuesday, October 15, 13

56
56
560 S. Winchester Blvd., Suite 500
San Jose, CA 95128
Tel +1 (866) 998-3642
Fax +1 (408) 668-1009
e-mail: sales@continuent.com

Our Blogs:
http://scale-out-blog.blogspot.com
http://datacharmer.blogspot.com
http://www.continuent.com/news/blogs

Continuent Web Page:
http://www.continuent.com
Tungsten Replicator 2.1:
http://code.google.com/p/tungsten-replicator

©Continuent 2012.
Tuesday, October 15, 13

57

More Related Content

What's hot

MongoDB performance
MongoDB performanceMongoDB performance
MongoDB performanceMydbops
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architectureAkash Pramanik
 
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/DayDatadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/DayC4Media
 
Big Data Architecture
Big Data ArchitectureBig Data Architecture
Big Data ArchitectureGuido Schmutz
 
SQL vs MongoDB
SQL vs MongoDBSQL vs MongoDB
SQL vs MongoDBcalltutors
 
5 Data Modeling for NoSQL 1/2
5 Data Modeling for NoSQL 1/25 Data Modeling for NoSQL 1/2
5 Data Modeling for NoSQL 1/2Fabio Fumarola
 
The Path to Data and Analytics Modernization
The Path to Data and Analytics ModernizationThe Path to Data and Analytics Modernization
The Path to Data and Analytics ModernizationAnalytics8
 
Data-driven AI for Self-adaptive Information Systems
Data-driven AI for Self-adaptive Information SystemsData-driven AI for Self-adaptive Information Systems
Data-driven AI for Self-adaptive Information SystemsAndreas Metzger
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12Md. Mahedi Mahfuj
 
Building a Data Governance Strategy
Building a Data Governance StrategyBuilding a Data Governance Strategy
Building a Data Governance StrategyAnalytics8
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptxSurya937648
 
API Design Patterns: a guide to better APIs
API Design Patterns: a guide to better APIsAPI Design Patterns: a guide to better APIs
API Design Patterns: a guide to better APIsManning Publications
 
AIOps: Anomalies Detection of Distributed Traces
AIOps: Anomalies Detection of Distributed TracesAIOps: Anomalies Detection of Distributed Traces
AIOps: Anomalies Detection of Distributed TracesJorge Cardoso
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introductionRobert Lujo
 
High Performance and Scalability Database Design
High Performance and Scalability Database DesignHigh Performance and Scalability Database Design
High Performance and Scalability Database DesignTung Ns
 

What's hot (20)

MongoDB performance
MongoDB performanceMongoDB performance
MongoDB performance
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/DayDatadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
 
Big Data Architecture
Big Data ArchitectureBig Data Architecture
Big Data Architecture
 
MongoDB Backup & Disaster Recovery
MongoDB Backup & Disaster RecoveryMongoDB Backup & Disaster Recovery
MongoDB Backup & Disaster Recovery
 
SQL vs MongoDB
SQL vs MongoDBSQL vs MongoDB
SQL vs MongoDB
 
5 Data Modeling for NoSQL 1/2
5 Data Modeling for NoSQL 1/25 Data Modeling for NoSQL 1/2
5 Data Modeling for NoSQL 1/2
 
Amazon ElastiCache and Redis
Amazon ElastiCache and RedisAmazon ElastiCache and Redis
Amazon ElastiCache and Redis
 
The Path to Data and Analytics Modernization
The Path to Data and Analytics ModernizationThe Path to Data and Analytics Modernization
The Path to Data and Analytics Modernization
 
Data-driven AI for Self-adaptive Information Systems
Data-driven AI for Self-adaptive Information SystemsData-driven AI for Self-adaptive Information Systems
Data-driven AI for Self-adaptive Information Systems
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12
 
Mongodb vs mysql
Mongodb vs mysqlMongodb vs mysql
Mongodb vs mysql
 
Building a Data Governance Strategy
Building a Data Governance StrategyBuilding a Data Governance Strategy
Building a Data Governance Strategy
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptx
 
Big data
Big dataBig data
Big data
 
API Design Patterns: a guide to better APIs
API Design Patterns: a guide to better APIsAPI Design Patterns: a guide to better APIs
API Design Patterns: a guide to better APIs
 
AIOps: Anomalies Detection of Distributed Traces
AIOps: Anomalies Detection of Distributed TracesAIOps: Anomalies Detection of Distributed Traces
AIOps: Anomalies Detection of Distributed Traces
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introduction
 
High Performance and Scalability Database Design
High Performance and Scalability Database DesignHigh Performance and Scalability Database Design
High Performance and Scalability Database Design
 

Viewers also liked

Hybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS ApplicationsHybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS ApplicationsSteven Francia
 
MongoDB as a fast and queryable cache
MongoDB as a fast and queryable cacheMongoDB as a fast and queryable cache
MongoDB as a fast and queryable cacheMongoDB
 
Blending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerceBlending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerceSteven Francia
 
Tungsten Replicator tutorial
Tungsten Replicator tutorialTungsten Replicator tutorial
Tungsten Replicator tutorialGiuseppe Maxia
 
MongoDB, E-commerce and Transactions
MongoDB, E-commerce and TransactionsMongoDB, E-commerce and Transactions
MongoDB, E-commerce and TransactionsSteven Francia
 
Slides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBA
Slides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBASlides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBA
Slides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBASeveralnines
 
Juggle your data with Tungsten Replicator
Juggle your data with Tungsten ReplicatorJuggle your data with Tungsten Replicator
Juggle your data with Tungsten ReplicatorGiuseppe Maxia
 
NoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learnedNoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learnedLa FeWeb
 
Webinar: Live Data Visualisation with Tableau and MongoDB
Webinar: Live Data Visualisation with Tableau and MongoDBWebinar: Live Data Visualisation with Tableau and MongoDB
Webinar: Live Data Visualisation with Tableau and MongoDBMongoDB
 
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...MongoDB
 
Javascript 를 perl에서 mini-language 로 사용하기
Javascript 를 perl에서 mini-language 로 사용하기Javascript 를 perl에서 mini-language 로 사용하기
Javascript 를 perl에서 mini-language 로 사용하기HyunSeung Kim
 
MongoDB Interface for Asterisk PBX
MongoDB Interface for Asterisk PBXMongoDB Interface for Asterisk PBX
MongoDB Interface for Asterisk PBXSokratis Galiatsis
 
An Integrated Solution Approach
An Integrated Solution ApproachAn Integrated Solution Approach
An Integrated Solution ApproachCees W.M. Nieboer
 
TCO - MongoDB vs. Oracle
TCO - MongoDB vs. OracleTCO - MongoDB vs. Oracle
TCO - MongoDB vs. OracleJeremy Taylor
 
Unify Your Selling Channels in One Product Catalog Service
Unify Your Selling Channels in One Product Catalog ServiceUnify Your Selling Channels in One Product Catalog Service
Unify Your Selling Channels in One Product Catalog ServiceMongoDB
 
Webinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX Datamatics
Webinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX DatamaticsWebinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX Datamatics
Webinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX DatamaticsMongoDB
 
Mongo Sharding: Case Study
Mongo Sharding: Case StudyMongo Sharding: Case Study
Mongo Sharding: Case StudyWill Button
 
Modern Databases for Modern Application Architectures: The Next Wave of Desig...
Modern Databases for Modern Application Architectures: The Next Wave of Desig...Modern Databases for Modern Application Architectures: The Next Wave of Desig...
Modern Databases for Modern Application Architectures: The Next Wave of Desig...MongoDB
 
Astricon 2013: "Asterisk and Database"
Astricon 2013: "Asterisk and Database"Astricon 2013: "Asterisk and Database"
Astricon 2013: "Asterisk and Database"Francesco Prior
 
Масштабирование баз данных
Масштабирование баз данныхМасштабирование баз данных
Масштабирование баз данныхSQALab
 

Viewers also liked (20)

Hybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS ApplicationsHybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS Applications
 
MongoDB as a fast and queryable cache
MongoDB as a fast and queryable cacheMongoDB as a fast and queryable cache
MongoDB as a fast and queryable cache
 
Blending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerceBlending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerce
 
Tungsten Replicator tutorial
Tungsten Replicator tutorialTungsten Replicator tutorial
Tungsten Replicator tutorial
 
MongoDB, E-commerce and Transactions
MongoDB, E-commerce and TransactionsMongoDB, E-commerce and Transactions
MongoDB, E-commerce and Transactions
 
Slides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBA
Slides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBASlides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBA
Slides: Polyglot Persistence for the MongoDB, MySQL & PostgreSQL DBA
 
Juggle your data with Tungsten Replicator
Juggle your data with Tungsten ReplicatorJuggle your data with Tungsten Replicator
Juggle your data with Tungsten Replicator
 
NoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learnedNoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learned
 
Webinar: Live Data Visualisation with Tableau and MongoDB
Webinar: Live Data Visualisation with Tableau and MongoDBWebinar: Live Data Visualisation with Tableau and MongoDB
Webinar: Live Data Visualisation with Tableau and MongoDB
 
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
Securing Your Deployment with MongoDB and Red Hat's Identity Management in Re...
 
Javascript 를 perl에서 mini-language 로 사용하기
Javascript 를 perl에서 mini-language 로 사용하기Javascript 를 perl에서 mini-language 로 사용하기
Javascript 를 perl에서 mini-language 로 사용하기
 
MongoDB Interface for Asterisk PBX
MongoDB Interface for Asterisk PBXMongoDB Interface for Asterisk PBX
MongoDB Interface for Asterisk PBX
 
An Integrated Solution Approach
An Integrated Solution ApproachAn Integrated Solution Approach
An Integrated Solution Approach
 
TCO - MongoDB vs. Oracle
TCO - MongoDB vs. OracleTCO - MongoDB vs. Oracle
TCO - MongoDB vs. Oracle
 
Unify Your Selling Channels in One Product Catalog Service
Unify Your Selling Channels in One Product Catalog ServiceUnify Your Selling Channels in One Product Catalog Service
Unify Your Selling Channels in One Product Catalog Service
 
Webinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX Datamatics
Webinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX DatamaticsWebinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX Datamatics
Webinar: Scaling MongoDB through Sharding - A Case Study with CIGNEX Datamatics
 
Mongo Sharding: Case Study
Mongo Sharding: Case StudyMongo Sharding: Case Study
Mongo Sharding: Case Study
 
Modern Databases for Modern Application Architectures: The Next Wave of Desig...
Modern Databases for Modern Application Architectures: The Next Wave of Desig...Modern Databases for Modern Application Architectures: The Next Wave of Desig...
Modern Databases for Modern Application Architectures: The Next Wave of Desig...
 
Astricon 2013: "Asterisk and Database"
Astricon 2013: "Asterisk and Database"Astricon 2013: "Asterisk and Database"
Astricon 2013: "Asterisk and Database"
 
Масштабирование баз данных
Масштабирование баз данныхМасштабирование баз данных
Масштабирование баз данных
 

Similar to Sync MySQL & MongoDB Data

Hailey_Database_Performance_Made_Easy_through_Graphics.pdf
Hailey_Database_Performance_Made_Easy_through_Graphics.pdfHailey_Database_Performance_Made_Easy_through_Graphics.pdf
Hailey_Database_Performance_Made_Easy_through_Graphics.pdfcookie1969
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeWim Godden
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeWim Godden
 
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEODangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEOAltinity Ltd
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeWim Godden
 
Aplicações 10x a 100x mais rápida com o postgre sql
Aplicações 10x a 100x mais rápida com o postgre sqlAplicações 10x a 100x mais rápida com o postgre sql
Aplicações 10x a 100x mais rápida com o postgre sqlFabio Telles Rodriguez
 
Performance tuning ColumnStore
Performance tuning ColumnStorePerformance tuning ColumnStore
Performance tuning ColumnStoreMariaDB plc
 
MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013
MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013
MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013Sergey Petrunya
 
Bogdan Kecman Advanced Databasing
Bogdan Kecman Advanced DatabasingBogdan Kecman Advanced Databasing
Bogdan Kecman Advanced DatabasingBogdan Kecman
 
MySQL 5.7 Tutorial Dutch PHP Conference 2015
MySQL 5.7 Tutorial Dutch PHP Conference 2015MySQL 5.7 Tutorial Dutch PHP Conference 2015
MySQL 5.7 Tutorial Dutch PHP Conference 2015Dave Stokes
 
MySQL 5.7. Tutorial - Dutch PHP Conference 2015
MySQL 5.7. Tutorial - Dutch PHP Conference 2015MySQL 5.7. Tutorial - Dutch PHP Conference 2015
MySQL 5.7. Tutorial - Dutch PHP Conference 2015Dave Stokes
 
Bogdan Kecman INIT Presentation
Bogdan Kecman INIT PresentationBogdan Kecman INIT Presentation
Bogdan Kecman INIT Presentationarhismece
 
Oracle 12c SQL: Date Ranges
Oracle 12c SQL: Date RangesOracle 12c SQL: Date Ranges
Oracle 12c SQL: Date RangesStew Ashton
 
Apache Cassandra for Timeseries- and Graph-Data
Apache Cassandra for Timeseries- and Graph-DataApache Cassandra for Timeseries- and Graph-Data
Apache Cassandra for Timeseries- and Graph-DataGuido Schmutz
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersConnor McDonald
 
Metadata Matters
Metadata MattersMetadata Matters
Metadata Mattersafa reg
 
Adding Complex Data to Spark Stack by Tug Grall
Adding Complex Data to Spark Stack by Tug GrallAdding Complex Data to Spark Stack by Tug Grall
Adding Complex Data to Spark Stack by Tug GrallSpark Summit
 
Beyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the codeBeyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the codeWim Godden
 

Similar to Sync MySQL & MongoDB Data (20)

Hailey_Database_Performance_Made_Easy_through_Graphics.pdf
Hailey_Database_Performance_Made_Easy_through_Graphics.pdfHailey_Database_Performance_Made_Easy_through_Graphics.pdf
Hailey_Database_Performance_Made_Easy_through_Graphics.pdf
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
 
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEODangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
 
Beyond php - it's not (just) about the code
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
 
Aplicações 10x a 100x mais rápida com o postgre sql
Aplicações 10x a 100x mais rápida com o postgre sqlAplicações 10x a 100x mais rápida com o postgre sql
Aplicações 10x a 100x mais rápida com o postgre sql
 
Performance tuning ColumnStore
Performance tuning ColumnStorePerformance tuning ColumnStore
Performance tuning ColumnStore
 
5 Cool Things About SQL
5 Cool Things About SQL5 Cool Things About SQL
5 Cool Things About SQL
 
MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013
MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013
MySQL/MariaDB query optimizer tuning tutorial from Percona Live 2013
 
Bogdan Kecman Advanced Databasing
Bogdan Kecman Advanced DatabasingBogdan Kecman Advanced Databasing
Bogdan Kecman Advanced Databasing
 
MySQL 5.7 Tutorial Dutch PHP Conference 2015
MySQL 5.7 Tutorial Dutch PHP Conference 2015MySQL 5.7 Tutorial Dutch PHP Conference 2015
MySQL 5.7 Tutorial Dutch PHP Conference 2015
 
MySQL 5.7. Tutorial - Dutch PHP Conference 2015
MySQL 5.7. Tutorial - Dutch PHP Conference 2015MySQL 5.7. Tutorial - Dutch PHP Conference 2015
MySQL 5.7. Tutorial - Dutch PHP Conference 2015
 
Bogdan Kecman INIT Presentation
Bogdan Kecman INIT PresentationBogdan Kecman INIT Presentation
Bogdan Kecman INIT Presentation
 
Oracle 12c SQL: Date Ranges
Oracle 12c SQL: Date RangesOracle 12c SQL: Date Ranges
Oracle 12c SQL: Date Ranges
 
Apache Cassandra for Timeseries- and Graph-Data
Apache Cassandra for Timeseries- and Graph-DataApache Cassandra for Timeseries- and Graph-Data
Apache Cassandra for Timeseries- and Graph-Data
 
Real
RealReal
Real
 
OpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developersOpenWorld Sep14 12c for_developers
OpenWorld Sep14 12c for_developers
 
Metadata Matters
Metadata MattersMetadata Matters
Metadata Matters
 
Adding Complex Data to Spark Stack by Tug Grall
Adding Complex Data to Spark Stack by Tug GrallAdding Complex Data to Spark Stack by Tug Grall
Adding Complex Data to Spark Stack by Tug Grall
 
Beyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the codeBeyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the code
 

More from Giuseppe Maxia

MySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployerMySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployerGiuseppe Maxia
 
Dbdeployer, the universal installer
Dbdeployer, the universal installerDbdeployer, the universal installer
Dbdeployer, the universal installerGiuseppe Maxia
 
Test complex database systems in your laptop with dbdeployer
Test complex database systems in your laptop with dbdeployerTest complex database systems in your laptop with dbdeployer
Test complex database systems in your laptop with dbdeployerGiuseppe Maxia
 
A quick tour of Mysql 8 roles
A quick tour of Mysql 8 rolesA quick tour of Mysql 8 roles
A quick tour of Mysql 8 rolesGiuseppe Maxia
 
Preventing multi master conflicts with tungsten
Preventing multi master conflicts with tungstenPreventing multi master conflicts with tungsten
Preventing multi master conflicts with tungstenGiuseppe Maxia
 
MySQL high availability power and usability
MySQL high availability power and usabilityMySQL high availability power and usability
MySQL high availability power and usabilityGiuseppe Maxia
 
Solving MySQL replication problems with Tungsten
Solving MySQL replication problems with TungstenSolving MySQL replication problems with Tungsten
Solving MySQL replication problems with TungstenGiuseppe Maxia
 
State of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringState of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringGiuseppe Maxia
 
Testing mysql creatively in a sandbox
Testing mysql creatively in a sandboxTesting mysql creatively in a sandbox
Testing mysql creatively in a sandboxGiuseppe Maxia
 
Mysql 5.5 and 5.6 replication
Mysql 5.5 and 5.6 replicationMysql 5.5 and 5.6 replication
Mysql 5.5 and 5.6 replicationGiuseppe Maxia
 
Lightning talks percona live mysql_2012
Lightning talks percona live mysql_2012Lightning talks percona live mysql_2012
Lightning talks percona live mysql_2012Giuseppe Maxia
 
Testing early mysql releases in a sandbox
Testing early mysql releases in a sandboxTesting early mysql releases in a sandbox
Testing early mysql releases in a sandboxGiuseppe Maxia
 

More from Giuseppe Maxia (20)

MySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployerMySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployer
 
Test like a_boss
Test like a_bossTest like a_boss
Test like a_boss
 
Dbdeployer, the universal installer
Dbdeployer, the universal installerDbdeployer, the universal installer
Dbdeployer, the universal installer
 
Test complex database systems in your laptop with dbdeployer
Test complex database systems in your laptop with dbdeployerTest complex database systems in your laptop with dbdeployer
Test complex database systems in your laptop with dbdeployer
 
Dbdeployer
DbdeployerDbdeployer
Dbdeployer
 
Dbdeployer
DbdeployerDbdeployer
Dbdeployer
 
A quick tour of Mysql 8 roles
A quick tour of Mysql 8 rolesA quick tour of Mysql 8 roles
A quick tour of Mysql 8 roles
 
MySQL document_store
MySQL document_storeMySQL document_store
MySQL document_store
 
Replication skeptic
Replication skepticReplication skeptic
Replication skeptic
 
MySQL in your laptop
MySQL in your laptopMySQL in your laptop
MySQL in your laptop
 
Script it
Script itScript it
Script it
 
Preventing multi master conflicts with tungsten
Preventing multi master conflicts with tungstenPreventing multi master conflicts with tungsten
Preventing multi master conflicts with tungsten
 
MySQL high availability power and usability
MySQL high availability power and usabilityMySQL high availability power and usability
MySQL high availability power and usability
 
Solving MySQL replication problems with Tungsten
Solving MySQL replication problems with TungstenSolving MySQL replication problems with Tungsten
Solving MySQL replication problems with Tungsten
 
State of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringState of the art of MySQL replication and clustering
State of the art of MySQL replication and clustering
 
Testing mysql creatively in a sandbox
Testing mysql creatively in a sandboxTesting mysql creatively in a sandbox
Testing mysql creatively in a sandbox
 
Mysql 5.5 and 5.6 replication
Mysql 5.5 and 5.6 replicationMysql 5.5 and 5.6 replication
Mysql 5.5 and 5.6 replication
 
Lightning talks percona live mysql_2012
Lightning talks percona live mysql_2012Lightning talks percona live mysql_2012
Lightning talks percona live mysql_2012
 
Replication 101
Replication 101Replication 101
Replication 101
 
Testing early mysql releases in a sandbox
Testing early mysql releases in a sandboxTesting early mysql releases in a sandbox
Testing early mysql releases in a sandbox
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 

Sync MySQL & MongoDB Data

  • 1. Synchronize your data between MySQL and MongoDB using Tungsten Replicator Giuseppe Maxia, Director of QA Continuent, Inc ©Continuent 2013 Tuesday, October 15, 13 1
  • 2. About me • Giuseppe Maxia, a.k.a. "The Data Charmer" • Director of Quality Assurance, Continuent, Inc • 25+ years development and DB experience • Long timer MySQL community member. • Oracle ACE Director • Blog: http://datacharmer.blogspot.com • Twitter: @datacharmer ©Continuent 2013 Tuesday, October 15, 13 2 2
  • 3. Introducing Continuent • The leading provider of clustering and replication for open source DBMS • Our Product: Continuent Tungsten • Clustering - Commercial-grade HA, performance scaling and data management for MySQL • Replication - Flexible, high-performance data movement ©Continuent 2013 Tuesday, October 15, 13 3 3
  • 4. A Review of Tungsten Replicator ©Continuent 2013 Tuesday, October 15, 13 4 4
  • 5. Tungsten Replicator Overview Master Replicator Download transactions via network DBMS Logs (Transactions + Metadata) Slave Replicator Apply using JDBC ©Continuent 2013 Tuesday, October 15, 13 THL THL (Transactions + Metadata) 5 5
  • 6. Master Replication Service Pipeline Stage Extract Filter Stage Apply Extract Filter Apply tcp/ip Binlog MySQL Master ©Continuent 2013 Tuesday, October 15, 13 Slave Replicators Transaction History Log In-Memory Queue 6 6
  • 7. Slave Replication Service Pipeline Stage Apply Extract Filter Stage Apply Extract Filter Apply tcp/ip Extract Filter Stage Master Replicator Transaction History Log ©Continuent 2013 Tuesday, October 15, 13 In-Memory Queue Slave DBMS 7 7
  • 9. MongoDB in a nutshell ©Continuent 2013 Tuesday, October 15, 13 9 9
  • 10. What is MongoDB • • • • • • • ©Continuent 2013 Tuesday, October 15, 13 A non-relational database A document-oriented database Schema-free Open source High performance Scalable Developer-friendly (sort of) 10 10
  • 11. What is MongoDB good for? • • • Storing large amount of unrelated data • IT IS NOT a drop-in replacement for a relational database ©Continuent 2013 Tuesday, October 15, 13 Data that can't be constrained in a schema Complement to relational data 11 11
  • 12. Relational vs. document person p_id name age 1 Joe 30 2 Fred 23 3 Jack 26 p_id d_id 4 Sue 25 1 2 5 Pete 32 2 2 3 1 4 3 5 1 department d_id name 1 sales 2 dev 3 support ©Continuent 2013 Tuesday, October 15, 13 pers_dept Relational 12 12
  • 13. Relational vs. document person p_id name age 1 Joe 30 2 Fred 23 3 Jack 26 p_id d_id 4 Sue 25 1 2 5 Pete 32 2 2 3 1 4 3 5 1 department d_id name 1 sales 2 dev 3 support ©Continuent 2013 Tuesday, October 15, 13 pers_dept Relational 13 13
  • 14. Relational vs. document person p_id name age 1 Joe 30 2 Fred 23 3 Jack 26 p_id d_id 4 Sue 25 1 2 5 Pete 32 2 2 3 1 4 3 5 1 department d_id name 1 sales 2 dev 3 support ©Continuent 2013 Tuesday, October 15, 13 pers_dept Relational 14 14
  • 15. Relational vs. document person p_id name age 1 Joe 30 2 Fred 23 3 Jack 26 p_id d_id 4 Sue 25 1 2 5 Pete 32 2 2 3 1 4 3 5 1 department d_id name 1 sales 2 dev 3 support ©Continuent 2013 Tuesday, October 15, 13 pers_dept Relational 15 15
  • 16. Relational vs. document person p_id name age 1 Joe 30 2 Fred 23 3 Jack 26 p_id d_id 4 Sue 25 1 2 5 Pete 32 2 2 3 1 4 3 5 1 department d_id name 1 sales 2 dev 3 support ©Continuent 2013 Tuesday, October 15, 13 pers_dept Relational 16 16
  • 17. Relational vs. document person p_id name age 1 Joe 30 2 Fred 23 3 Jack 26 p_id d_id 4 Sue 25 1 2 5 Pete 32 2 2 3 1 4 3 5 1 department d_id name 1 sales 2 dev 3 support ©Continuent 2013 Tuesday, October 15, 13 pers_dept Relational 17 17
  • 19. How MongoDB keeps data • ©Continuent 2013 Tuesday, October 15, 13 three levels: • • • dbs collections documents 19 19
  • 20. MongoDB insertion demo > show collections > > db.person.insert( {_id: 1, name: "Joe", age: 30, department: "dev"}) > show collections person system.indexes ©Continuent 2013 Tuesday, October 15, 13 20 20
  • 21. MongoDB insertion demo > db.person.insert( "dev"}) > db.person.insert( "sales"}) > db.person.insert( "support"}) > db.person.insert( "sales"}) > db.person.find() { "_id" : 1, "name" { "_id" : 2, "name" { "_id" : 3, "name" { "_id" : 4, "name" { "_id" : 5, "name" ©Continuent 2013 Tuesday, October 15, 13 {_id: 2, name: "Fred", age: 23, department: {_id: 3, name: "Jack", age: 26, department: {_id: 4, name: "Sue", age: 25, department: {_id: 5, name: "Pete", age: 30, department: : : : : : "Joe", "age" : 30, "department" : "dev" } "Fred", "age" : 23, "department" : "dev" } "Jack", "age" : 26, "department" : "sales" } "Sue", "age" : 25, "department" : "support" } "Pete", "age" : 30, "department" : "sales" } 21 21
  • 22. MySQL to MongoDB basics ©Continuent 2013 Tuesday, October 15, 13 22 22
  • 23. Replication from MySQL to MongoDB • • • • • • • ©Continuent 2013 Tuesday, October 15, 13 Requires ROW-based-replication Replication happens by table There is no consolidation into "documents" DDL commands are ignored Statement commands are ignored Column names become document attributes enum and set columns are converted to strings 23 23
  • 24. First example of replication # MySQL create schema oneschema; use oneschema ; create table myfirst( num int not null primary key, dt datetime, ts timestamp, going enum('yes', 'no')); # MongoDB > show dbs local 0.078125GB test 0.203125GB tungsten_mysql2mongodb 0.203125GB # NOTICE: no "oneschema" ©Continuent 2013 Tuesday, October 15, 13 24 24
  • 25. Inserting data # MySQL insert into myfirst values (1, '2003-04-26 09:15:00', null, 'yes'); Query OK, 1 row affected (0.01 sec) select * from myfirst; +-----+---------------------+---------------------+-------+ | num | dt | ts | going | +-----+---------------------+---------------------+-------+ | 1 | 2003-04-26 09:15:00 | 2013-10-14 19:39:38 | yes | +-----+---------------------+---------------------+-------+ 1 row in set (0.00 sec) ©Continuent 2013 Tuesday, October 15, 13 25 25
  • 26. Checking results in MongoDB # MongoDB > show dbs local 0.078125GB oneschema 0.203125GB test 0.203125GB tungsten_mysql2mongodb 0.203125GB > use oneschema switched to db oneschema > show collections myfirst system.indexes > db.myfirst.find() { "_id" : ObjectId("525c2c5af5d9ca820fcee01d"), "num" : "1", "dt" : "2003-04-26 11:15:00.0", "ts" : "2013-10-14 19:39:38.0", "going" : "yes" } ©Continuent 2013 Tuesday, October 15, 13 26 26
  • 27. Another interesting insertion #MySQL create table t1(_id int not null primary key, c char(10)); insert into t1 values (1, 'abc'); select * from t1; +-----+------+ | _id | c | +-----+------+ | 1 | abc | +-----+------+ 1 row in set (0.00 sec) # MongoDB > db.t1.find() { "_id" : "1", "c" : "abc" } ©Continuent 2013 Tuesday, October 15, 13 27 27
  • 28. More insertions # MySQL insert into t1 values (2,'def'), (3,'ghi'), (4,'jkl'), (5, 'mno'); Query OK, 4 rows affected (0.01 sec) Records: 4 Duplicates: 0 Warnings: 0 select * from t1; +-----+------+ | _id | c | +-----+------+ | 1 | abc | | 2 | def | | 3 | ghi | | 4 | jkl | | 5 | mno | +-----+------+ 5 rows in set (0.00 sec) ©Continuent 2013 Tuesday, October 15, 13 28 28
  • 29. More insertions # MongoDB > { { { { { db.t1.find() "_id" : "1", "_id" : "2", "_id" : "3", "_id" : "4", "_id" : "5", ©Continuent 2013 Tuesday, October 15, 13 "c" "c" "c" "c" "c" : : : : : "abc" "def" "ghi" "jkl" "mno" } } } } } 29 29
  • 30. Update and delete as seen on master update t1 set c = 'ZZZ' where _id = 3; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 delete from t1 where _id=2; Query OK, 1 row affected (0.00 sec) select * from t1; +-----+------+ | _id | c | +-----+------+ | 1 | abc | | 3 | ZZZ | | 4 | jkl | | 5 | mno | +-----+------+ 4 rows in set (0.00 sec) ©Continuent 2013 Tuesday, October 15, 13 30 30
  • 31. e!ects of update and delete on the slave # MongoDB > { { { { db.t1.find() "_id" : "1", "_id" : "3", "_id" : "4", "_id" : "5", ©Continuent 2013 Tuesday, October 15, 13 "c" "c" "c" "c" : : : : "abc" "ZZZ" "jkl" "mno" } } } } 31 31
  • 32. Overview of Tungsten installer ©Continuent 2013 Tuesday, October 15, 13 32 32
  • 33. Overview of Installation Process 1. Set up hosts 2. Prepare MySQL replicas 3. Download software 4. Install using tpm Amazon Setup: https://docs.continuent.com/wiki/display/TEDOC/ Preparing+EC2+Servers ©Continuent 2013 Tuesday, October 15, 13 33 33
  • 34. How tungsten-installer Works for Basic Master/Slave Deployment Staging copy of files db1 db2 check prereqs copy code configure ©Continuent 2013 Tuesday, October 15, 13 db3 34 34
  • 36. Bi-directional replication alpha alpha bravo bravo host1 host2 installer Install all master and slave services on all hosts at once ©Continuent 2013 Tuesday, October 15, 13 36 36
  • 37. 4 nodes all-masters alpha alpha bravo host1 bravo charlie charlie delta host2 delta alpha bravo ©Continuent 2013 Tuesday, October 15, 13 bravo charlie charlie delta host3 alpha delta host4 37 37
  • 38. Tungsten security layer • Tra!c encryption: Tuesday, October 15, 13 all data in transit (transaction history logs, or THL) is encrypted using SSL • • • ©Continuent 2013 • all administrative tra!c is encrypted with SSL Transparent to the user Independent of the database server (works also for heterogeneous replication) 38 38
  • 39. Tungsten replicator without security THL alpha THL alpha alpha host2 plain text THL host1 THL host4 host3 master slave ©Continuent 2013 Tuesday, October 15, 13 alpha replicator services 39 39
  • 40. Tungsten Replicator with security SSL alpha THL alpha THL THL alpha host2 SSL host1 SSL SSL slave ©Continuent 2013 Tuesday, October 15, 13 alpha host4 host3 master THL replicator services 40 40
  • 41. Installing Master/Slave Replication ... alpha THL THL host1 alpha host2 alpha THL host3 ©Continuent 2013 Tuesday, October 15, 13 41 41
  • 42. master/slave using tpm ./tools/tpm install alpha --topology=master-slave --home-directory=/opt/continuent/replicator --replication-user=tungsten --replication-password=secret --master=host1 --slaves=host2,host3,host4 --start ©Continuent 2013 Tuesday, October 15, 13 42 42
  • 43. Installing Master/Slave Replication with MongoDB alpha alpha host1 host2 alpha alpha host3 ©Continuent 2013 Tuesday, October 15, 13 host4 43 43
  • 44. master/slave with MongoDB ./tools/tpm configure mysql2mongodb --enable-heterogenous-service=true --topology=master-slave --master=host1 --replication-user=tungsten --replication-password=secret --slaves=host2,host3,host4 --home-directory=$MYSQL_DEPLOY --start-and-report ./tools/tpm configure mysql2mongodb --hosts=host4 --datasource-type=mongodb --replication-port=$MONGODB_PORT ./tools/tpm install ©Continuent 2013 Tuesday, October 15, 13 44 44
  • 46. fan-in using tpm ./tools/tpm install many_towns --replication-user=tungsten --replication-password=secret --home-directory=/opt/continuent/replication --masters=host1,host2,host3 --slaves=host4 --master-services=alpha,bravo,charlie --topology=fan-in --start ©Continuent 2013 Tuesday, October 15, 13 46 46
  • 47. Installing Fan-In Replication with MongoDB alpha bravo host1 host2 alpha bravo host3 ©Continuent 2013 Tuesday, October 15, 13 charlie charlie host4 47 47
  • 48. fan-in with MongoDB ./tools/tpm configure mysql2mongodb --enable-heterogenous-service=true --topology=fan-in --masters=host1,host2,host3 --master-services=alpha,bravo,charlie --slaves=host4 --replication-user=tungsten --replication-password=secret --home-directory=$MYSQL_DEPLOY --datasource-type=mysql --start-and-report ./tools/tpm configure mysql2mongodb --hosts=host4 --datasource-type=mongodb --replication-port=$MONGODB_PORT ./tools/tpm install ©Continuent 2013 Tuesday, October 15, 13 48 48
  • 50. multi-master using tpm ../tools/tpm install musketeers --reset --topology=all-masters --home-directory=/opt/continuent/replicator --replication-user=tungsten --replication-password=secret --masters=host1,host2,host3 --master-services=alpha,bravo,charlie --start ©Continuent 2013 Tuesday, October 15, 13 50 50
  • 51. Install Multi-Master replication with Mongodb alpha alpha bravo host1 bravo charlie charlie alpha host3 ©Continuent 2013 Tuesday, October 15, 13 alpha bravo bravo charlie charlie host2 host4 51 51
  • 52. multi-master with MongoDB ./tools/tpm configure mysql2mongodb --enable-heterogenous-service=true --topology=all-masters --masters=host1,host2,host3 --slaves=host1,host2,host3,host4 --master-services=alpha,bravo,charlie --replication-user=tungsten --replication-password=secret --home-directory=$MYSQL_DEPLOY --datasource-type=mysql --start-and-report ./tools/tpm configure mysql2mongodb --hosts=host4 --datasource-type=mongodb --replication-port=$MONGODB_PORT ./tools/tpm install ©Continuent 2013 Tuesday, October 15, 13 52 52
  • 53. MongoDB or TokuMX • TokuMX is a drop-in replacement for MongoDB • • • Open source project, developed by TokuTek ©Continuent 2013 Tuesday, October 15, 13 https://github.com/Tokutek/mongo it includes • • • • better indexing row-level locking (MongoDB locks at db level) transactions better compression 53 53
  • 54. DEMO: MongoDB and multi master installation ©Continuent 2013 Tuesday, October 15, 13 54 54
  • 55. Joining the Community ©Continuent 2013 Tuesday, October 15, 13 55 55
  • 56. Tungsten Replicator is Open Source • Project home: http://code.google.com/p/tungsten-replicator/ • Log bugs, "nd builds, post in replicator discussion group • Documentation: https://docs.continuent.com/wiki/display/TEDOC/ Tungsten+Documentation+Home https://docs.continuent.com/wiki/display/TEDOC/ Deploying+MongoDB+Replication ©Continuent 2013 Tuesday, October 15, 13 56 56
  • 57. 560 S. Winchester Blvd., Suite 500 San Jose, CA 95128 Tel +1 (866) 998-3642 Fax +1 (408) 668-1009 e-mail: sales@continuent.com Our Blogs: http://scale-out-blog.blogspot.com http://datacharmer.blogspot.com http://www.continuent.com/news/blogs Continuent Web Page: http://www.continuent.com Tungsten Replicator 2.1: http://code.google.com/p/tungsten-replicator ©Continuent 2012. Tuesday, October 15, 13 57