SlideShare a Scribd company logo
1 of 30
TThhee NNooSSQQLL PPrriinncciipplleess 
&& 
BBaassiicc AApppplliiccaattiioonn ooff 
CCaassssaannddrraa MMooddeell 
RReesshhmmii RRaaddhhaakkrriisshhnnaann 
SS77 CCSS BB 
RRoollll NNOO::7711 
GGuuiiddeedd bbyy,, 
DDrr..SSuuddhheeeepp EEllaayyiiddoomm 
SSOOEE CCUUSSAATT
AAGGEENNDDAA 
• INTRODUCTION 
• RDBMS 
• CHALLENGE 
• NoSQL 
• COMMON CONCEPTS 
• CLASSIFICATION 
• CASSANDRA 
• CASSANDRA CHARACTERISTICS 
• CONCLUSION 
• REFERENCES
INTRODUCTION 
* RDBMS is the predominant technology for storing structured 
data in web and business applications. 
* The relational database systems have little capability to 
horizontally scale. 
* NoSQL approach includes simplicity of design, horizontal 
scaling and finer control over availability 
* Cassandra is the right NoSQL database when you need 
scalability and high availability without compromising 
performance
RDBMS 
MERITS: 
• Rich language 
• Easy to use and integrate 
• Rich toolset 
• Vertical scaling 
• The promise: ACID 
o Atomicity 
o Consistency 
o Isolation 
o Durability
RDBMS 
DEMERTS: 
• Vertical scaling is highly expensive 
• Fails to handle large amount of data 
• It is not much efficient in cloud concept 
The read-write rates of data in RDBMS are very poor 
So it is hard to face the challenges from the modern web 
applications using RDBMS
The Challenge: Modern web apps 
• Internet-scale data size 
• High read-write rates 
• Frequent schema changes 
• "social" apps - not banks 
o They don't need the same 
level of ACID 
SCALING
NoSQL 
• Uses horizontal scaling 
• Distribute data over many servers 
• It give up ACID property 
• Based on CAP -theorem
Brewer's CAP Theorem: 
You can only choose two
CAP 
Consistency: 
A distributed system is considered to be consistent if after an update 
operation of some writer, all readers see his updates in some 
shared data sources 
Availability: 
System is designed in a way that continue operation even if nodes in 
a cluster crash 
Partition Tolerance: 
Ability of a system to continue operation in the presence of network 
partition
COMMON CONCEPTS 
•Sharding 
•Consistent hashing 
•Map reduce
SHARDING 
• it's a partitioning mechanism 
• records are stored in different servers according to some 
key 
• records that are accesses/updated together reside on same 
node 
• load is almost evenly distributed among servers 
• vertical partitioning: parts of single records are stored on 
different servers
Constant Hashing 
• A,B,C:- NODES 
• 1,2,3,4:- OBJECTS 
-> both are placed in ring 
->movement is clockwise 
->nodes can leave the system 
->nodes can enter into the system
MAP REDUCE 
•Used in 
distributed 
computig 
• map function 
• reduce function 
• process on 
key/value
Existing NOSQL Solutions
Classification of NOSQL data stores 
• Document Oriented 
o CouchDB, MongoDB, Lotus Notes, SimpleDB 
• Key-Value oriented 
o Voldemort, Dynamo, Riak (sort of), Redis, Tokyo 
• Column oriented 
o Cassandra, HBase, BigTable 
• Graph Databases oriented 
o Neo4J, FlockDB, DEX, AlegroGraph
• Developed at facebook 
• Follows the BigTable Data Model - column 
oriented 
• Follows the Dynamo Eventual Consistency 
model 
• Opensourced at Apache 
• Implemented in Java
• Distributed Storage System 
• Manages structured data and scale to large 
size
Data Model 
• Instance of Cassandra – Consists of one table 
represent multidimensional map indexed by a key 
• Query for information: 
get(keyspace, column family, row key) 
• Keyspace:- top level unit of information, Column 
families are subordinate of one key space 
• Column :- atomic unit of information, expressed 
as: name:value 
• Super Column :- groups together like columns 
with a common name, 
Used for modeling complex data types (address)
Data Model 
ROW FAMILY 
• uniquely identifiable data 
• groups column and super column 
• Every row are identified by row key 
COLUMN FAMILY 
• It have to be define in advance before a cluster of servers in 
Cassandra instance is launched 
• It consists of keyed rows which groups columns and super 
columns 
• Column and super column added dynamically to column 
families and they are not restricted in numbers
Write Path
MEMTABLES 
• In-memory representation of recently written data 
• When the table is full, it's sorted and then flushed to disk -> sstable 
SS TABLES 
Sorted Strings Tables 
• Unchangeable 
• On-disk 
• Sorted by a string key 
• In-memory index of elements 
• Binary search (in memory) to find element location 
• Bloom filter to reduce number of unneeded binary searches. 
WRITE PROPERTIES 
• No Locks in the critical path 
• Always available to writes, even if there are failures. 
No seeks 
• Fast 
• Atomic within a Row
Read Path
Read Properteis 
• Read multiple SSTables 
• Slower than writes (but still fast) 
• Seeks can be mitigated with more RAM 
• Uses probabilistic bloom filters to reduce lookups. 
• Extensive optional caching 
o Key Cache 
o Row Cache
Bloom Filters 
• Space efficient probabilistic data structure 
• Test whether an element is a member of a set 
• Union and intersection are implemented as bitwise OR, AND
QUERIES EXAMPLES 
CREATE INDEX CREATE CUSTOM INDEX IF NOT 
EXISTS index_name 
ON keyspace_name.table_name ( KEYS (column_name) ) 
( USING class_name ) ( WITH OPTIONS = map ) 
Restrictions: 
USING class_name is allowed only if CUSTOM is used 
and 
class_name is a string literal containing a java class name. 
index_name is an identifier, enclosed or not enclosed in 
double 
quotation marks, excluding reserved words. 
map is described in ALTER KEYSPACE. 
CREATE KEYSPACE CREATE ( KEYSPACE | 
SCHEMA ) IF NOT EXISTS keyspace_name 
WITH REPLICATION = map 
AND DURABLE_WRITES = ( true | false )
MySQL Comparison 
• MySQL : for 50 GB Data 
Writes Average : ~300 ms 
Reads Average : ~350 ms 
• Cassandra: for 50 GB Data 
Writes Average : 0.12 ms 
Reads Average : 15 ms
CONCLUSION 
•NoSQL is highly efficient concept for dealing 
large amount of data. 
•It can be used to solve big data problem. 
•Cassandra model can provide fast reading and 
writing operations 
•So this database model is used by all the latest 
social networking medias
REFERENCES 
**The NoSQL Principles and Basic Application of Cassandra Model 
Guoxi Wang ; Jianfeng Tang 
Computer Science & Service System (CSSS), 2012 International Conference on 
Digital Object Identifier: 10.1109/CSSS.2012.336 
Publication Year: 2012 , Page(s): 1332 - 1335 
IEEE CONFERENCE PUBLICATIONS 
**Survey on NoSQL database 
Jing Han ; Haihong, E. ; Guan Le ; Jian Du 
Pervasive Computing and Applications (ICPCA), 2011 6th InternationalConferenceon 
Digital Object Identifier: 10.1109/ICPCA.2011.6106531 
Publication Year: 2011 , Page(s): 363 - 366 
Cited by: Papers (2) 
IEEE CONFERENCE PUBLICATIONS
QQuueessttiioonnss??
The No SQL Principles and Basic Application Of Casandra Model

More Related Content

What's hot

Apache Cassandra overview
Apache Cassandra overviewApache Cassandra overview
Apache Cassandra overviewElifTech
 
An Overview of Apache Cassandra
An Overview of Apache CassandraAn Overview of Apache Cassandra
An Overview of Apache CassandraDataStax
 
Cassandra - A Decentralized Structured Storage System
Cassandra - A Decentralized Structured Storage SystemCassandra - A Decentralized Structured Storage System
Cassandra - A Decentralized Structured Storage SystemVarad Meru
 
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...DataStax Academy
 
Cassandra Explained
Cassandra ExplainedCassandra Explained
Cassandra ExplainedEric Evans
 
Apache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinApache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinChristian Johannsen
 
Cassandra - Research Paper Overview
Cassandra - Research Paper OverviewCassandra - Research Paper Overview
Cassandra - Research Paper Overviewsameiralk
 
Cassandra overview
Cassandra overviewCassandra overview
Cassandra overviewSean Murphy
 
Cassandra for Sysadmins
Cassandra for SysadminsCassandra for Sysadmins
Cassandra for SysadminsNathan Milford
 
Introduction to cassandra
Introduction to cassandraIntroduction to cassandra
Introduction to cassandraNguyen Quang
 
Managing Objects and Data in Apache Cassandra
Managing Objects and Data in Apache CassandraManaging Objects and Data in Apache Cassandra
Managing Objects and Data in Apache CassandraDataStax
 
Cassandra architecture
Cassandra architectureCassandra architecture
Cassandra architectureT Jake Luciani
 
What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...
What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...
What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...Edureka!
 
On Rails with Apache Cassandra
On Rails with Apache CassandraOn Rails with Apache Cassandra
On Rails with Apache CassandraStu Hood
 
Apache Spark II (SparkSQL)
Apache Spark II (SparkSQL)Apache Spark II (SparkSQL)
Apache Spark II (SparkSQL)Datio Big Data
 

What's hot (20)

Apache Cassandra overview
Apache Cassandra overviewApache Cassandra overview
Apache Cassandra overview
 
Cassandra Database
Cassandra DatabaseCassandra Database
Cassandra Database
 
An Overview of Apache Cassandra
An Overview of Apache CassandraAn Overview of Apache Cassandra
An Overview of Apache Cassandra
 
Cassandra - A Decentralized Structured Storage System
Cassandra - A Decentralized Structured Storage SystemCassandra - A Decentralized Structured Storage System
Cassandra - A Decentralized Structured Storage System
 
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...
Apache Cassandra and DataStax Enterprise Explained with Peter Halliday at Wil...
 
Cassandra training
Cassandra trainingCassandra training
Cassandra training
 
Cassandra Explained
Cassandra ExplainedCassandra Explained
Cassandra Explained
 
Apache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinApache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek Berlin
 
Cassandra - Research Paper Overview
Cassandra - Research Paper OverviewCassandra - Research Paper Overview
Cassandra - Research Paper Overview
 
Cassandra overview
Cassandra overviewCassandra overview
Cassandra overview
 
Cassandra for Sysadmins
Cassandra for SysadminsCassandra for Sysadmins
Cassandra for Sysadmins
 
Introduction to cassandra
Introduction to cassandraIntroduction to cassandra
Introduction to cassandra
 
Cassandra 101
Cassandra 101Cassandra 101
Cassandra 101
 
Managing Objects and Data in Apache Cassandra
Managing Objects and Data in Apache CassandraManaging Objects and Data in Apache Cassandra
Managing Objects and Data in Apache Cassandra
 
Cassandra architecture
Cassandra architectureCassandra architecture
Cassandra architecture
 
What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...
What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...
What is Apache Cassandra? | Apache Cassandra Tutorial | Apache Cassandra Intr...
 
On Rails with Apache Cassandra
On Rails with Apache CassandraOn Rails with Apache Cassandra
On Rails with Apache Cassandra
 
Cassandra ppt 2
Cassandra ppt 2Cassandra ppt 2
Cassandra ppt 2
 
Intro to Cassandra
Intro to CassandraIntro to Cassandra
Intro to Cassandra
 
Apache Spark II (SparkSQL)
Apache Spark II (SparkSQL)Apache Spark II (SparkSQL)
Apache Spark II (SparkSQL)
 

Viewers also liked

Common Service Definition
Common Service DefinitionCommon Service Definition
Common Service DefinitionDavid Messineo
 
Characteristics of a service marketing
Characteristics of a service marketingCharacteristics of a service marketing
Characteristics of a service marketingiipmff2
 
