why nosql?

15
DHARSHAN RANGEGOWDA FOUNDER, SCALEGRID.IO APRIL 2014 Why NoSQL?

Upload: dharshan-rangegowda

Post on 19-Jan-2017

179 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Why nosql?

DHARSHAN RANGEGOWDAFOUNDER, SCALEGRID.IO

APRIL 2014

Why NoSQL?

Page 2: Why nosql?

What is NoSQL?

“Not only SQL”“Not SQL”Term popularized by Eric

Evans of Rackspace in 2009

Class of databases that don’t use a “Relational schema”

NoSQL <> No T-SQL

Page 3: Why nosql?

NoSQL history

Need arose in Early 2000 due to difficulties scaling MySQL databases Need to deal with large amounts of data E.g. MongoDB founders are from Doubleclick

Page 4: Why nosql?

Classification

• Classified along multiple dimensions

• Data model

• Consistency

• Performance

Page 5: Why nosql?

Complete classification

Page 6: Why nosql?

Data model

Flexible data model structured, unstructured & semi structured data

Different types of data JSON/XML Documents

Files Store files & structured data No separate workflow for files

Page 7: Why nosql?

Schema less

Each row in a table can be different!

Double edged sword There is always a schema, in the db or in the code

Page 8: Why nosql?

Developer agility

Focus on developer agility

Extremely easy to get started

Got rid of impedance mismatch between app code and SQL

Always work with objects• Big hit with developers

Page 9: Why nosql?

Developer agility

Great Geo query support Extremely important for most web apps today

Great integration with new frameworks Node.js, Meteor.js

Page 10: Why nosql?

Database Scaling

• Easy (relatively) scale for your database– Scale up or scale out– Scale out using commodity servers– Automatic partitioning & rebalancing

Page 11: Why nosql?

Scale out : MongoDB shards

Page 12: Why nosql?

Cons?

Not ACID compliant (mostly) Transaction scope is usually limited Consistency can also vary If you are writing a banking application stick to

RDBMS Engineering

Relatively immature Don’t have 3 decades of engineering in them

Page 13: Why nosql?

Adoption

• Web properties– Scale features– Document support– Geo support

• Data warehouse–Handle TB’s of data– Cost

Page 14: Why nosql?

Future?

Page 15: Why nosql?

Q & A

Email : [email protected]: @dharshanrg