Database Applications (15-415) Part I- nosql databases Lecture 26, April 21, 2015 Mohammad Hammoud


Eventual Consistency: A Main Challenge


Download 19.94 Kb.
bet6/8
Sana15.06.2023
Hajmi19.94 Kb.
#1485119
1   2   3   4   5   6   7   8
Bog'liq
Lecture26-PartI-NoSQL-Databases-21April-2015

Eventual Consistency: A Main Challenge

  • But, what if the client accesses the data from different replicas?

Webpage-A
Event: Update Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Webpage-A
Protocols like Read Your Own Writes (RYOW) can be applied!

Outline


Types of Data
Scaling Databases & the 2PC Protocol
The CAP Theorem and the BASE Properties
NoSQL Databases

NoSQL Databases

  • To this end, a new class of databases emerged, which mainly follow the BASE properties
    • These were dubbed as NoSQL databases
    • E.g., Amazon’s Dynamo and Google’s Bigtable
  • Main characteristics of NoSQL databases include:

Types of NoSQL Databases

  • Here is a limited taxonomy of NoSQL databases:

NoSQL Databases
Document Stores
Graph Databases
Key-Value Stores
Columnar Databases

Document Stores

  • Documents are stored in some standard format or encoding (e.g., XML, JSON, PDF or Office Documents)
    • These are typically referred to as Binary Large Objects (BLOBs)
  • Documents can be indexed
    • This allows document stores to outperform traditional file systems
  • E.g., MongoDB and CouchDB (both can be queried using MapReduce)

Types of NoSQL Databases

  • Here is a limited taxonomy of NoSQL databases:

NoSQL Databases
Document Stores
Graph Databases
Key-Value Stores
Columnar Databases

Graph Databases

  • Data are represented as vertices and edges
  • Graph databases are powerful for graph-like queries (e.g., find the shortest path between two elements)
  • E.g., Neo4j and VertexDB

Id: 1
Name: Alice
Age: 18
Id: 2
Name: Bob
Age: 22
Id: 3
Name: Chess
Type: Group
Id:100
Label: knows
Since: 2001/10/03
Id:101
Label: knows
Since: 2001/10/03
Id:103
Label: Members
Id:104
Label: Members
Id:105
Label: is_member
Since: 2011/02/14
Id:102
Label: is_member
Since: 2005/07/01

Download 19.94 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling