SlideShare ist ein Scribd-Unternehmen logo
1 von 87
2
3
4
5
6
7
http://redis.io/download
8
9
10
Import the
redis driver
make an
Instance of a
connection
11
12
Insert
Command
Value CallbackKey
13
14
Load
Command
Key Callback
15
16
17
18
19
20
21
Node 1
Primary
Node 1
Secondary
Node 1
Secondary
22
Node 1
Node 1
Secondary
Node 1
Secondary
Election
23
Node 1
Node 1Node 1
Secondary Primary
24
Node 1
Node 1
Secondary
Node 1
Secondary Primary
25
26
a
c
d
Shard1
b e
Shard2
27
a
c1
d
Shard1
b e
Shard2
c2
28
a
c1
d
Shard1
b e
Shard2
c2
29
mongod
mongod
mongod
Replica Set
mongod
mongod
mongod
Replica Set
mongod
mongod
mongod
Replica Set
mongod
mongod
mongod
Config
Servers
mongos
Client
30
31
http://www.mongodb.org/downloads
32
33
34
35
36
37
38
39
assigning
Connection to
db
import
Connectiong to
db
Host Adress Port
Database
Name
40
41
Get a
Collection
Collection
Name
Insert
Command
A Java Script
Object
Callback
42
43
44
45
Returns a
Collection
Search
Command
Converts a
Cursor to an
Array
46
Returns a single
Object
can be used
like any other
Object
47
48
49
import
Connectiong to
db
Host Adress Port
Database
Name
assigning
Connection to
Variable db
50
assigning
Connection to
Variable db
51
52
Reactiong to
Event
Event Name Handling Error
Where the
Ountput gets
piped to
String attached
to Error
Message
53
54
Event that will
only be done
once
Event Name
55
56
Schema Name
Mongoose
Object
Function for
defining
Schemas
Variables
57
58
Model Name
Function for
creating
Models
Model Name Schema Name
59
60
61
62
Creating new
Instance of
Model
JS Object
matching
Schema
63
64
Function for
saving
65
66
67
68
Returns An
Array of
Objects
69
70
71
72
Key
Searches Objects with the Name 'Geek'
and returns the Value for the Key 'skills'
73
74
75
76
77
Get a
Collection
Command for
making Indexes
Name of the
Key that has to
be indexed
1 = Ascending
2 = Descending
78
79
80
81
82
83
84
85
86
87

Weitere ähnliche Inhalte

Was ist angesagt?

NS2: Binding C++ and OTcl variables
NS2: Binding C++ and OTcl variablesNS2: Binding C++ and OTcl variables
NS2: Binding C++ and OTcl variables
Teerawat Issariyakul
 

Was ist angesagt? (18)

Blockchain and smart contracts day 2
Blockchain and smart contracts day 2Blockchain and smart contracts day 2
Blockchain and smart contracts day 2
 
FIWARE Real-time Processing of Historic Context Information using Apache Flin...
FIWARE Real-time Processing of Historic Context Information using Apache Flin...FIWARE Real-time Processing of Historic Context Information using Apache Flin...
FIWARE Real-time Processing of Historic Context Information using Apache Flin...
 
用 Go 語言打造多台機器 Scale 架構
用 Go 語言打造多台機器 Scale 架構用 Go 語言打造多台機器 Scale 架構
用 Go 語言打造多台機器 Scale 架構
 
Oracles
OraclesOracles
Oracles
 
Solidity Security and Best Coding Practices
Solidity Security and Best Coding PracticesSolidity Security and Best Coding Practices
Solidity Security and Best Coding Practices
 
Parboiled explained
Parboiled explainedParboiled explained
Parboiled explained
 
Crawler 2
Crawler 2Crawler 2
Crawler 2
 
Job Queue in Golang
Job Queue in GolangJob Queue in Golang
Job Queue in Golang
 
Smart Contracts with Solidity hands-on training session
Smart Contracts with Solidity hands-on training session  Smart Contracts with Solidity hands-on training session
Smart Contracts with Solidity hands-on training session
 
Mysql5.1 character set testing
Mysql5.1 character set testingMysql5.1 character set testing
Mysql5.1 character set testing
 
Finch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with FinagleFinch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with Finagle
 
Mysql handle socket
Mysql handle socketMysql handle socket
Mysql handle socket
 
Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8
 
Performance testing of microservices in Action
Performance testing of microservices in ActionPerformance testing of microservices in Action
Performance testing of microservices in Action
 
Understanding the nodejs event loop
Understanding the nodejs event loopUnderstanding the nodejs event loop
Understanding the nodejs event loop
 
Sharding and Load Balancing in Scala - Twitter's Finagle
Sharding and Load Balancing in Scala - Twitter's FinagleSharding and Load Balancing in Scala - Twitter's Finagle
Sharding and Load Balancing in Scala - Twitter's Finagle
 
Textile
TextileTextile
Textile
 
NS2: Binding C++ and OTcl variables
NS2: Binding C++ and OTcl variablesNS2: Binding C++ and OTcl variables
NS2: Binding C++ and OTcl variables
 

Andere mochten auch

node.js workshop- node.js basics
node.js workshop- node.js basicsnode.js workshop- node.js basics
node.js workshop- node.js basics
Qiong Wu
 
node.js workshop- node.js middleware
node.js workshop- node.js middlewarenode.js workshop- node.js middleware
node.js workshop- node.js middleware
Qiong Wu
 
수원호텔캐슬 홍콩항공권
수원호텔캐슬 홍콩항공권수원호텔캐슬 홍콩항공권
수원호텔캐슬 홍콩항공권
hjsoidjgo
 
China coatings industry production & marketing demand and investment forecast...
China coatings industry production & marketing demand and investment forecast...China coatings industry production & marketing demand and investment forecast...
China coatings industry production & marketing demand and investment forecast...
Qianzhan Intelligence
 
American Revolution Battle Flyers
American Revolution Battle FlyersAmerican Revolution Battle Flyers
American Revolution Battle Flyers
mbstein
 
China high end equipment manufacturing park development pattern and investmen...
China high end equipment manufacturing park development pattern and investmen...China high end equipment manufacturing park development pattern and investmen...
China high end equipment manufacturing park development pattern and investmen...
Qianzhan Intelligence
 

Andere mochten auch (20)

node.js workshop- node.js basics
node.js workshop- node.js basicsnode.js workshop- node.js basics
node.js workshop- node.js basics
 
node.js workshop- node.js middleware
node.js workshop- node.js middlewarenode.js workshop- node.js middleware
node.js workshop- node.js middleware
 
Intro to node.js
Intro to node.jsIntro to node.js
Intro to node.js
 
수원호텔캐슬 홍콩항공권
수원호텔캐슬 홍콩항공권수원호텔캐슬 홍콩항공권
수원호텔캐슬 홍콩항공권
 
ETA_BIO_2015
ETA_BIO_2015ETA_BIO_2015
ETA_BIO_2015
 
listing output program C
listing output program Clisting output program C
listing output program C
 
China cardiovascular system drugs industry market demand forecast and investm...
China cardiovascular system drugs industry market demand forecast and investm...China cardiovascular system drugs industry market demand forecast and investm...
China cardiovascular system drugs industry market demand forecast and investm...
 
Infographic
InfographicInfographic
Infographic
 
China coatings industry production & marketing demand and investment forecast...
China coatings industry production & marketing demand and investment forecast...China coatings industry production & marketing demand and investment forecast...
China coatings industry production & marketing demand and investment forecast...
 
Node.js first slide
Node.js first slideNode.js first slide
Node.js first slide
 
Prognostic factors of toxicity of chemotherapy
Prognostic factors of toxicity of chemotherapyPrognostic factors of toxicity of chemotherapy
Prognostic factors of toxicity of chemotherapy
 
Ephata 630
Ephata 630Ephata 630
Ephata 630
 
China banking industry market research and prospect forecast report
China banking industry market research and prospect forecast reportChina banking industry market research and prospect forecast report
China banking industry market research and prospect forecast report
 
Presentación ana cristina miranda
Presentación ana cristina mirandaPresentación ana cristina miranda
Presentación ana cristina miranda
 
American Revolution Battle Flyers
American Revolution Battle FlyersAmerican Revolution Battle Flyers
American Revolution Battle Flyers
 
China touch screen industry market demand forecast and investment strategy re...
China touch screen industry market demand forecast and investment strategy re...China touch screen industry market demand forecast and investment strategy re...
China touch screen industry market demand forecast and investment strategy re...
 
China high end equipment manufacturing park development pattern and investmen...
China high end equipment manufacturing park development pattern and investmen...China high end equipment manufacturing park development pattern and investmen...
China high end equipment manufacturing park development pattern and investmen...
 
Cs in actionn
Cs in actionnCs in actionn
Cs in actionn
 
Air Quality Map
Air Quality MapAir Quality Map
Air Quality Map
 
Bharat Employment | Job Analysis | Bharatemployment
Bharat Employment | Job Analysis | Bharatemployment Bharat Employment | Job Analysis | Bharatemployment
Bharat Employment | Job Analysis | Bharatemployment
 

Ähnlich wie node.js workshop- node.js databases

learn ps new advance for all powershell.pptx
learn ps new advance for all powershell.pptxlearn ps new advance for all powershell.pptx
learn ps new advance for all powershell.pptx
Ronnie Kapoor
 

