SlideShare une entreprise Scribd logo
1  sur  55
Télécharger pour lire hors ligne
CouchDB
Guide: Prof.S.S.Shaikh
Presented by: Rashmi Agale
Department of Computer Engineering
AISSMS COE,Pune-01
 Introduction
 RDBMS vs NoSQL
 SQL vs NoSQL
 Types of NoSQL Database
 CouchDB
 Document oriented
 JSON document
 Map/Reduce
 HTTP API
 Replication
 Eventual consistency
Overview
 Features of CouchDB
 Pros and Cons of CouchDB
 Friends of CouchDB
 CouchDB vs MongoDB
 Screenshots
 References
Overview
RDBMS vs NoSQL
SQL vs NoSQL
Types of NoSQL Database
 First released in 2005 and later became Apache project in 2008
 Relax: Non-technical person can learn it
 Fault tolerant and failure occur in controlled environment
 Scaling: Growing and shrinking of hardware in your application is allowed
 CouchDB is written in Erlang, a functional programming language with a focus
on writing robust, fault tolerant and highly concurrent applications
 A document oriented NoSQL database
 Store data with JSON documents
 Uses JavaScript as a query language for Map/Reduce indexes
 HTTP for its API
 RESTful interface
 Eventual consistency
 Replication
CouchDB
Architecture of CouchDB
 It is a 2-tier architecture
 CouchDB uses HTTP as its main
programming interface and JSON for
data storage.
 As we have JavaScript on Client side,
performance will increase due to
compatibility of JSON with JavaScript
 CouchDB is compatible to platforms such
as Windows, Linux, Mac-iOS, Android
mobiles.
 CouchDB is more suitable for Client app
such as web applications.
 It is a computer program designed for storing, retrieving, and managing
document-oriented information, also known as semi-structured data
 Unlike a relational database, CouchDB does not store data and relationships
in tables. Instead, each database is a collection of independent documents.
Each document maintains its own data and self-contained schema. An
application may access multiple databases, such as one stored on a user's
mobile phone and another on a server.
 Document databases get their type information from the data itself, normally
store all related information together
 It allows every instance of data to be different from any other. This makes
them more flexible in dealing with change and optional values, maps more
easily into program objects and often reduces database size. This makes them
attractive for programming modern web applications, which are subject to
continual change in place, and speed of deployment is an important issue
Document oriented database
Document oriented database
JSON documents
 It is Java script object notation.
 It is a open standard format that uses human-readable text to transmit
data objects consisting of attribute–value pairs
 It is a light weight data format based on JavaScript syntax therefore web
application is very good client of CouchDB
 It largely replaces XML
 In JSON document, curly braces ({}) wrap objects, and objects are
key/value lists. Keys are strings that are wrapped in double quotes ("").
Finally, a value is a string, an integer, an object, or an array ([]). Keys
and values are separated by a colon (:), and multiple keys and values by
comma (,).
JSON documents
 A MapReduce program is composed of
 Map(): procedure (method) that performs filtering and sorting (such as
sorting students by first name)
 Reduce() method that performs a summary operation (such as counting
the number of students, yielding name frequencies).
 CouchDB uses predefined map and reduce functions in a style known as
MapReduce.
 These functions provide great flexibility because they can adapt to
variations in document structure, and indexes for each document can be
computed independently and in parallel. The combination of a map and
a reduce function is called a view in CouchDB terminology.
Map/Reduce
Map/Reduce
 HTTP is most widely deployed end-user visible protocol in existence. It handles
everything from serving, routing, proxying, monitoring, measuring and debugging.
 The main way to do anything with CouchDB is via HTTP. Create a database: make
an HTTP request; create some data: make an HTTP request; query your data: make
an HTTP request; set up replication: make an HTTP request; configure the
database: make an HTTP request. You get the idea.
HTTP for API
Replication
Eventual consistency(CAP theorem)
Features of CouchDB
 Pros:
 We don't need to fit our data into one of those higher-order normal forms
 We can change the "schema" of our data at any time
 Our data will be indexed exactly for our queries, so we will get results in constant
