Introduction ToIntroduction To
Shivansh Srivastava
Software Consultant
Knoldus Software LLP
Shivansh Srivastava
Software Consultant
Knoldus Software LLP
AgendaAgenda
● Why NoSQL?
● What is Couchbase?
● Why Couchbase?
● Basic CRUD operations.
● Let's code
● Why NoSQL?
● What is Couchbase?
● Why Couchbase?
● Basic CRUD operations.
● Let's code
WHYWHY
Why NoSql..??Why NoSql..??
Why NoSql..??Why NoSql..??
● Flexibility:
Schema flexibility attracts developers.
● Scalability:
Scale size and number of concurrent user.
● Availability:
Provide different replication architectures.
● Low Operational Cost:
Open Source, Distributed Architecture
● Specialized Capabilities:
Automatic data replication, Rest Api's, Indexing features.
What is Couchbase?What is Couchbase?
➢
 Distributed NoSQL document­oriented database.
➢
 Two types of Access:
                     Key­value access.
                      Document access.
➢
 Key Features :
                    Views and Indexes.
                    Global Secondary Indexing.
                    Multidimensional Scaling.
                    N1QL Query(“Nickel”)
➢
 Distributed NoSQL document­oriented database.
➢
 Two types of Access:
                     Key­value access.
                      Document access.
➢
 Key Features :
                    Views and Indexes.
                    Global Secondary Indexing.
                    Multidimensional Scaling.
                    N1QL Query(“Nickel”)
Couchbase
Why Couchbase?Why Couchbase?
Couchbase training basic
Enterprise Edition FeaturesEnterprise Edition Features
 Rack Awareness
 Encrypted administrative access
 Encrypted data access
 XDCR data encryption
 Incremental backup and restore
 Rack Awareness
 Encrypted administrative access
 Encrypted data access
 XDCR data encryption
 Incremental backup and restore
Key Features in Enterprise Edition
Installing CouchbaseInstalling Couchbase
Steps of InstallationSteps of Installation
➔ Download Couchbase from their official website.
➔ Install the package using the dpkg command as a privileged
user under sudo.
For example: sudo dpkg –i couchbase-server-enterprise_4.0.0-beta-
ubuntu14.04_amd64.deb
Setting up Couchbase Server.Setting up Couchbase Server.
 Open a browser and navigate to http://hostname:8091/ for
configuring your server.
 Click Setup.
 On the Configure Server screen, select check boxes for data,
query, and index services and click next, to start a new cluster.
 Open a browser and navigate to http://hostname:8091/ for
configuring your server.
 Click Setup.
 On the Configure Server screen, select check boxes for data,
query, and index services and click next, to start a new cluster.
Steps for Configuring Couchbase Server
➢ Sample Buckets screen:
Select bucket you want to include and then click Next.
➢
Default Bucket screen:
Click Next to accept the default values.
➢Notifications screen:
Agree to the terms and conditions, and click Next.
➢Configure Server screen:
Enter a password for the Administrator user name, and then click Next.
➢ Sample Buckets screen:
Select bucket you want to include and then click Next.
➢
Default Bucket screen:
Click Next to accept the default values.
➢Notifications screen:
Agree to the terms and conditions, and click Next.
➢Configure Server screen:
Enter a password for the Administrator user name, and then click Next.
Continued..
Finally
Succeeded..!!!!
CRUD Operations in CouchbaseCRUD Operations in Couchbase
Dependency InjectionDependency Injection
We have to inject these two dependencies for enabling the use of
couchbase in our project.
Setting up connectionSetting up connection
//Required imports
import com.couchbase.client.java.{Bucket,
CouchbaseCluster}
//Create cluster and open bucket
val cluster = CouchbaseCluster.create(“127.0.0.3”)
val bucket = cluster.openBucket(“user”)
//case class to store data in bucket
case class User(name:String, email: String)
Create and Update OperationCreate and Update Operation
<BucketObject>.upsert(Document):Document
It updates a document according to the key,and if document is not present
it creates and it returns the document itself.
Retrieve OperationRetrieve Operation
<BucketObject>.get(key:String):JsonDocument
It retrieves the Json document on the basis of the key that is passed.
Delete OperationDelete Operation
<BucketObject>.remove(key:String): JsonDocument
It removes the document from the bucket according to the user id that is
passed and returns that Json Document itself.
Thank youThank you

More Related Content

