SlideShare a Scribd company logo
NoSQL Databases
By Carlos Alberto Benitez - @betustwit
What is NoSQL?
Relational databases, were not designed to work with the scale and
agility challenges that face modern applications, nor were they built to
take advantage of the storage and processing power available today.
NoSQL involves a wide variety of different database technologies that
were developed in response to a rise in the volume of data stored and
performance and processing needs.
What is NoSQL?
NoSQL technology was pioneered by leading internet companies how
Google, Amazon, Facebook and LinkedIn.
NoSQL is frequently called Not Only SQL, since it is not always
necessary to use structured queries for data access.
The NoSQL was designed to store and manage large volume of data
with a response time of less than relational databases where the
read/write operations are very optimized.
Motivations for this approach include simplicity of design, horizontal
scaling and data availability.
Why NoSQL?
• Is more efficient that Relational DB.
• Sharing and replication are simply.
• The NoSQL are more tolerant to fails.
• Focused to horizontal scalability.
• The relational model takes data and separates it into many
interrelated tables that contain rows and columns with one
structure defined, in NoSQL this is not necessary.
• Schema free (Dynamic schema).
• High data velocity (read/write optimizations).
• Allow storage of data that is structured, semi-structured and
unstructured.
Why NoSQL?
• More capacity for manage big data volume.
• Data can be stored and managed in different locations (Sharding).
• Exists many alternatives Open source.
When use NoSQL?
• NoSQL solves the performance of relational databases for handling
large volumes of data.
• NoSQL is especially useful when an enterprise needs to access and
analyze massive amounts of unstructured data.
Types (Classified by data store)
Category DB Open Source
Column families
Cassandra Yes
Hypertable Yes
Hadoop Yes
Document
MongoDB Yes
CouchDB Yes
RavenDB Yes
Key-Value
Redis Yes
Riak Yes
DynamoDB No
Graph
Neo4j Yes
HyperGraphDB No
InfoGrid Yes
Object
Db4o Yes
EyeDB Yes
Perst Yes
NoSQL Databases List
http://nosql-database.org
MongoDB
MongoDB is a document database that provides high performance,
high availability and easy scalability.
Each element are stored how documents in collections.
MongoDB supports dynamic schema design, allowing the documents in
a collection to have different fields and structures.
Site: http://www.mongodb.org
Manual: http://docs.mongodb.org/manual
MongoDB - analogy
Relational DB MongoDB
Database Database
Tables Collections
Records Documents
Columns/fields Key-value pair
MongoDB - Document
MongoDB - Document
{
title: "MongoDB: The Definitive Guide",
author: [ "Kristina Chodorow", "Mike Dirolf" ],
published_date: ISODate("2010-09-24"),
pages: 216,
language: "English",
publisher: {
name: "O'Reilly Media",
founded: 1980,
location: "CA"
}
}
MongoDB - Sharding
Sharding is a method for storing data across multiple machines.
Redis DB
Redis is an open source, advanced key-value cache and store. It is
often referred to as a data structure server since keys can contain
strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.
Redis is an in-memory database.
Site: http://redis.io
Documentation: http://redis.io/documentation
Try Redis: http://try.redis.io
Redis DB - Persistence
RDB (Redis Data Base)
•The RDB persistence performs point-in-time snapshots of your
dataset at specified intervals.
•RDB is a very compact single-file (perfect for backups).
•RDB allows faster restarts with big datasets compared to AOF.
•RDB is NOT good for minimize the chance of data loss.
•The intervals can be configured on redis.conf file in the
SNAPSHOTTING section.
Redis DB – Persistence
AOF (Append Only File)
•The AOF logs every write operation received by the server.
•Commands are logged using the same format as the Redis protocol.
•It is possible to combine both AOF and RDB.
•The AOF log is an append only log (has not corruption problems if there
is a power outage).
•AOF contains a log of all the operations one after the other.
•AOF files are usually bigger than the equivalent RDB files for the same
dataset.
•Options: YES/NO (appendfsync: Always, Everysec, No).
Redis DB - Data Types
Strings: Are the most basic kind of Redis value, can contain any kind
of data, for instance a JPEG image. A String value can be at max 512
Megabytes in length.
Lists: Redis Lists are simply lists of strings, sorted by insertion order.
The max length of a list is 232 - 1 elements (more than 4 billion of
elements per list). Use: Model a timeline in a social network
Sets: Redis Sets are an unordered collection of Strings, Redis Sets
not allow repeated members. Is possible make unions, intersections,
differences of sets in very short time.
Redis DB - Data Types
Sorted Sets: Are similarly to Sets, the difference is that every
member of a Sorted Set is associated with score, that is used in order
to take the sorted set ordered. Use: Search engine how Google based
on score for results.
Hashes: Are the most similar to relational database structure. Are
maps between string fields and string values, so they are the perfect
data type to represent objects (eg: A User with a number of fields like
name, surname, age, and so forth)
Redis DB - Replication
Redis replication is a very simple to use and configure master-slave
replication that allows slave Redis servers to be exact copies of master
servers.
•Redis uses asynchronous replication.
•A master can have multiple slaves.
•Slaves are able to accept connections from other slaves.
•Replication is also non-blocking on the master and slave side.
Configuration (redis.conf -> REPLICATION)
slaveof <masterip> <masterport>
By Carlos Alberto Benitez - @betustwit

