«NoSQL benchmarking v2.0. Исследование производительности современных NoSQL-решений»
NoSQL Database ppt for Beginners by Real Time Expert
-
Upload
kernel-training -
Category
Education
-
view
1.227 -
download
2
Transcript of NoSQL Database ppt for Beginners by Real Time Expert
www.kerneltraining.com
Market Needs
According to market survey it required :
Database capable to handle Explosion of social media sites (Facebook, Twitter)
with large data needs
Explosion of storage needs in large web sites such as Google, Yahoo
Required database who can work on clusters
Database who is capable to tune with 21st cent
Ury websites( e. g. schema less, with out large relations, mostly for open source ).
www.kerneltraining.com
Seeing the future
In future database popularity
www.kerneltraining.com
Why No SQL ?
Its easy and ready to manage with clusters .
Suitable for upcoming data explosions .
Not required to keep track with data structure.
provide easy and flexible system .
www.kerneltraining.com
What is No SQL
No SQL means Not Only SQL, implying that
when designing a software solution or product, there
are more than one storage mechanism that could be
used based on the needs.
The most important result of the rise of NoSQL
is Polyglot Persistence.
www.kerneltraining.com
Database Scaling RDBMS are "scaled up" by adding hardware
processing power
No SQL is "scaled out" by spreading the load
Partitioning /replication App
Load balancer
User
A-K
User
L-O
User
P-S
User
A - Z
www.kerneltraining.com
Relational DB ScalingAt certain point relational database won't scale
www.kerneltraining.com
No SQL DB ScalingAt certain point relational database won't scale
www.kerneltraining.com
Characteristics
NoSQL databases share some characteristics
with respect to scaling and performance:
o Auto sharding
o Distributed query support
o Integrated caching
www.kerneltraining.com
Where NoSQL Is Used?
Google (BigTable, LevelDB)
LinkedIn (Voldemort)
Facebook (Cassandra)
Twitter (Hadoop/Hbase, FlockDB, Cassandra)
Netflix (SimpleDB, Hadoop/HBase, Cassandra)
CERN (CouchDB
www.kerneltraining.com
History of NoSQL
oMultiValue databases at TRW in 1965.o DBM is released by AT&T in 1979.o Lotus Domino released in 1989.o Carlo Strozzi used the term NoSQL in 1998 to name his lightweight,oopen-source relational database that did not expose the standard SQL interface.oGraph database Neo4j is started in 2000.oGoogle BigTable is started in 2004. Paper published in 2006.o CouchDB is started in 2005.o The research paper on Amazon Dynamo is released in 2007.o The document database MongoDB is started in 2007 as a part of a openosource cloud computing stack and first standalone release in 2009.oFacebooks open sources the Cassandra project in 2008.oProject Voldemort started in 2008.oThe term NoSQL was reintroduced in early 2009.
www.kerneltraining.com
cap theorem 1/2
The need for scaling up/down/out is growing and so are the challenges of
dealing with huge distributed systems. So, when designing such applications,
it’s important to keep three core requirements in mind as described by
Brewer’s CAP theorem:
1. Consistency
2. Availability
3. Partition-Tolerance
A distributed system can satisfy any two of these
Guarantees at the same time, but not all three
www.kerneltraining.com
Cap theorem 2/2
In other words, CAP can be expressed as "If the network is broken, your
database won’twork"
In RDBMS we do not have P (network partitions)
○ Consistency and Availability are achieved
In No SQL we want to have P
Need to select either C or A
Drop A -> Accept waiting until data is consistent
Drop C -> Accept getting inconsistent data
sometimes
www.kerneltraining.com
ACID vs BASE
Scalability and better performance of No SQL is
achieved by sacrificing ACID compatibility.
Atomic, Consistent, Isolated, Durable
No SQL is having BASE compatibility instead.
Basically Available, Soft state,
Eventual consistency
www.kerneltraining.com
No SQL dose not use SQL
Sql was designed to be a query language for relational
database .
Relational databases are usually table based . Mush like a
spread- sheet .
records are stored in row and column management .
www.kerneltraining.com
No SQL are more flexible
Many of No SQL databases allow the definition of fields
on record creation .
Nested values are common in No SQL database.
Fields are not standardizes between records .
www.kerneltraining.com
Types of No SQL databases
NoSQLDataTypes
Key Value store
Example
Riak, Amazon S3 (Dynamo)
Document Based store
Example
CouchDB
Column based store
Example HBase,
Cassandra
Graph based
Example -Neo4J
www.kerneltraining.com
Descriptions about Document Based
Document based
Documents are usually stored in a structured format.
Documents are usually organized into collections or databases.
Individual document can have unique structure .
Each document has a specific key .
Examples – json , Bson , XML
www.kerneltraining.com
Key Value
You have a key and you can query by , and value at that by .
Not possible to query by other then a key .
Sometimes used alongside relational databases for caching .
www.kerneltraining.com
Column Based
Each row in a tabular database can have a different set of
columns.
Tabular databases are designed for large numbers of columns
in each row, and rows are typically versioned .
www.kerneltraining.com
Graph Based
These databases that uses edges and nodes to represent and
store data.
These nodes are organised by some relationships with one
another, which is represented by edges between the nodes.
Both the nodes and the relationships have some defined
properties.
THANK YOUfor attending Demo of
NOSQL
www.kerneltraining.com
Email: [email protected]
Call us: +91 8099776681