The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

13
NoSQL The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1

Transcript of The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

Page 1: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

1

NoSQL

The Lightning Way

XIV Encontro da comunidade SQLPortLX 2011.08.16

Page 2: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

Why should we care?

When all you have is a hammer, you tend to see every problem as a nail.

Abraham Maslow

Page 3: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

What is NoSQL?

• “Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable. (…)”

from nosql-databases.org

Page 4: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

Ok, what does it means?

• Non-relational AKA “Structured Storage”• No fixed Table Schemas• No (or minimal) JOIN operations• Usually low-level record-at-a-time instead

of SQL clauses• Scale horizontally

Page 5: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

Why NoSQL?

• “Most” modern applications are web-based• As such, must be able to scale out by

simply adding commodity servers • NoSQL DBMS are built to be able to scale

out• No fixed schema provides flexibility of

design and development – no “schema written in stone syndrome”

Page 6: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

NoSQL DBMS vs. RDBMS

• RDBS are mostly all about ACID• Atomicity, Consistency, Isolation, Durability

• NoSQL are mostly BASE• Basically Available, Soft state, Eventual

consistency

Page 7: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

So, BASE is….

• It’s like a teenager:– Always Basically Available (open to new

relationships)– in a Soft state (none of the relationships last

very long) – and Eventually consistent (one day

he/she will get a girlfriend/boyfriend and eventually get married).

Page 8: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

NoSQL Logical Model

• Key Value– Amazon Dynamo, Voldemort, Dynomite,

Azure Table Storage

• Document Oriented– Couch DB, MongoDB

Page 9: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

NoSQL Logical Model

• Wide Column Store – Google BigTable, HBase

• Graph– Twitter’s FlockDB, Neo4J

Page 10: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

Communalities

• Loosely typed extensible data schema

• Consistency gives place to scalability and availability

• Designed for horizontal scaling through data distribution model across multiple nodes

• Support various 'Non-SQL' interfaces (REST, Get/Put, API,etc.)

Page 11: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

NoSQL cheat-sheet AKA References

• NoSQL - Your Ultimate Guide to the Non - Relational Universe• http://nosql-database.org/

• NoSQL in the Enterprise• http://www.infoq.com/articles/nosql-in-the-enterprise

• Whitepaper on NoSQL and the Windows Azure Platform• http://blogs.msdn.com/b/sqlazure/archive/2011/05/04/10160671.aspx

• NoSQL Ecosystem• http://www.rackspace.com/cloud/blog/2009/11/09/nosql-ecosystem/

• Why NoSQL?• http://www.couchbase.com/why-nosql/nosql-database

• BASE: An Acid Alternative• http://queue.acm.org/detail.cfm?id=1394128

Page 12: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

Q&A Time…

Page 13: The Lightning Way XIV Encontro da comunidade SQLPort LX 2011.08.16 1.

Thank you for your patience!

How to find me… if you care to know!(really? don’t you have anything better to do?)

Twitter: @pjtmatos

e-mail: [email protected]