SlideShare a Scribd company logo
No sql                 (not only sql)
 History
 What is NoSQL?
 CAP Theorem
 Eventual Consistency
 Data Models
 Cassendra
1980
1990
2000
2010
Rise of Relational Database
Pros: Persistent, Concurrency Cons: Impedance
Mismatch Problem
Rise of Object Database
Dominance of Relational Database
Cons: Data needs increased, distributed
database started, SQL not designed for DDBMS
Google  BigTable
Amazon  Dynamo
 NoSQL is a term for a loosely defined class of non-relational
data stores that breaks the long history of relational databases
and ACID guarantees.
 Data stores that fall under this term may not require fixed
table schemas, and usually avoid join operations.
 The term was first popularised in early 2009.
 Three properties of a system: consistency, availability and
partitions
 We can have at most two of these three properties for any
shared-data system.
Consistency
-all clients see
current data
regardless of
updates or
deletes
Availability
-the system
continues to
operate as expected
even with node
failures
Partition
Tolerance
-the system
continues to
operate as
expected despite
network or
message failure
CA
CP AP
 A consistency model determines rules for visibility and apparent order of updates.
For example:
 Row X is replicated on nodes M and N
 Client A writes row X to node N
 Some period of time t elapses.
 Client B reads row X from node M
 Does client B see the write from client A?
 Consistency is a continuum with tradeoffs
 For NoSQL, the answer would be: maybe
 CAP Theorem states: Strict Consistency can't be achieved at the same time as availability
and
partition-tolerance.
X X
M N
A WRITES B READS
X*
X or X*?
When no updates occur for a long period of time, eventually all
updates will propagate through the system and all the nodes will be
consistent
Known as BASE (Basically Available, Soft state, Eventual consistency),
as opposed to ACID
* Basically Available - system seems to work all the time
* Soft State - it doesn't have to be consistent all the time
* Eventually Consistent - becomes consistent at some later time
No sql                 (not only sql)
123
564
789
Databases
Pros:
very fast
very scalable
simple model
able to distribute horizontally
Cons:
- many data structures (objects)
can't be easily modeled as key
value pairs
Document Data Model:
-Each document is a complex structure
-Represented in XML,Jason
-Query into the document structure to retrieve portions of the database
metadata
key
Stores
different
column
family
 Cheap, easy to implement (open source)
 Data are replicated to multiple nodes (therefore identical and fault-tolerant)
and can be partitioned
◦ Down nodes easily replaced
◦ No single point of failure
 Easy to distribute
 Don't require a schema
 Can scale up and down
 Relax the data consistency requirement (CAP)
What we are giving up…
• joins
• group by
• order by
• ACID transactions
• SQL as a sometimes frustrating but still powerful query
language
• Easy integration with other applications that support
SQL
 Originally developed at Facebook
 It is a distributed, extreme scalable,
fault tolerant post-relational database solution
 Data Model : column-oriented
 Uses the Dynamo Eventual Consistency model
 Written in Java
 Open-sourced and exists within the Apache family
 Uses Apache Thrift as it’s API
 Cassendra was designed with the understanding that
system/hardware failures can and do occur.
 Peer-to-peer ,distributed system
 All nodes are the same
 Read/Write-anywhere design
Data
center 1
Data center 2
The coordinator sends the write
to all replicas that own the row
being written.
As long as all replica nodes are
up and available, they will get
the write regardless of
the consistency level (Tunable)
specified by the client.
(LOCAL_QUORUM)
Multiple Data Center Write Requests
 There are two types of read requests :
1) direct read request
2) background read repair request.
 The number of replicas contacted by a direct read request is determined by
the consistency level specified by the client.
 Background read repair requests are sent to any additional replicas that did
not receive a direct request.
 Read repair requests ensure that the requested row is made consistent on
all replicas.
 The coordinator first contacts the replicas specified by the consistency
level.
 If multiple nodes are contacted, the rows from each replica are compared
for consistency in memory.
 If replicas are inconsistent, the following events occur:
◦ The coordinator uses the replica that has the most
recent data (based on the timestamp) to forward
the result back to the client.
◦ In the background, the coordinator
compare the data from all the
remaining replicas that own
the row.
 Created at Facebook along with Cassandra
 Is a cross-language, service-generation framework
 Binary Protocol (like Google Protocol Buffers)
 Compiles to: C++, Java, PHP, Ruby, Erlang, Perl, ...
 Relational (SQL)