PDF
The Modern Database for Enterprise Applications
PPTX
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
PPTX
Nutanix basic
PPTX
Couchbase 101
PDF
Integration Microservices
PPTX
Demantra Installation,Configuration and Integration with EBusiness Suite R12.1.1
PPTX
Couchbase presentation
PPSX
Docker Kubernetes Istio
The Modern Database for Enterprise Applications
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
Nutanix basic
Couchbase 101
Integration Microservices
Demantra Installation,Configuration and Integration with EBusiness Suite R12.1.1
Couchbase presentation
Docker Kubernetes Istio

What's hot (20)

PDF
Accelerate Application Innovation Journey with Azure Kubernetes Service
PDF
Introduction to Oracle Cloud Infrastructure Services
PDF
Intro docker
PPTX
Azure Cosmos DB + Gremlin API in Action
PPTX
Snowflake Automated Deployments / CI/CD Pipelines
PPT
Doors hints and tips schema
PDF
Multi-Cloud Strategy for Unrestricted Possibilities
PDF
When NOT to use Apache Kafka?
PDF
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63
PPTX
03 spark rdd operations
PPTX
SQL Server Database Migration
PPTX
Azure Container Apps
PPTX
Oracle Cloud Infrastructure Overview Deck.pptx
PDF
DevJam 2019 - Introduction to Kubernetes
PDF
Introduction of Kubernetes - Trang Nguyen
PPT
Domain Driven Design (DDD)
PDF
Optimizing Hive Queries
ODP
Kubernetes Architecture
PPT
Informatica Cloud Overview
PDF
OpenShift 4 installation
Accelerate Application Innovation Journey with Azure Kubernetes Service
Introduction to Oracle Cloud Infrastructure Services
Intro docker
Azure Cosmos DB + Gremlin API in Action
Snowflake Automated Deployments / CI/CD Pipelines
Doors hints and tips schema
Multi-Cloud Strategy for Unrestricted Possibilities
When NOT to use Apache Kafka?
MuleSoft Event Driven Architecture (EDA Patterns in MuleSoft) - VirtualMuleys63
03 spark rdd operations
SQL Server Database Migration
Azure Container Apps
Oracle Cloud Infrastructure Overview Deck.pptx
DevJam 2019 - Introduction to Kubernetes
Introduction of Kubernetes - Trang Nguyen
Domain Driven Design (DDD)
Optimizing Hive Queries
Kubernetes Architecture
Informatica Cloud Overview
OpenShift 4 installation
Ad

Similar to Couchbase training basic (20)

PDF
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
ODP
Couchbase training advanced
PDF
Using Redgate, AKS and Azure to bring DevOps to your Database
PDF
Using Redgate, AKS and Azure to bring DevOps to your database
PDF
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
PPTX
To Build My Own Cloud with Blackjack…
PPTX
MongoDB Ops Manager and Kubernetes - James Broadhead
PDF
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
PDF
100% Puppet Cloud Deployment of Legacy Software
PDF
The path to a serverless-native era with Kubernetes
PDF
Scala, docker and testing, oh my! mario camou
PDF
Cassandra Development Nirvana
PDF
Development Nirvana with Cassandra
PPTX
Advanced Web Technology.pptx
PDF
Velocity NYC 2016 - Containers @ Netflix
PDF
stackconf 2020 | The path to a Serverless-native era with Kubernetes by Paolo...
PPTX
Power of Azure Devops
PDF
Kubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-native
PDF
Kubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-native
PPTX
CCI2017 - Windows Server 2016 - Ready for the cloud - Giampiero Cosainz
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Couchbase training advanced
Using Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your database
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
To Build My Own Cloud with Blackjack…
MongoDB Ops Manager and Kubernetes - James Broadhead
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
100% Puppet Cloud Deployment of Legacy Software
The path to a serverless-native era with Kubernetes
Scala, docker and testing, oh my! mario camou
Cassandra Development Nirvana
Development Nirvana with Cassandra
Advanced Web Technology.pptx
Velocity NYC 2016 - Containers @ Netflix
stackconf 2020 | The path to a Serverless-native era with Kubernetes by Paolo...
Power of Azure Devops
Kubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-native
Kubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-native
CCI2017 - Windows Server 2016 - Ready for the cloud - Giampiero Cosainz
Ad

More from Knoldus Inc. (20)