The nature & classification of services
The nature & classification of servicesThe nature & classification of services
The nature & classification of servicesAnupam Kumar
 
The importance of customer service
The importance of customer serviceThe importance of customer service
The importance of customer serviceRasila Abdulla
 
the nature of services
the nature of servicesthe nature of services
the nature of servicesschool
 
Nature, characteristics of services
Nature, characteristics of servicesNature, characteristics of services
Nature, characteristics of servicesPranav Kumar Ojha
 
Service Characteristics of Hospitality and Tourism Marketing
Service Characteristics of Hospitality and Tourism Marketing Service Characteristics of Hospitality and Tourism Marketing
Service Characteristics of Hospitality and Tourism Marketing ConflagratioNal Jahid
 
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)Apache Apex
 
75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & Statistics75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & StatisticsHelp Scout
 
Classification and Characteristics of a service
Classification and Characteristics of a serviceClassification and Characteristics of a service
Classification and Characteristics of a serviceSanchit
 

Viewers also liked (15)

Common Service Definition
Common Service DefinitionCommon Service Definition
Common Service Definition
 
Characteristics of a service marketing
Characteristics of a service marketingCharacteristics of a service marketing
Characteristics of a service marketing
 
The nature & classification of services
The nature & classification of servicesThe nature & classification of services
The nature & classification of services
 
The importance of customer service
The importance of customer serviceThe importance of customer service
The importance of customer service
 
Characteristics of services
Characteristics of servicesCharacteristics of services
Characteristics of services
 
the nature of services
the nature of servicesthe nature of services
the nature of services
 
Nature, characteristics of services
Nature, characteristics of servicesNature, characteristics of services
Nature, characteristics of services
 
Service Characteristics of Hospitality and Tourism Marketing
Service Characteristics of Hospitality and Tourism Marketing Service Characteristics of Hospitality and Tourism Marketing
Service Characteristics of Hospitality and Tourism Marketing
 
Classification of services
Classification of servicesClassification of services
Classification of services
 
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
 
An Introduction to Services Marketing
An Introduction to Services MarketingAn Introduction to Services Marketing
An Introduction to Services Marketing
 
Customer Services Ppresentation
Customer Services PpresentationCustomer Services Ppresentation
Customer Services Ppresentation
 
75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & Statistics75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & Statistics
 
Classification and Characteristics of a service
Classification and Characteristics of a serviceClassification and Characteristics of a service
Classification and Characteristics of a service
 
Services Marketing
Services MarketingServices Marketing
Services Marketing
 

Similar to The No SQL Principles and Basic Application Of Casandra Model

Cassandra an overview
Cassandra an overviewCassandra an overview
Cassandra an overviewPritamKathar
 
Appache Cassandra
Appache Cassandra  Appache Cassandra
Appache Cassandra nehabsairam
 
04-Introduction-to-CassandraDB-.pdf
04-Introduction-to-CassandraDB-.pdf04-Introduction-to-CassandraDB-.pdf
04-Introduction-to-CassandraDB-.pdfhothyfa
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxRahul Borate
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxRahul Borate
 
Introduction to nosql | NoSQL databases
Introduction to nosql | NoSQL databasesIntroduction to nosql | NoSQL databases
Introduction to nosql | NoSQL databasesShilpaKrishna6
 
cassandra_presentation_final
cassandra_presentation_finalcassandra_presentation_final
cassandra_presentation_finalSergioBruno21
 
Cassandra - A Distributed Database System
Cassandra - A Distributed Database System Cassandra - A Distributed Database System
Cassandra - A Distributed Database System Md. Shohel Rana
 
Column db dol
Column db dolColumn db dol
Column db dolpoojabi
 
Cassandra
Cassandra Cassandra
Cassandra Pooja GV
 

Similar to The No SQL Principles and Basic Application Of Casandra Model (20)

Cassandra an overview
Cassandra an overviewCassandra an overview
Cassandra an overview
 
Appache Cassandra
Appache Cassandra  Appache Cassandra
Appache Cassandra
 
04-Introduction-to-CassandraDB-.pdf
04-Introduction-to-CassandraDB-.pdf04-Introduction-to-CassandraDB-.pdf
04-Introduction-to-CassandraDB-.pdf
 