◦ SELECT `column` FROM `database`,`table` WHERE `id` = key;
 Cassandra (standard) (CQL)
◦ keyspace.getSlice(key, “column_family”, "column")
No sql                 (not only sql)
Thank You
Ad

More Related Content

What's hot (20)

Client Centric Consistency Model
Client Centric Consistency ModelClient Centric Consistency Model
Client Centric Consistency Model
Rajat Kumar
 
Os9
Os9Os9
Os9
issbp
 
Android project (1)
Android project (1)Android project (1)
Android project (1)
hamzaterghini
 
Consistency protocols
Consistency protocolsConsistency protocols
Consistency protocols
ZongYing Lyu
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Cluster computing
Cluster computingCluster computing
Cluster computing
ShreerajKhatiwada
 
Advanced database protocols
Advanced database protocolsAdvanced database protocols
Advanced database protocols
Hitesh Mohapatra
 
Distributed systems
Distributed systemsDistributed systems
Distributed systems
Md Nazmul Hossain Mir
 
Distributed systems and consistency
Distributed systems and consistencyDistributed systems and consistency
Distributed systems and consistency
seldo
 
Replication in the Wild
Replication in the WildReplication in the Wild
Replication in the Wild
Ensar Basri Kahveci
 
Distributed and clustered systems
Distributed and clustered systemsDistributed and clustered systems
Distributed and clustered systems
V.V.Vanniaperumal College for Women
 
Models in ds
Models in dsModels in ds
Models in ds
DUNCAN OPIYO
 
Outlook Express Recovery / DBX Recovery Tool
Outlook Express Recovery / DBX Recovery ToolOutlook Express Recovery / DBX Recovery Tool
Outlook Express Recovery / DBX Recovery Tool
Mannat Software
 
Replication Techniques for Distributed Database Design
Replication Techniques for Distributed Database DesignReplication Techniques for Distributed Database Design
Replication Techniques for Distributed Database Design
Meghaj Mallick
 
Distributed document based system
Distributed document based systemDistributed document based system
Distributed document based system
Chetan Selukar
 
Distributed Database Management System(DDMS)
Distributed Database Management System(DDMS)Distributed Database Management System(DDMS)
Distributed Database Management System(DDMS)
mobeen.laws
 
CLUSTER COMPUTING
CLUSTER COMPUTINGCLUSTER COMPUTING
CLUSTER COMPUTING
anshugautamgautam
 
Databases in 30 minutes.
Databases in 30 minutes.Databases in 30 minutes.
Databases in 30 minutes.
Athira Mukundan
 
Cluster computings
Cluster computingsCluster computings
Cluster computings
Ragu1033
 
Distributed database system
Distributed database systemDistributed database system
Distributed database system
M. Ahmad Mahmood
 
Client Centric Consistency Model
Client Centric Consistency ModelClient Centric Consistency Model
Client Centric Consistency Model
Rajat Kumar
 
Consistency protocols
Consistency protocolsConsistency protocols
Consistency protocols
ZongYing Lyu
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Advanced database protocols
Advanced database protocolsAdvanced database protocols
Advanced database protocols
Hitesh Mohapatra
 
Distributed systems and consistency
Distributed systems and consistencyDistributed systems and consistency
Distributed systems and consistency
seldo
 
Outlook Express Recovery / DBX Recovery Tool
Outlook Express Recovery / DBX Recovery ToolOutlook Express Recovery / DBX Recovery Tool
Outlook Express Recovery / DBX Recovery Tool
Mannat Software
 
Replication Techniques for Distributed Database Design
Replication Techniques for Distributed Database DesignReplication Techniques for Distributed Database Design
Replication Techniques for Distributed Database Design
Meghaj Mallick
 
Distributed document based system
Distributed document based systemDistributed document based system
Distributed document based system
Chetan Selukar
 
Distributed Database Management System(DDMS)
Distributed Database Management System(DDMS)Distributed Database Management System(DDMS)
Distributed Database Management System(DDMS)
mobeen.laws
 
Databases in 30 minutes.
Databases in 30 minutes.Databases in 30 minutes.
Databases in 30 minutes.
Athira Mukundan
 
Cluster computings
Cluster computingsCluster computings
Cluster computings
Ragu1033
 
Distributed database system
Distributed database systemDistributed database system
Distributed database system
M. Ahmad Mahmood
 

Similar to No sql (not only sql) (20)

Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Mohamed Galal
 
مقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربيمقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربي
Mohamed Galal
 