time.
 We don’t require plugins such as Adobe Flash player or any.
 Cons:
 We need to create views for each and every query, i.e. ad-hoc like queries (such as
concatenating dynamic WHERE's and SORT's in an SQL),queries are not
available.
 We will either have redundant data, or we will end up implementing join and sort
logic on "client-side"
Pros and Cons of CouchDB
 PouchDB
 It is the newest project on the scene. PouchDB is a pure JavaScript implementation of
CouchDB targeted at the browser. Simply called CouchDB in JavaScript for the browser.
 PouchDB is the oldest idea, but it took the longest to realize because browsers weren’t
ready for it. Now is the time though that we can build and ship a CouchDB compatible
data store and replication engine that lives entirely in your browser. If you want to build
web apps that can seamlessly synchronize data between a laptop, a phone and a server
and not treat one as a “master” and the other as “slaves”, PouchDB is your solution.
 TouchDB
 TouchDB i-OSand Android are Objective-C and Java implementations of the same idea,
but for mobile phone platforms. They natively integrate into your iOS and Android
applications and allow synchronization between themselves, multiple devices,
Friends Of CouchDB
CouchDB vs MongoDB
Example
SCREENSHOTS
SQL vs NoSQL
SQL vs NoSQL
SQL vs NoSQL
SQL vs NoSQL
SQL vs NoSQL
SQL vs NoSQL
 To open built-in web interface of CouchDB visit
http://127.0.0.1:5984/
 If everything goes fine then it show output as
{
"couchdb":"Welcome","uuid":"4ba9012bcbbaeaead6808245e5a758fe",
"version":"1.6.1",
"vendor":{
"version":"1.6.1","name":"The Apache Software Foundation”
}
}
 You can interact with the CouchDB web interface by using the following url
−http://127.0.0.1:5984/_utils/
 This shows you the index page of Futon, which is the web interface of CouchDB
Map function
 function(doc) {
var Name,Department,Address;
if(doc.Name && doc.Department){
Address=doc.Address;
Department=doc.Department;
Name=doc.Name;
emit(Name, Department);
}
}
 http://couchdb.apache.org
http://guide.couchdb.org/draft/tour.html#figure/7
Manual of CouchDB
CouchDB-The Definitive Guide,J.Chris Anderson,
Jan Lehnardt and Noah Slater
References
THANK YOU

Contenu connexe

Tendances

Tendances (20)

Cassandra Introduction & Features
Cassandra Introduction & FeaturesCassandra Introduction & Features
Cassandra Introduction & Features
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
MongoDB presentation
MongoDB presentationMongoDB presentation
MongoDB presentation
 
Mongodb basics and architecture
Mongodb basics and architectureMongodb basics and architecture
Mongodb basics and architecture
 
MongoDB WiredTiger Internals: Journey To Transactions
MongoDB WiredTiger Internals: Journey To TransactionsMongoDB WiredTiger Internals: Journey To Transactions
MongoDB WiredTiger Internals: Journey To Transactions
 
Introduction to Elasticsearch
Introduction to ElasticsearchIntroduction to Elasticsearch
Introduction to Elasticsearch
 
Mongodb
MongodbMongodb
Mongodb
 
The Basics of MongoDB
The Basics of MongoDBThe Basics of MongoDB
The Basics of MongoDB
 
Hudi architecture, fundamentals and capabilities
Hudi architecture, fundamentals and capabilitiesHudi architecture, fundamentals and capabilities
Hudi architecture, fundamentals and capabilities
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql Database
 
Introduction to Apache ZooKeeper
Introduction to Apache ZooKeeperIntroduction to Apache ZooKeeper
Introduction to Apache ZooKeeper
 
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
 
Couch db
Couch dbCouch db
Couch db
 
Basics of MongoDB
Basics of MongoDB Basics of MongoDB
Basics of MongoDB
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
A Technical Introduction to WiredTiger
A Technical Introduction to WiredTigerA Technical Introduction to WiredTiger
A Technical Introduction to WiredTiger
 
An introduction to MongoDB
An introduction to MongoDBAn introduction to MongoDB
An introduction to MongoDB
 
Kafka for Real-Time Replication between Edge and Hybrid Cloud
Kafka for Real-Time Replication between Edge and Hybrid CloudKafka for Real-Time Replication between Edge and Hybrid Cloud
Kafka for Real-Time Replication between Edge and Hybrid Cloud
 
NOSQL and MongoDB Database
NOSQL and MongoDB DatabaseNOSQL and MongoDB Database
NOSQL and MongoDB Database
 
Tech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of Facebook
Tech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of FacebookTech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of Facebook
Tech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of Facebook
 

En vedette

Sgbd comerciales vs libres
Sgbd comerciales vs libresSgbd comerciales vs libres
Sgbd comerciales vs libres
Madai Angeles
 

En vedette (9)

SQL vs. NoSQL
SQL vs. NoSQLSQL vs. NoSQL
SQL vs. NoSQL
 
Presentacion BD NoSQL
Presentacion  BD NoSQLPresentacion  BD NoSQL
Presentacion BD NoSQL
 
SQL vs. NoSQL Databases
SQL vs. NoSQL DatabasesSQL vs. NoSQL Databases
SQL vs. NoSQL Databases
 
Sgbd comerciales vs libres
Sgbd comerciales vs libresSgbd comerciales vs libres
Sgbd comerciales vs libres
 
MySQL vs. NoSQL and NewSQL - survey results
MySQL vs. NoSQL and NewSQL - survey resultsMySQL vs. NoSQL and NewSQL - survey results
MySQL vs. NoSQL and NewSQL - survey results
 
SQL vs. NoSQL
SQL vs. NoSQLSQL vs. NoSQL
SQL vs. NoSQL
 
Sql vs NoSQL
Sql vs NoSQLSql vs NoSQL
Sql vs NoSQL
 
Bases de Datos No Relacionales (NoSQL): Cassandra, CouchDB, MongoDB y Neo4j
Bases de Datos No Relacionales (NoSQL): Cassandra, CouchDB, MongoDB y Neo4jBases de Datos No Relacionales (NoSQL): Cassandra, CouchDB, MongoDB y Neo4j
Bases de Datos No Relacionales (NoSQL): Cassandra, CouchDB, MongoDB y Neo4j
 
10 sistemas gestores de base de datos
10 sistemas gestores de base de datos10 sistemas gestores de base de datos
10 sistemas gestores de base de datos
 

Similaire à CouchDB

Dbms & prog lang
Dbms & prog langDbms & prog lang
Dbms & prog lang
Tech_MX
 
DynamoDB Gluecon 2012
DynamoDB Gluecon 2012DynamoDB Gluecon 2012
DynamoDB Gluecon 2012
Appirio
 
CouchDB and Rails on the Cloud
CouchDB and Rails on the CloudCouchDB and Rails on the Cloud
CouchDB and Rails on the Cloud
rockyjaiswal
 

Similaire à CouchDB (20)

Selecting best NoSQL
Selecting best NoSQL Selecting best NoSQL
Selecting best NoSQL
 
Introduction to mean and mern || Event by DSC UNIDEB
Introduction to mean and mern || Event by DSC UNIDEBIntroduction to mean and mern || Event by DSC UNIDEB
Introduction to mean and mern || Event by DSC UNIDEB
 
Document Databases & RavenDB
Document Databases & RavenDBDocument Databases & RavenDB
Document Databases & RavenDB
 
What is mean stack?
What is mean stack?What is mean stack?
What is mean stack?
 
Dbms & prog lang
Dbms & prog langDbms & prog lang
Dbms & prog lang
 
RDBMS and Hadoop
RDBMS and HadoopRDBMS and Hadoop
RDBMS and Hadoop
 
Oslo bekk2014
Oslo bekk2014Oslo bekk2014
Oslo bekk2014
 
No sql databases
No sql databasesNo sql databases
No sql databases
 
NoSQL Databases Introduction - UTN 2013
NoSQL Databases Introduction - UTN 2013NoSQL Databases Introduction - UTN 2013
NoSQL Databases Introduction - UTN 2013
 