Cassandra tutorial
Cassandra tutorialCassandra tutorial
Cassandra tutorial
 
BigData, NoSQL & ElasticSearch
BigData, NoSQL & ElasticSearchBigData, NoSQL & ElasticSearch
BigData, NoSQL & ElasticSearch
 
NOsql Presentation.pdf
NOsql Presentation.pdfNOsql Presentation.pdf
NOsql Presentation.pdf
 
No SQL
No SQLNo SQL
No SQL
 
Cassandra Learning
Cassandra LearningCassandra Learning
Cassandra Learning
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
NoSQL.pptx
NoSQL.pptxNoSQL.pptx
NoSQL.pptx
 
No sql databases
No sql databasesNo sql databases
No sql databases
 
Big data stores
Big data  storesBig data  stores
Big data stores
 
NoSql
NoSqlNoSql
NoSql
 
Introduction to nosql | NoSQL databases
Introduction to nosql | NoSQL databasesIntroduction to nosql | NoSQL databases
Introduction to nosql | NoSQL databases
 
cassandra_presentation_final
cassandra_presentation_finalcassandra_presentation_final
cassandra_presentation_final
 
Cassandra - A Distributed Database System
Cassandra - A Distributed Database System Cassandra - A Distributed Database System
Cassandra - A Distributed Database System
 
NoSQL and MongoDB
NoSQL and MongoDBNoSQL and MongoDB
NoSQL and MongoDB
 
Column db dol
Column db dolColumn db dol
Column db dol
 
Cassandra
Cassandra Cassandra
Cassandra
 

More from Rishikese MR

Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingRishikese MR
 
Crowd Sourcing With Smart Phone
Crowd Sourcing With Smart PhoneCrowd Sourcing With Smart Phone
Crowd Sourcing With Smart PhoneRishikese MR
 
Automatic 2D to 3D Video Conversion For 3DTV's
 Automatic 2D to 3D Video Conversion For 3DTV's Automatic 2D to 3D Video Conversion For 3DTV's
Automatic 2D to 3D Video Conversion For 3DTV'sRishikese MR
 
Middleware and Middleware in distributed application
Middleware and Middleware in distributed applicationMiddleware and Middleware in distributed application
Middleware and Middleware in distributed applicationRishikese MR
 
EMOTION BASED COMPUTING
EMOTION BASED COMPUTINGEMOTION BASED COMPUTING
EMOTION BASED COMPUTINGRishikese MR
 
BITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESBITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESRishikese MR
 
3D OPTICAL DATA STORAGE
3D OPTICAL DATA STORAGE3D OPTICAL DATA STORAGE
3D OPTICAL DATA STORAGERishikese MR
 
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.Rishikese MR
 
Google Glass and its Features
Google Glass and its FeaturesGoogle Glass and its Features
Google Glass and its FeaturesRishikese MR
 
Virtualization and cloud Computing
Virtualization and cloud ComputingVirtualization and cloud Computing
Virtualization and cloud ComputingRishikese MR
 
Artificial intelligence in gaming.
Artificial intelligence in gaming.Artificial intelligence in gaming.
Artificial intelligence in gaming.Rishikese MR
 
A seminar on neo4 j
A seminar on neo4 jA seminar on neo4 j
A seminar on neo4 jRishikese MR
 

More from Rishikese MR (19)

1 2 3 4 5 g
1 2 3 4 5 g1 2 3 4 5 g
1 2 3 4 5 g
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Fuzzy Logic
Fuzzy LogicFuzzy Logic
Fuzzy Logic
 
Crowd Sourcing With Smart Phone
Crowd Sourcing With Smart PhoneCrowd Sourcing With Smart Phone
Crowd Sourcing With Smart Phone
 
BLUE BRAIN
BLUE BRAINBLUE BRAIN
BLUE BRAIN
 
CYBORG
CYBORG CYBORG
CYBORG
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
Automatic 2D to 3D Video Conversion For 3DTV's
 Automatic 2D to 3D Video Conversion For 3DTV's Automatic 2D to 3D Video Conversion For 3DTV's