Nosql availability & integrity
Nosql availability & integrityNosql availability & integrity
Nosql availability & integrity
Fahri Firdausillah
 
17-NoSQL.pptx
17-NoSQL.pptx17-NoSQL.pptx
17-NoSQL.pptx
levichan1
 
Master.pptx
Master.pptxMaster.pptx
Master.pptx
KarthikR780430
 
No sql
No sqlNo sql
No sql
Murat Çakal
 
Lecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdfLecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdf
manimozhi98
 
System Design Basics by Pratyush Majumdar
System Design Basics by Pratyush MajumdarSystem Design Basics by Pratyush Majumdar
System Design Basics by Pratyush Majumdar
Pratyush Majumdar
 
MongoDB
MongoDBMongoDB
MongoDB
fsbrooke
 
No sql databases
No sql databases No sql databases
No sql databases
Ankit Dubey
 
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
DataStax Academy
 
NoSql Database
NoSql DatabaseNoSql Database
NoSql Database
Suresh Parmar
 
NoSQL and Couchbase
NoSQL and CouchbaseNoSQL and Couchbase
NoSQL and Couchbase
Sangharsh agarwal
 
System design fundamentals CAP.pdf
System design fundamentals CAP.pdfSystem design fundamentals CAP.pdf
System design fundamentals CAP.pdf
UsmanAhmed269749
 
Data management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunitiesData management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunities
Editor Jacotech
 
Talon systems - Distributed multi master replication strategy
Talon systems - Distributed multi master replication strategyTalon systems - Distributed multi master replication strategy
Talon systems - Distributed multi master replication strategy
Saptarshi Chatterjee
 
NoSQL Introduction, Theory, Implementations
NoSQL Introduction, Theory, ImplementationsNoSQL Introduction, Theory, Implementations
NoSQL Introduction, Theory, Implementations
Firat Atagun
 
No sql
No sqlNo sql
No sql
Shruti_gtbit
 
Cassandra Consistency: Tradeoffs and Limitations
Cassandra Consistency: Tradeoffs and LimitationsCassandra Consistency: Tradeoffs and Limitations
Cassandra Consistency: Tradeoffs and Limitations
Panagiotis Papadopoulos
 
HbaseHivePigbyRohitDubey
HbaseHivePigbyRohitDubeyHbaseHivePigbyRohitDubey
HbaseHivePigbyRohitDubey
Rohit Dubey
 
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Mohamed Galal
 
مقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربيمقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربي
Mohamed Galal
 
Nosql availability & integrity
Nosql availability & integrityNosql availability & integrity
Nosql availability & integrity
Fahri Firdausillah
 
17-NoSQL.pptx
17-NoSQL.pptx17-NoSQL.pptx
17-NoSQL.pptx
levichan1
 
Lecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdfLecture-04-Principles of data management.pdf
Lecture-04-Principles of data management.pdf
manimozhi98
 
System Design Basics by Pratyush Majumdar
System Design Basics by Pratyush MajumdarSystem Design Basics by Pratyush Majumdar
System Design Basics by Pratyush Majumdar
Pratyush Majumdar
 
No sql databases
No sql databases No sql databases
No sql databases
Ankit Dubey
 
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
Tales From The Front: An Architecture For Multi-Data Center Scalable Applicat...
DataStax Academy
 
System design fundamentals CAP.pdf
System design fundamentals CAP.pdfSystem design fundamentals CAP.pdf
System design fundamentals CAP.pdf
UsmanAhmed269749
 
Data management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunitiesData management in cloud study of existing systems and future opportunities
Data management in cloud study of existing systems and future opportunities
Editor Jacotech
 
Talon systems - Distributed multi master replication strategy
Talon systems - Distributed multi master replication strategyTalon systems - Distributed multi master replication strategy
Talon systems - Distributed multi master replication strategy
Saptarshi Chatterjee
 
NoSQL Introduction, Theory, Implementations
NoSQL Introduction, Theory, ImplementationsNoSQL Introduction, Theory, Implementations
NoSQL Introduction, Theory, Implementations
Firat Atagun
 
Cassandra Consistency: Tradeoffs and Limitations
Cassandra Consistency: Tradeoffs and LimitationsCassandra Consistency: Tradeoffs and Limitations
Cassandra Consistency: Tradeoffs and Limitations
Panagiotis Papadopoulos
 
HbaseHivePigbyRohitDubey
HbaseHivePigbyRohitDubeyHbaseHivePigbyRohitDubey
HbaseHivePigbyRohitDubey
Rohit Dubey
 