DynamoDB Gluecon 2012
DynamoDB Gluecon 2012DynamoDB Gluecon 2012
DynamoDB Gluecon 2012
 
Gluecon 2012 - DynamoDB
Gluecon 2012 - DynamoDBGluecon 2012 - DynamoDB
Gluecon 2012 - DynamoDB
 
Benchmarking Couchbase Server for Interactive Applications
Benchmarking Couchbase Server for Interactive ApplicationsBenchmarking Couchbase Server for Interactive Applications
Benchmarking Couchbase Server for Interactive Applications
 
Fyp presentation 2 (SQL Converter)
Fyp presentation 2 (SQL Converter)Fyp presentation 2 (SQL Converter)
Fyp presentation 2 (SQL Converter)
 
Deep Dive on ArangoDB
Deep Dive on ArangoDBDeep Dive on ArangoDB
Deep Dive on ArangoDB
 
JS App Architecture
JS App ArchitectureJS App Architecture
JS App Architecture
 
MEAN Stack: What and Why
MEAN Stack: What and WhyMEAN Stack: What and Why
MEAN Stack: What and Why
 
CouchDB and Rails on the Cloud
CouchDB and Rails on the CloudCouchDB and Rails on the Cloud
CouchDB and Rails on the Cloud
 
In15orlesss hadoop
In15orlesss hadoopIn15orlesss hadoop
In15orlesss hadoop
 
Node Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js TutorialNode Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js Tutorial
 
Nosql seminar
Nosql seminarNosql seminar
Nosql seminar
 

Plus de Rashmi Agale (8)

Cloud computing
Cloud computingCloud computing
Cloud computing
 
Cloud Patterns And Applications
Cloud Patterns And ApplicationsCloud Patterns And Applications
Cloud Patterns And Applications
 
DATA IN CLOUD
DATA IN CLOUDDATA IN CLOUD
DATA IN CLOUD
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud Computing
 
QUALITY OF SERVICE(QoS) OF CLOUD
QUALITY OF SERVICE(QoS)OFCLOUDQUALITY OF SERVICE(QoS)OFCLOUD
QUALITY OF SERVICE(QoS) OF CLOUD
 
Cloud Security
Cloud SecurityCloud Security
Cloud Security
 
realtime- transaction Processing System
 realtime- transaction Processing System realtime- transaction Processing System
realtime- transaction Processing System
 
Multimedia database
Multimedia databaseMultimedia database
Multimedia database
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Dernier (20)

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 