PPTX
Angular Hydration Presentation (FrontEnd)
PPTX
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
PPTX
Self-Healing Test Automation Framework - Healenium
PPTX
Kanban Metrics Presentation (Project Management)
PPTX
Java 17 features and implementation.pptx
PPTX
Chaos Mesh Introducing Chaos in Kubernetes
PPTX
GraalVM - A Step Ahead of JVM Presentation
PPTX
Nomad by HashiCorp Presentation (DevOps)
PPTX
Nomad by HashiCorp Presentation (DevOps)
PPTX
DAPR - Distributed Application Runtime Presentation
PPTX
Introduction to Azure Virtual WAN Presentation
PPTX
Introduction to Argo Rollouts Presentation
PPTX
Intro to Azure Container App Presentation
PPTX
Insights Unveiled Test Reporting and Observability Excellence
PPTX
Introduction to Splunk Presentation (DevOps)
PPTX
Code Camp - Data Profiling and Quality Analysis Framework
PPTX
AWS: Messaging Services in AWS Presentation
PPTX
Amazon Cognito: A Primer on Authentication and Authorization
PPTX
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
PPTX
Managing State & HTTP Requests In Ionic.
Angular Hydration Presentation (FrontEnd)
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Self-Healing Test Automation Framework - Healenium
Kanban Metrics Presentation (Project Management)
Java 17 features and implementation.pptx
Chaos Mesh Introducing Chaos in Kubernetes
GraalVM - A Step Ahead of JVM Presentation
Nomad by HashiCorp Presentation (DevOps)
Nomad by HashiCorp Presentation (DevOps)
DAPR - Distributed Application Runtime Presentation
Introduction to Azure Virtual WAN Presentation
Introduction to Argo Rollouts Presentation
Intro to Azure Container App Presentation
Insights Unveiled Test Reporting and Observability Excellence
Introduction to Splunk Presentation (DevOps)
Code Camp - Data Profiling and Quality Analysis Framework
AWS: Messaging Services in AWS Presentation
Amazon Cognito: A Primer on Authentication and Authorization
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Managing State & HTTP Requests In Ionic.

Recently uploaded (20)

PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PDF
New_Round_Up_6_SB.pdf download for free, easy to learn
PPTX
CHROMIUM & Glucose Tolerance Factor.pptx
DOCX
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
PPTX
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
PDF
FYJC - Chemistry textbook - standard 11.
PDF
horaris de grups del curs 2025-2026 de l'institut
PDF
V02-Session-4-Leadership-Through-Assessment-MLB.pdf
PDF
GSA-Past-Papers-2010-2024-2.pdf CSS examination
PPTX
Unit1_Kumod_deeplearning.pptx DEEP LEARNING
PPTX
Approach to a child with acute kidney injury
PDF
Laparoscopic Imaging Systems at World Laparoscopy Hospital
PPTX
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
PDF
Unleashing the Potential of the Cultural and creative industries
PPTX
MMW-CHAPTER-1-final.pptx major Elementary Education
PPTX
Entrepreneurship Management and Finance - Module 1 - PPT
PPTX
Environmental Sciences and Sustainability Chapter 2
PDF
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
PDF
LATAM’s Top EdTech Innovators Transforming Learning in 2025.pdf
PDF
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
New_Round_Up_6_SB.pdf download for free, easy to learn
CHROMIUM & Glucose Tolerance Factor.pptx
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
FYJC - Chemistry textbook - standard 11.
horaris de grups del curs 2025-2026 de l'institut
V02-Session-4-Leadership-Through-Assessment-MLB.pdf
GSA-Past-Papers-2010-2024-2.pdf CSS examination
Unit1_Kumod_deeplearning.pptx DEEP LEARNING
Approach to a child with acute kidney injury
Laparoscopic Imaging Systems at World Laparoscopy Hospital
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
Unleashing the Potential of the Cultural and creative industries
MMW-CHAPTER-1-final.pptx major Elementary Education
Entrepreneurship Management and Finance - Module 1 - PPT
Environmental Sciences and Sustainability Chapter 2
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
LATAM’s Top EdTech Innovators Transforming Learning in 2025.pdf
English 2nd semesteNotesh biology biopsy results from the other day and I jus...

Couchbase training basic

Editor's Notes

  • #14: many web application want to increase application throughput, responsivenesswhere one task can make progress without waiting for all others to completewhere more than one task can make progress at same time.Concurrent program can be executed on single core machine via time slicYou may execute concurrent program in parallelOverall you play with threads