More Related Content

PPTX
introduction to NOSQL Database
PPTX
No SQL- The Future Of Data Storage
PPTX
An Intro to NoSQL Databases
PPTX
NoSQL databases
PDF
Nosql database presentation
PPTX
Introduction to NoSQL
PPTX
PDF
Introduction to NoSQL
introduction to NOSQL Database
No SQL- The Future Of Data Storage
An Intro to NoSQL Databases
NoSQL databases
Nosql database presentation
Introduction to NoSQL
Introduction to NoSQL

What's hot (20)

PPTX
Non relational databases-no sql
PDF
NoSQL Databases
PDF
NoSQL
PPTX
Appache Cassandra
PDF
10 mongo db
PPTX
PPTX
NoSql Data Management
PPTX
Introduction to NOSQL databases
PPTX
NoSQL and MapReduce
PPTX
Key-Value NoSQL Database
PPT
Graph database
PPTX
An Introduction to Big Data, NoSQL and MongoDB
PDF
No sql databases
PDF
Graph Database
PPT
NoSQL Slideshare Presentation
PPTX
NOSQL vs SQL
PPTX
London HUG
PDF
NoSQL Databases
PPTX
NoSQL Databases
PPTX
«NoSQL Databases and Polyglot Persistence»
Non relational databases-no sql
NoSQL Databases
NoSQL
Appache Cassandra
10 mongo db
NoSql Data Management
Introduction to NOSQL databases
NoSQL and MapReduce
Key-Value NoSQL Database
Graph database
An Introduction to Big Data, NoSQL and MongoDB
No sql databases
Graph Database
NoSQL Slideshare Presentation
NOSQL vs SQL
London HUG
NoSQL Databases
NoSQL Databases
«NoSQL Databases and Polyglot Persistence»
Ad

Viewers also liked (15)

PPTX
KCB101 Assignment 2
PPT
100th day of school
DOCX
Actitud (1)2
PDF
ICT Indicators in Brief December 2013
PPT
Desarrollo de sistemas con PHP y Redis
PDF
Media and comm storyboard slides
PDF
Mdg africa report_2014_eng
PDF
Freelancing 101 Workshop 2016
PDF
The Future of the Internet Economy Egypt 2014
PDF
Social media workshop #s3geeks Day 1
PDF
Linkedin workshop
PDF
Subiecte rezolvate la examenul de Neurologie [REMASTERED]
PPTX
Freelance Workshop - ورشة عن العمل الحرّ
PPT
Mind-mapping for Developers
PPTX
How to -Become- a Great Designer
KCB101 Assignment 2
100th day of school
Actitud (1)2
ICT Indicators in Brief December 2013
Desarrollo de sistemas con PHP y Redis
Media and comm storyboard slides
Mdg africa report_2014_eng
Freelancing 101 Workshop 2016
The Future of the Internet Economy Egypt 2014
Social media workshop #s3geeks Day 1
Linkedin workshop
Subiecte rezolvate la examenul de Neurologie [REMASTERED]
Freelance Workshop - ورشة عن العمل الحرّ
Mind-mapping for Developers
How to -Become- a Great Designer
Ad