Ähnlich wie node.js workshop- node.js databases (20)

docker.pdf
docker.pdfdocker.pdf
docker.pdf
 
Excelian hyperledger walkthrough-feb17
Excelian hyperledger walkthrough-feb17Excelian hyperledger walkthrough-feb17
Excelian hyperledger walkthrough-feb17
 
Create a Database Application Development Environment with Docker
Create a Database Application Development Environment with DockerCreate a Database Application Development Environment with Docker
Create a Database Application Development Environment with Docker
 
Docker network
Docker networkDocker network
Docker network
 
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) ItalyClustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
 
Deep dive in Docker Overlay Networks
Deep dive in Docker Overlay NetworksDeep dive in Docker Overlay Networks
Deep dive in Docker Overlay Networks
 
Sparkling Water
Sparkling WaterSparkling Water
Sparkling Water
 
Docker Registry + Basic Auth
Docker Registry + Basic AuthDocker Registry + Basic Auth
Docker Registry + Basic Auth
 
Docker in Action
Docker in ActionDocker in Action
Docker in Action
 
Deep Dive into Docker Swarm Mode
Deep Dive into Docker Swarm ModeDeep Dive into Docker Swarm Mode
Deep Dive into Docker Swarm Mode
 
Deep Dive in Docker Overlay Networks
Deep Dive in Docker Overlay NetworksDeep Dive in Docker Overlay Networks
Deep Dive in Docker Overlay Networks
 
Docker Intro
Docker IntroDocker Intro
Docker Intro
 
Deeper Dive in Docker Overlay Networks
Deeper Dive in Docker Overlay NetworksDeeper Dive in Docker Overlay Networks
Deeper Dive in Docker Overlay Networks
 
learn ps new advance for all powershell.pptx
learn ps new advance for all powershell.pptxlearn ps new advance for all powershell.pptx
learn ps new advance for all powershell.pptx
 
Application Continuity with Oracle DB 12c
Application Continuity with Oracle DB 12c Application Continuity with Oracle DB 12c
Application Continuity with Oracle DB 12c
 
Collabnix Online Webinar - Demystifying Docker & Kubernetes Networking by Bal...
Collabnix Online Webinar - Demystifying Docker & Kubernetes Networking by Bal...Collabnix Online Webinar - Demystifying Docker & Kubernetes Networking by Bal...
Collabnix Online Webinar - Demystifying Docker & Kubernetes Networking by Bal...
 
When Docker Engine 1.12 features unleashes software architecture
When Docker Engine 1.12 features unleashes software architectureWhen Docker Engine 1.12 features unleashes software architecture
When Docker Engine 1.12 features unleashes software architecture
 
Learn enough Docker to be dangerous
Learn enough Docker to be dangerousLearn enough Docker to be dangerous
Learn enough Docker to be dangerous
 
Jenkins' shared libraries in action
Jenkins' shared libraries in actionJenkins' shared libraries in action
Jenkins' shared libraries in action
 
Setup docker on existing application
Setup docker on existing applicationSetup docker on existing application
Setup docker on existing application
 

Mehr von Qiong Wu (12)

node.js workshop- node.js unit testing
node.js workshop- node.js unit testingnode.js workshop- node.js unit testing
node.js workshop- node.js unit testing
 
node.js workshop- JavaScript Async
node.js workshop- JavaScript Asyncnode.js workshop- JavaScript Async
node.js workshop- JavaScript Async
 
node.js workshop- JavaScript Basics
node.js workshop- JavaScript Basicsnode.js workshop- JavaScript Basics
node.js workshop- JavaScript Basics
 
Parallele Softwareentwicklung mit .NET 4.0
Parallele Softwareentwicklung mit .NET 4.0Parallele Softwareentwicklung mit .NET 4.0
Parallele Softwareentwicklung mit .NET 4.0
 
S N A I L Final Presentation
S N A I L    Final  PresentationS N A I L    Final  Presentation
S N A I L Final Presentation
 
3 Interop Part2
3 Interop Part23 Interop Part2
3 Interop Part2
 
Kickoff
KickoffKickoff
Kickoff
 
2 Interop
2 Interop2 Interop
2 Interop
 
C# Workshop - File Operations
C# Workshop - File OperationsC# Workshop - File Operations
C# Workshop - File Operations
 
C# Workshop - Networking
C# Workshop - NetworkingC# Workshop - Networking
C# Workshop - Networking
 
C# Workshop - Threading
C# Workshop - ThreadingC# Workshop - Threading
C# Workshop - Threading
 
Life In Power Point
Life In Power PointLife In Power Point
Life In Power Point
 

Kürzlich hochgeladen

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Kürzlich hochgeladen (20)

%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 

node.js workshop- node.js databases