Top Banner
RDBMS & noSQL Mixed for best performance Javier Tomás Zon Senior Technical Operations April, 2016
19

RDBMS & noSQL

Apr 11, 2017

Download

Technology

TOTVS
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: RDBMS & noSQL

RDBMS & noSQL Mixed for best performance

Javier Tomás Zon Senior Technical Operations

April, 2016

Page 2: RDBMS & noSQL

www.percona.com

RDBMS & noSQL

• Who am I? • Differences • Best Practices • Q&A

Page 3: RDBMS & noSQL

www.percona.com

@jtomaszon

• 14 years as System Administrator

• 9 years working with MySQL

• 5 years using DevOps culture

• ex-TOTVS

• IoT Enthusiastic (Arduino, Raspberry Pi)

Page 4: RDBMS & noSQL

www.percona.com

RDBMS & noSQL

• Vertical Scale • Horizontal Scale

Page 5: RDBMS & noSQL

www.percona.com

RDBMS & noSQL

• Structured Data • Non-structured Data

Page 6: RDBMS & noSQL

www.percona.com

RDBMS & noSQL

• Structured Data • Non-structured Data

Page 7: RDBMS & noSQL

www.percona.com

RDBMS & noSQL

• Structured Data • Non-structured Data

ID USER COLOR

1 jav blue

USER_ID COLOR

1 blue

1 red

{ “id”: 1, “user”: “jav”, “color”: “blue" }

{ “id”: 1, “user”: “jav”, “color”: [“blue”, “red"] }

Page 8: RDBMS & noSQL

www.percona.com

RDBMS & noSQL

• Atomic Transactions • Eventual Consistency

put node

node

node

node

node

node

node

Page 9: RDBMS & noSQL

www.percona.com

Best Practices

• RDBMS

• Transactions

• Data Consistency

• Structured Data

Page 10: RDBMS & noSQL

www.percona.com

Best Practices

• noSQL

• Map & Reduce

• Eventual Consistency

• Geo-references

• Denormalized Data

Page 11: RDBMS & noSQL

MongoDB NoSQL Quick Talk

Adamo Tonete MongoDB Senior Support Engineer

April, 2016

Page 12: RDBMS & noSQL

www.percona.com

MongoDB: noSQL Quick Talk

• Who am I? • What is the best

NoSQL product to scale out? • When consider scale out? • Let's talk about MongoDB • Q&A

Page 13: RDBMS & noSQL

www.percona.com

@adamotonete

• 8 years working as DBA

• MongoDB certified

• A few interesting companies before Percona

• Jointed Percona 5 Months ago.

Page 14: RDBMS & noSQL

www.percona.com

What is the best NoSQL product to scale out?

• There are many flavours of NoSQL:

• Key/Value • Documents • Column-oriented • Objects

Page 15: RDBMS & noSQL

www.percona.com

When consider scale out?

• Workset bigger than RAM • High CPU usage • Disk O/I exhausted • Redundancy • Decrease Latency

Page 16: RDBMS & noSQL

www.percona.com

Let's talk about MongoDB

• A few things that you need to know before scale MongoDB:

• MongoDB has a single master for each replicaset.

• Sharding must be very well configured, otherwise you will only have a few machines idle.

• Look at what you want to scale: • reads? • writes?

Page 17: RDBMS & noSQL

www.percona.com

Let's talk about MongoDB

• High consistence will cost more time to confirm a operation.

• Downsize is not so easy operation all data will be removed by one single thread, by design.

• Keep your eyes open to MongoS and Config Servers those guys are responsible to keep a shard working.

Page 18: RDBMS & noSQL

www.percona.com

Resources

• sitepoint • Differences:

http://www.sitepoint.com/sql-vs-nosql-differences/ • How to Choose:

http://www.sitepoint.com/sql-vs-nosql-choose/

• percona.com/blog • AWS Training • youtube.com

• CloudU channel • Rackspace Channel

Page 19: RDBMS & noSQL

www.percona.com

QUESTIONS?