Similar to NoSQL Databases (20)

PPTX
unit2-ppt1.pptx
PDF
Vskills Apache Cassandra sample material
PDF
NOsql Presentation.pdf
PPTX
Unit 3 MongDB
PPTX
cours database pour etudiant NoSQL (1).pptx
PPTX
Introduction to Data Science NoSQL.pptx
PDF
SQL or NoSQL - how to choose
PPTX
NoSQL.pptx
PPTX
Unit 5.pptx computer graphics and gaming
PPTX
No sq lv2
PDF
the rising no sql technology
PPTX
Presentation on NOSQL and mongodb .pptx
PPTX
Why no sql ? Why Couchbase ?
PDF
MongoDB Lab Manual (1).pdf used in data science
PPTX
UNIT-2.pptx
PPT
NoSql Databases
PDF
Introduction of Redis as NoSQL Database
PPTX
MongoDB NoSQL - Developer Guide
PPTX
PDF
Nosql part1 8th December
unit2-ppt1.pptx
Vskills Apache Cassandra sample material
NOsql Presentation.pdf
Unit 3 MongDB
cours database pour etudiant NoSQL (1).pptx
Introduction to Data Science NoSQL.pptx
SQL or NoSQL - how to choose
NoSQL.pptx
Unit 5.pptx computer graphics and gaming
No sq lv2
the rising no sql technology
Presentation on NOSQL and mongodb .pptx
Why no sql ? Why Couchbase ?
MongoDB Lab Manual (1).pdf used in data science
UNIT-2.pptx
NoSql Databases
Introduction of Redis as NoSQL Database
MongoDB NoSQL - Developer Guide
Nosql part1 8th December

Recently uploaded (20)

PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Nekopoi APK 2025 free lastest update
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
history of c programming in notes for students .pptx
PDF
Cost to Outsource Software Development in 2025
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PPTX
assetexplorer- product-overview - presentation
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Complete Guide to Website Development in Malaysia for SMEs
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
Odoo Companies in India – Driving Business Transformation.pdf
Nekopoi APK 2025 free lastest update
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Operating system designcfffgfgggggggvggggggggg
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Digital Systems & Binary Numbers (comprehensive )
history of c programming in notes for students .pptx
Cost to Outsource Software Development in 2025
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
assetexplorer- product-overview - presentation
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Complete Guide to Website Development in Malaysia for SMEs
Monitoring Stack: Grafana, Loki & Promtail
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Design an Analysis of Algorithms II-SECS-1021-03