Automatic 2D to 3D Video Conversion For 3DTV's
 
Middleware and Middleware in distributed application
Middleware and Middleware in distributed applicationMiddleware and Middleware in distributed application
Middleware and Middleware in distributed application
 
TOR NETWORK
TOR NETWORKTOR NETWORK
TOR NETWORK
 
EMOTION BASED COMPUTING
EMOTION BASED COMPUTINGEMOTION BASED COMPUTING
EMOTION BASED COMPUTING
 
BITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESBITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USES
 
3D OPTICAL DATA STORAGE
3D OPTICAL DATA STORAGE3D OPTICAL DATA STORAGE
3D OPTICAL DATA STORAGE
 
OUTERNET
OUTERNETOUTERNET
OUTERNET
 
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
 
Google Glass and its Features
Google Glass and its FeaturesGoogle Glass and its Features
Google Glass and its Features
 
Virtualization and cloud Computing
Virtualization and cloud ComputingVirtualization and cloud Computing
Virtualization and cloud Computing
 
Artificial intelligence in gaming.
Artificial intelligence in gaming.Artificial intelligence in gaming.
Artificial intelligence in gaming.
 
A seminar on neo4 j
A seminar on neo4 jA seminar on neo4 j
A seminar on neo4 j
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 

The No SQL Principles and Basic Application Of Casandra Model

  • 1. TThhee NNooSSQQLL PPrriinncciipplleess && BBaassiicc AApppplliiccaattiioonn ooff CCaassssaannddrraa MMooddeell RReesshhmmii RRaaddhhaakkrriisshhnnaann SS77 CCSS BB RRoollll NNOO::7711 GGuuiiddeedd bbyy,, DDrr..SSuuddhheeeepp EEllaayyiiddoomm SSOOEE CCUUSSAATT
  • 2. AAGGEENNDDAA • INTRODUCTION • RDBMS • CHALLENGE • NoSQL • COMMON CONCEPTS • CLASSIFICATION • CASSANDRA • CASSANDRA CHARACTERISTICS • CONCLUSION • REFERENCES
  • 3. INTRODUCTION * RDBMS is the predominant technology for storing structured data in web and business applications. * The relational database systems have little capability to horizontally scale. * NoSQL approach includes simplicity of design, horizontal scaling and finer control over availability * Cassandra is the right NoSQL database when you need scalability and high availability without compromising performance
  • 4. RDBMS MERITS: • Rich language • Easy to use and integrate • Rich toolset • Vertical scaling • The promise: ACID o Atomicity o Consistency o Isolation o Durability
  • 5. RDBMS DEMERTS: • Vertical scaling is highly expensive • Fails to handle large amount of data • It is not much efficient in cloud concept The read-write rates of data in RDBMS are very poor So it is hard to face the challenges from the modern web applications using RDBMS
  • 6. The Challenge: Modern web apps • Internet-scale data size • High read-write rates • Frequent schema changes • "social" apps - not banks o They don't need the same level of ACID SCALING
  • 7. NoSQL • Uses horizontal scaling • Distribute data over many servers • It give up ACID property • Based on CAP -theorem
  • 8. Brewer's CAP Theorem: You can only choose two
  • 9. CAP Consistency: A distributed system is considered to be consistent if after an update operation of some writer, all readers see his updates in some shared data sources Availability: System is designed in a way that continue operation even if nodes in a cluster crash Partition Tolerance: Ability of a system to continue operation in the presence of network partition
  • 10. COMMON CONCEPTS •Sharding •Consistent hashing •Map reduce
  • 11. SHARDING • it's a partitioning mechanism • records are stored in different servers according to some key • records that are accesses/updated together reside on same node • load is almost evenly distributed among servers • vertical partitioning: parts of single records are stored on different servers
  • 12. Constant Hashing • A,B,C:- NODES • 1,2,3,4:- OBJECTS -> both are placed in ring ->movement is clockwise ->nodes can leave the system ->nodes can enter into the system
  • 13. MAP REDUCE •Used in distributed computig • map function • reduce function • process on key/value
  • 15. Classification of NOSQL data stores • Document Oriented o CouchDB, MongoDB, Lotus Notes, SimpleDB • Key-Value oriented o Voldemort, Dynamo, Riak (sort of), Redis, Tokyo • Column oriented o Cassandra, HBase, BigTable • Graph Databases oriented o Neo4J, FlockDB, DEX, AlegroGraph
  • 16. • Developed at facebook • Follows the BigTable Data Model - column oriented • Follows the Dynamo Eventual Consistency model • Opensourced at Apache • Implemented in Java
  • 17. • Distributed Storage System • Manages structured data and scale to large size
  • 18. Data Model • Instance of Cassandra – Consists of one table represent multidimensional map indexed by a key • Query for information: get(keyspace, column family, row key) • Keyspace:- top level unit of information, Column families are subordinate of one key space • Column :- atomic unit of information, expressed as: name:value • Super Column :- groups together like columns with a common name, Used for modeling complex data types (address)
  • 19. Data Model ROW FAMILY • uniquely identifiable data • groups column and super column • Every row are identified by row key COLUMN FAMILY • It have to be define in advance before a cluster of servers in Cassandra instance is launched • It consists of keyed rows which groups columns and super columns • Column and super column added dynamically to column families and they are not restricted in numbers
  • 21. MEMTABLES • In-memory representation of recently written data • When the table is full, it's sorted and then flushed to disk -> sstable SS TABLES Sorted Strings Tables • Unchangeable • On-disk • Sorted by a string key • In-memory index of elements • Binary search (in memory) to find element location • Bloom filter to reduce number of unneeded binary searches. WRITE PROPERTIES • No Locks in the critical path • Always available to writes, even if there are failures. No seeks • Fast • Atomic within a Row
  • 23. Read Properteis • Read multiple SSTables • Slower than writes (but still fast) • Seeks can be mitigated with more RAM • Uses probabilistic bloom filters to reduce lookups. • Extensive optional caching o Key Cache o Row Cache
  • 24. Bloom Filters • Space efficient probabilistic data structure • Test whether an element is a member of a set • Union and intersection are implemented as bitwise OR, AND
  • 25. QUERIES EXAMPLES CREATE INDEX CREATE CUSTOM INDEX IF NOT EXISTS index_name ON keyspace_name.table_name ( KEYS (column_name) ) ( USING class_name ) ( WITH OPTIONS = map ) Restrictions: USING class_name is allowed only if CUSTOM is used and class_name is a string literal containing a java class name. index_name is an identifier, enclosed or not enclosed in double quotation marks, excluding reserved words. map is described in ALTER KEYSPACE. CREATE KEYSPACE CREATE ( KEYSPACE | SCHEMA ) IF NOT EXISTS keyspace_name WITH REPLICATION = map AND DURABLE_WRITES = ( true | false )
  • 26. MySQL Comparison • MySQL : for 50 GB Data Writes Average : ~300 ms Reads Average : ~350 ms • Cassandra: for 50 GB Data Writes Average : 0.12 ms Reads Average : 15 ms
  • 27. CONCLUSION •NoSQL is highly efficient concept for dealing large amount of data. •It can be used to solve big data problem. •Cassandra model can provide fast reading and writing operations •So this database model is used by all the latest social networking medias
  • 28. REFERENCES **The NoSQL Principles and Basic Application of Cassandra Model Guoxi Wang ; Jianfeng Tang Computer Science & Service System (CSSS), 2012 International Conference on Digital Object Identifier: 10.1109/CSSS.2012.336 Publication Year: 2012 , Page(s): 1332 - 1335 IEEE CONFERENCE PUBLICATIONS **Survey on NoSQL database Jing Han ; Haihong, E. ; Guan Le ; Jian Du Pervasive Computing and Applications (ICPCA), 2011 6th InternationalConferenceon Digital Object Identifier: 10.1109/ICPCA.2011.6106531 Publication Year: 2011 , Page(s): 363 - 366 Cited by: Papers (2) IEEE CONFERENCE PUBLICATIONS