Ad

Recently uploaded (20)

Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Ad

No sql (not only sql)

  • 2.  History  What is NoSQL?  CAP Theorem  Eventual Consistency  Data Models  Cassendra
  • 3. 1980 1990 2000 2010 Rise of Relational Database Pros: Persistent, Concurrency Cons: Impedance Mismatch Problem Rise of Object Database Dominance of Relational Database Cons: Data needs increased, distributed database started, SQL not designed for DDBMS Google  BigTable Amazon  Dynamo
  • 4.  NoSQL is a term for a loosely defined class of non-relational data stores that breaks the long history of relational databases and ACID guarantees.  Data stores that fall under this term may not require fixed table schemas, and usually avoid join operations.  The term was first popularised in early 2009.
  • 5.  Three properties of a system: consistency, availability and partitions  We can have at most two of these three properties for any shared-data system. Consistency -all clients see current data regardless of updates or deletes Availability -the system continues to operate as expected even with node failures Partition Tolerance -the system continues to operate as expected despite network or message failure CA CP AP
  • 6.  A consistency model determines rules for visibility and apparent order of updates. For example:  Row X is replicated on nodes M and N  Client A writes row X to node N  Some period of time t elapses.  Client B reads row X from node M  Does client B see the write from client A?  Consistency is a continuum with tradeoffs  For NoSQL, the answer would be: maybe  CAP Theorem states: Strict Consistency can't be achieved at the same time as availability and partition-tolerance. X X M N A WRITES B READS X* X or X*?
  • 7. When no updates occur for a long period of time, eventually all updates will propagate through the system and all the nodes will be consistent Known as BASE (Basically Available, Soft state, Eventual consistency), as opposed to ACID * Basically Available - system seems to work all the time * Soft State - it doesn't have to be consistent all the time * Eventually Consistent - becomes consistent at some later time
  • 9. 123 564 789 Databases Pros: very fast very scalable simple model able to distribute horizontally Cons: - many data structures (objects) can't be easily modeled as key value pairs Document Data Model: -Each document is a complex structure -Represented in XML,Jason -Query into the document structure to retrieve portions of the database metadata key
  • 11.  Cheap, easy to implement (open source)  Data are replicated to multiple nodes (therefore identical and fault-tolerant) and can be partitioned ◦ Down nodes easily replaced ◦ No single point of failure  Easy to distribute  Don't require a schema  Can scale up and down  Relax the data consistency requirement (CAP) What we are giving up… • joins • group by • order by • ACID transactions • SQL as a sometimes frustrating but still powerful query language • Easy integration with other applications that support SQL
  • 12.  Originally developed at Facebook  It is a distributed, extreme scalable, fault tolerant post-relational database solution  Data Model : column-oriented  Uses the Dynamo Eventual Consistency model  Written in Java  Open-sourced and exists within the Apache family  Uses Apache Thrift as it’s API
  • 13.  Cassendra was designed with the understanding that system/hardware failures can and do occur.  Peer-to-peer ,distributed system  All nodes are the same  Read/Write-anywhere design Data center 1 Data center 2
  • 14. The coordinator sends the write to all replicas that own the row being written. As long as all replica nodes are up and available, they will get the write regardless of the consistency level (Tunable) specified by the client. (LOCAL_QUORUM) Multiple Data Center Write Requests
  • 15.  There are two types of read requests : 1) direct read request 2) background read repair request.  The number of replicas contacted by a direct read request is determined by the consistency level specified by the client.  Background read repair requests are sent to any additional replicas that did not receive a direct request.  Read repair requests ensure that the requested row is made consistent on all replicas.
  • 16.  The coordinator first contacts the replicas specified by the consistency level.  If multiple nodes are contacted, the rows from each replica are compared for consistency in memory.  If replicas are inconsistent, the following events occur: ◦ The coordinator uses the replica that has the most recent data (based on the timestamp) to forward the result back to the client. ◦ In the background, the coordinator compare the data from all the remaining replicas that own the row.
  • 17.  Created at Facebook along with Cassandra  Is a cross-language, service-generation framework  Binary Protocol (like Google Protocol Buffers)  Compiles to: C++, Java, PHP, Ruby, Erlang, Perl, ...
  • 18.  Relational (SQL) ◦ SELECT `column` FROM `database`,`table` WHERE `id` = key;  Cassandra (standard) (CQL) ◦ keyspace.getSlice(key, “column_family”, "column")