NoSQL Databases

  • 1. NoSQL Databases By Carlos Alberto Benitez - @betustwit
  • 2. What is NoSQL? Relational databases, were not designed to work with the scale and agility challenges that face modern applications, nor were they built to take advantage of the storage and processing power available today. NoSQL involves a wide variety of different database technologies that were developed in response to a rise in the volume of data stored and performance and processing needs.
  • 3. What is NoSQL? NoSQL technology was pioneered by leading internet companies how Google, Amazon, Facebook and LinkedIn. NoSQL is frequently called Not Only SQL, since it is not always necessary to use structured queries for data access. The NoSQL was designed to store and manage large volume of data with a response time of less than relational databases where the read/write operations are very optimized. Motivations for this approach include simplicity of design, horizontal scaling and data availability.
  • 4. Why NoSQL? • Is more efficient that Relational DB. • Sharing and replication are simply. • The NoSQL are more tolerant to fails. • Focused to horizontal scalability. • The relational model takes data and separates it into many interrelated tables that contain rows and columns with one structure defined, in NoSQL this is not necessary. • Schema free (Dynamic schema). • High data velocity (read/write optimizations). • Allow storage of data that is structured, semi-structured and unstructured.
  • 5. Why NoSQL? • More capacity for manage big data volume. • Data can be stored and managed in different locations (Sharding). • Exists many alternatives Open source.
  • 6. When use NoSQL? • NoSQL solves the performance of relational databases for handling large volumes of data. • NoSQL is especially useful when an enterprise needs to access and analyze massive amounts of unstructured data.
  • 7. Types (Classified by data store) Category DB Open Source Column families Cassandra Yes Hypertable Yes Hadoop Yes Document MongoDB Yes CouchDB Yes RavenDB Yes Key-Value Redis Yes Riak Yes DynamoDB No Graph Neo4j Yes HyperGraphDB No InfoGrid Yes Object Db4o Yes EyeDB Yes Perst Yes
  • 9. MongoDB MongoDB is a document database that provides high performance, high availability and easy scalability. Each element are stored how documents in collections. MongoDB supports dynamic schema design, allowing the documents in a collection to have different fields and structures. Site: http://www.mongodb.org Manual: http://docs.mongodb.org/manual
  • 10. MongoDB - analogy Relational DB MongoDB Database Database Tables Collections Records Documents Columns/fields Key-value pair
  • 12. MongoDB - Document { title: "MongoDB: The Definitive Guide", author: [ "Kristina Chodorow", "Mike Dirolf" ], published_date: ISODate("2010-09-24"), pages: 216, language: "English", publisher: { name: "O'Reilly Media", founded: 1980, location: "CA" } }
  • 13. MongoDB - Sharding Sharding is a method for storing data across multiple machines.
  • 14. Redis DB Redis is an open source, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs. Redis is an in-memory database. Site: http://redis.io Documentation: http://redis.io/documentation Try Redis: http://try.redis.io
  • 15. Redis DB - Persistence RDB (Redis Data Base) •The RDB persistence performs point-in-time snapshots of your dataset at specified intervals. •RDB is a very compact single-file (perfect for backups). •RDB allows faster restarts with big datasets compared to AOF. •RDB is NOT good for minimize the chance of data loss. •The intervals can be configured on redis.conf file in the SNAPSHOTTING section.
  • 16. Redis DB – Persistence AOF (Append Only File) •The AOF logs every write operation received by the server. •Commands are logged using the same format as the Redis protocol. •It is possible to combine both AOF and RDB. •The AOF log is an append only log (has not corruption problems if there is a power outage). •AOF contains a log of all the operations one after the other. •AOF files are usually bigger than the equivalent RDB files for the same dataset. •Options: YES/NO (appendfsync: Always, Everysec, No).
  • 17. Redis DB - Data Types Strings: Are the most basic kind of Redis value, can contain any kind of data, for instance a JPEG image. A String value can be at max 512 Megabytes in length. Lists: Redis Lists are simply lists of strings, sorted by insertion order. The max length of a list is 232 - 1 elements (more than 4 billion of elements per list). Use: Model a timeline in a social network Sets: Redis Sets are an unordered collection of Strings, Redis Sets not allow repeated members. Is possible make unions, intersections, differences of sets in very short time.
  • 18. Redis DB - Data Types Sorted Sets: Are similarly to Sets, the difference is that every member of a Sorted Set is associated with score, that is used in order to take the sorted set ordered. Use: Search engine how Google based on score for results. Hashes: Are the most similar to relational database structure. Are maps between string fields and string values, so they are the perfect data type to represent objects (eg: A User with a number of fields like name, surname, age, and so forth)
  • 19. Redis DB - Replication Redis replication is a very simple to use and configure master-slave replication that allows slave Redis servers to be exact copies of master servers. •Redis uses asynchronous replication. •A master can have multiple slaves. •Slaves are able to accept connections from other slaves. •Replication is also non-blocking on the master and slave side. Configuration (redis.conf -> REPLICATION) slaveof <masterip> <masterport>
  • 20. By Carlos Alberto Benitez - @betustwit