CouchDB

  • 1. CouchDB Guide: Prof.S.S.Shaikh Presented by: Rashmi Agale Department of Computer Engineering AISSMS COE,Pune-01
  • 2.  Introduction  RDBMS vs NoSQL  SQL vs NoSQL  Types of NoSQL Database  CouchDB  Document oriented  JSON document  Map/Reduce  HTTP API  Replication  Eventual consistency Overview
  • 3.  Features of CouchDB  Pros and Cons of CouchDB  Friends of CouchDB  CouchDB vs MongoDB  Screenshots  References Overview
  • 6. Types of NoSQL Database
  • 7.  First released in 2005 and later became Apache project in 2008  Relax: Non-technical person can learn it  Fault tolerant and failure occur in controlled environment  Scaling: Growing and shrinking of hardware in your application is allowed  CouchDB is written in Erlang, a functional programming language with a focus on writing robust, fault tolerant and highly concurrent applications  A document oriented NoSQL database  Store data with JSON documents  Uses JavaScript as a query language for Map/Reduce indexes  HTTP for its API  RESTful interface  Eventual consistency  Replication CouchDB
  • 8. Architecture of CouchDB  It is a 2-tier architecture  CouchDB uses HTTP as its main programming interface and JSON for data storage.  As we have JavaScript on Client side, performance will increase due to compatibility of JSON with JavaScript  CouchDB is compatible to platforms such as Windows, Linux, Mac-iOS, Android mobiles.  CouchDB is more suitable for Client app such as web applications.
  • 9.  It is a computer program designed for storing, retrieving, and managing document-oriented information, also known as semi-structured data  Unlike a relational database, CouchDB does not store data and relationships in tables. Instead, each database is a collection of independent documents. Each document maintains its own data and self-contained schema. An application may access multiple databases, such as one stored on a user's mobile phone and another on a server.  Document databases get their type information from the data itself, normally store all related information together  It allows every instance of data to be different from any other. This makes them more flexible in dealing with change and optional values, maps more easily into program objects and often reduces database size. This makes them attractive for programming modern web applications, which are subject to continual change in place, and speed of deployment is an important issue Document oriented database
  • 11. JSON documents  It is Java script object notation.  It is a open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs  It is a light weight data format based on JavaScript syntax therefore web application is very good client of CouchDB  It largely replaces XML  In JSON document, curly braces ({}) wrap objects, and objects are key/value lists. Keys are strings that are wrapped in double quotes (""). Finally, a value is a string, an integer, an object, or an array ([]). Keys and values are separated by a colon (:), and multiple keys and values by comma (,).
  • 13.  A MapReduce program is composed of  Map(): procedure (method) that performs filtering and sorting (such as sorting students by first name)  Reduce() method that performs a summary operation (such as counting the number of students, yielding name frequencies).  CouchDB uses predefined map and reduce functions in a style known as MapReduce.  These functions provide great flexibility because they can adapt to variations in document structure, and indexes for each document can be computed independently and in parallel. The combination of a map and a reduce function is called a view in CouchDB terminology. Map/Reduce
  • 15.  HTTP is most widely deployed end-user visible protocol in existence. It handles everything from serving, routing, proxying, monitoring, measuring and debugging.  The main way to do anything with CouchDB is via HTTP. Create a database: make an HTTP request; create some data: make an HTTP request; query your data: make an HTTP request; set up replication: make an HTTP request; configure the database: make an HTTP request. You get the idea. HTTP for API
  • 19.  Pros:  We don't need to fit our data into one of those higher-order normal forms  We can change the "schema" of our data at any time  Our data will be indexed exactly for our queries, so we will get results in constant time.  We don’t require plugins such as Adobe Flash player or any.  Cons:  We need to create views for each and every query, i.e. ad-hoc like queries (such as concatenating dynamic WHERE's and SORT's in an SQL),queries are not available.  We will either have redundant data, or we will end up implementing join and sort logic on "client-side" Pros and Cons of CouchDB
  • 20.  PouchDB  It is the newest project on the scene. PouchDB is a pure JavaScript implementation of CouchDB targeted at the browser. Simply called CouchDB in JavaScript for the browser.  PouchDB is the oldest idea, but it took the longest to realize because browsers weren’t ready for it. Now is the time though that we can build and ship a CouchDB compatible data store and replication engine that lives entirely in your browser. If you want to build web apps that can seamlessly synchronize data between a laptop, a phone and a server and not treat one as a “master” and the other as “slaves”, PouchDB is your solution.  TouchDB  TouchDB i-OSand Android are Objective-C and Java implementations of the same idea, but for mobile phone platforms. They natively integrate into your iOS and Android applications and allow synchronization between themselves, multiple devices, Friends Of CouchDB
  • 25.
  • 29.
  • 30.
  • 33.
  • 34.  To open built-in web interface of CouchDB visit http://127.0.0.1:5984/  If everything goes fine then it show output as { "couchdb":"Welcome","uuid":"4ba9012bcbbaeaead6808245e5a758fe", "version":"1.6.1", "vendor":{ "version":"1.6.1","name":"The Apache Software Foundation” } }
  • 35.  You can interact with the CouchDB web interface by using the following url −http://127.0.0.1:5984/_utils/  This shows you the index page of Futon, which is the web interface of CouchDB
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52. Map function  function(doc) { var Name,Department,Address; if(doc.Name && doc.Department){ Address=doc.Address; Department=doc.Department; Name=doc.Name; emit(Name, Department); } }
  • 53.
  • 54.  http://couchdb.apache.org http://guide.couchdb.org/draft/tour.html#figure/7 Manual of CouchDB CouchDB-The Definitive Guide,J.Chris Anderson, Jan Lehnardt and Noah Slater References