SlideShare a Scribd company logo
MongoDB
Shahriar Hossain
@shossain_tweet
Course Agenda
Shahriar Hossain
Email LinkedIn
What is ?
SQL vs NoSQL
NoSQL
• Stands for Not Only SQL
• Do not require a fixed schema
• Relaxation for one or more ACID properties.
• #3V
• Volume, Velocity and Variety
NoSQL
Document
based
MongoDB,
Azure Cosmos
Key-Value
Store
Redis
Column based
Cassandra,
HBase
Graph Store
Neo4j,
Amazon
DynamoDB
Why ?
• Speed
• Ease of Use
• Scalability & Performance is better
• Support of Agile Development
• Aggregation framework
• Ad hoc queries
• Replication
What does schema-free mean?
• NoSQL databases are either schema-free or have relaxed schemas
• Do not require any sort of definition of the schema of the data
What does schema-free mean?
Id Fname Email
1 Jon Jon@test.com
2 Alison Alison@test.com
3 Hanna
JSON/BSON?
JSON BSON
Different Terminology
Introduction to NoSql & Mongodb
How MongoDB works?
How MongoDB works?
How MongoDB works?
Installation & DEMO
Questions ?
Microsoft Azure Bangladesh
group: www.facebook.com/groups/microsoft.azure.bd
fan page: fb.com/microsoft.azure.bd
Asp.Net - Bangladesh
www.facebook.com/groups/asp.net.mvc.bd
Community Group
Shahriar Hossain
Facebook
Personal Blog
LinkedIn
http://LearnWithShahriar.wordpress.com
Thank You

More Related Content

What's hot (19)

PPTX
College Java vs Real Java - Tushar Joshi
Tushar Joshi
 
PDF
How do you speed up your (Wordpress) website?
Aranere
 
PPTX
Getting Started with ASP.NET 5
Brij Mishra
 
PPTX
10 tips to make your ASP.NET Apps Faster
Brij Mishra
 
PDF
Jira ICT - The magic of a fast website #jd11nl
Jira ICT
 
PPSX
Learn dbatools in a Month of Lunches
Manning Publications
 
PPTX
Bliblidotcom - SASS Introduction
Irfan Maulana
 
PPTX
PluginBasicsWCNYC2014
Kiko Doran
 
PPTX
SenchaCon 2016 - How to Auto Generate a Back-end in Minutes
Malin Weiss
 
PPTX
Final project
luke_jones
 
PPTX
Building rest services using aspnetwebapi
Brij Mishra
 
PPTX
Эволюция службы эксплуатации «Spotify» / Лев Попов (Spotify)
Ontico
 
PPTX
Edy Dawson Notes on SF HTML5 Dev Conf
Edy Dawson
 
PDF
Next.js in production by Jasdeep Lalli
React London 2017
 
PPT
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
While42
 
PPTX
RSS and WordPress
Heather Solos
 
PPTX
Javascript for Wep Apps
Michael Puckett
 
PPT
2010 mongo berlin-scaling
MongoDB
 
PPTX
Web Application Frameworks (WAF)
Ako Kaman
 
College Java vs Real Java - Tushar Joshi
Tushar Joshi
 
How do you speed up your (Wordpress) website?
Aranere
 
Getting Started with ASP.NET 5
Brij Mishra
 
10 tips to make your ASP.NET Apps Faster
Brij Mishra
 
Jira ICT - The magic of a fast website #jd11nl
Jira ICT
 
Learn dbatools in a Month of Lunches
Manning Publications
 
Bliblidotcom - SASS Introduction
Irfan Maulana
 
PluginBasicsWCNYC2014
Kiko Doran
 
SenchaCon 2016 - How to Auto Generate a Back-end in Minutes
Malin Weiss
 
Final project
luke_jones
 
Building rest services using aspnetwebapi
Brij Mishra
 
Эволюция службы эксплуатации «Spotify» / Лев Попов (Spotify)
Ontico
 
Edy Dawson Notes on SF HTML5 Dev Conf
Edy Dawson
 
Next.js in production by Jasdeep Lalli
React London 2017
 
Javascript sucks & frontend challenges @ClearSlide | while42 SF #7
While42
 
RSS and WordPress
Heather Solos
 
Javascript for Wep Apps
Michael Puckett
 
2010 mongo berlin-scaling
MongoDB
 
Web Application Frameworks (WAF)
Ako Kaman
 

Similar to Introduction to NoSql & Mongodb (20)

PPTX
Mongo db
Morteza TavanaRad
 
PDF
MongoDB eBook a complete guide to beginners
MeiyappanRm
 
PPTX
DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx
DharshanS41
 
PPT
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
PPTX
MongoDB for the SQL Server
Paulo Fagundes
 
PDF
Beginner's guide to Mongodb and NoSQL
Maulin Shah
 
PPTX
Mongodb
ASEEMSRIVASTAVA22
 
PPTX
Introduction-to-MongoDB.pptx
MohamedAdelMostafa
 
PPTX
NoSQL(MongoDB and DynamoDB) Overview.pptx
nikhilaukhaj590
 
PPTX
Mongodb - NoSql Database
Prashant Gupta
 
PPTX
Introduction to MongoDB
Stiliyan Kanchev
 
PPT
First steps to Azure Cosmos DB: Getting Started with MongoDB and NoSQL
Hansamali Gamage
 
PDF
Nosql part1 8th December
Ruru Chowdhury
 
PPTX
Nosql
ROXTAD71
 
PPTX
MongoDB - Getting Started
Ahmed Helmy
 
PPTX
Nosql
Roxana Tadayon
 
PPTX
Mongo db nosql (1)
Bhavesh Sarvaiya
 
PPTX
NoSQL and MongoDB Introdction
Brian Enochson
 
PPTX
MongoDB_Sharan_Prakash_Babu
Sharan
 
PDF
A Study on Mongodb Database
IJSRD
 
MongoDB eBook a complete guide to beginners
MeiyappanRm
 
DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx
DharshanS41
 
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
MongoDB for the SQL Server
Paulo Fagundes
 
Beginner's guide to Mongodb and NoSQL
Maulin Shah
 
Introduction-to-MongoDB.pptx
MohamedAdelMostafa
 
NoSQL(MongoDB and DynamoDB) Overview.pptx
nikhilaukhaj590
 
Mongodb - NoSql Database
Prashant Gupta
 
Introduction to MongoDB
Stiliyan Kanchev
 
First steps to Azure Cosmos DB: Getting Started with MongoDB and NoSQL
Hansamali Gamage
 
Nosql part1 8th December
Ruru Chowdhury
 
Nosql
ROXTAD71
 
MongoDB - Getting Started
Ahmed Helmy
 
Mongo db nosql (1)
Bhavesh Sarvaiya
 
NoSQL and MongoDB Introdction
Brian Enochson
 
MongoDB_Sharan_Prakash_Babu
Sharan
 
A Study on Mongodb Database
IJSRD
 
Ad

More from Shahriar Hossain (15)

PPTX
Getting started with azure storage
Shahriar Hossain
 
PPTX
Blazor first look
Shahriar Hossain
 
PPTX
Azure redis cache
Shahriar Hossain
 
PPTX
Managing API with Microsoft API Management
Shahriar Hossain
 
PPTX
Serverless computing with Microsoft Azure
Shahriar Hossain
 
PPTX
Cloud terminology
Shahriar Hossain
 
PPTX
Cross platform app dev with xamarin forms
Shahriar Hossain
 
PPTX
Cross platform app development with xamarin.forms
Shahriar Hossain
 
PPTX
Azure IoT Hub
Shahriar Hossain
 
PPTX
Microsoft Azure Overview
Shahriar Hossain
 
PPTX
Intro to cloud computing
Shahriar Hossain
 
PPTX
Intro to Azure Webjobs
Shahriar Hossain
 
PPTX
Middleware in Asp.Net Core
Shahriar Hossain
 
PPTX
Microsoft bot framework in azure
Shahriar Hossain
 
PPTX
Asp net core in azure
Shahriar Hossain
 
Getting started with azure storage
Shahriar Hossain
 
Blazor first look
Shahriar Hossain
 
Azure redis cache
Shahriar Hossain
 
Managing API with Microsoft API Management
Shahriar Hossain
 
Serverless computing with Microsoft Azure
Shahriar Hossain
 
Cloud terminology
Shahriar Hossain
 
Cross platform app dev with xamarin forms
Shahriar Hossain
 
Cross platform app development with xamarin.forms
Shahriar Hossain
 
Azure IoT Hub
Shahriar Hossain
 
Microsoft Azure Overview
Shahriar Hossain
 
Intro to cloud computing
Shahriar Hossain
 
Intro to Azure Webjobs
Shahriar Hossain
 
Middleware in Asp.Net Core
Shahriar Hossain
 
Microsoft bot framework in azure
Shahriar Hossain
 
Asp net core in azure
Shahriar Hossain
 
Ad

Recently uploaded (20)

PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
July Patch Tuesday
Ivanti
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 

Introduction to NoSql & Mongodb

Editor's Notes

  • #2: Hello everybody , that you for joining to the exciting course MongoDB. This course brought to you by Inishgitn….
  • #3: So, this video series actually devided into 5 modules! This is happen to be the very first one. In todays lecture we are going to talk about the fundamental things , what mongodb is? Where it fits? What are the different terminology is used in mongo world and so on. After that, in module 2 we talk about Schema design & data modeling… And from there we will jump to CRUD operation in moduel 3 In module 4, we talk about indexing and aggression, which is a very important topic. Last but no least we talk about some mongo administrive work in module 5.
  • #4: Before going for the deep dive, let me introduce myself. I am your trainer SH. I am solution Architect , currently I am working for Insightin technology. You will find me on all the popular social network. Feel free to contact me.
  • #5: So, what is MongoDB? Well, Mongodb is NoSQL documented based cross-platform database. We will talk about what NoSQL is, what document based mean in the upcoming slide But before that let me tell you one side note : Interestingly, the company behind mongoDB is also called mongodb but with mongodb, I of course mean the database. So, don’t get confuse with that part.
  • #6: Before going to NoSQL , let me answer one of the popular question. What is the difference between SQL and NoSQL. In order to make any sustainable successful project choosing the right database is very crusial. And for that, you have to understand how both the database works, what separate these two world. Now, Lets start with SQL. SQL is not a DATABASE! It stands for Structured Query language. In simple term, it is a language that allows you to write database query. Query something like this: This query is mainly for data retreiveal, but there is also query for insertion, update and delete. Another important difference is that , In relational database data may exist in multiple database, if that does you can do join. NoSQL usually don’t have the concept of JOIN. In sumaary: - SQL has Strict schema And Relationship exists between table , so there can have many to many, one to one realtionship Next, lets talk about NOSQL
  • #7: It does not require a fixed scehma. Since there is no fixed schema so, NO Concept of JOIN exist. NoSQL is used for Big data and real-time web apps.  NoSQL is often refered as 3V. Volume : indicate you will expect huge amount of data Velocity : indicates that the data data production is very fast. Variety : means data can come in many form, they could be Structured, Semi-Structured, UnStructured or even Polymorphic. Agile Friendly: ACID is not strictly followed in NoSQL. Atomicity: Atomicity means that the system ensures/guarantee that all of a transaction happens, or none of it does.  Consistency: Consistency means that your system ensures/guarantee that your data will be consistent after your first commit. Isolation: Isolation means that one transaction cannot read data from another transaction that is not yet completed. If two transactions are executing concurrently, each one will see the world as if they were executing sequentially, and if one needs to read data that is written by another, it will have to wait until the other is finished.  For say, if Mr. X issues a transaction against a database at the same time that Mr. Y issues a different transaction, both transactions should operate on the database in an isolated manner. The database should perform those transaction one after another. Durability: Durability refers to the guarantee that once the user has been notified of success, the transaction will persist, and not be undone.  So, this is all about ACID. NoSQL database can be many type. Some are document based, some are column based , some can be graph based. All of them have their own pros and cons. Feel free to check them online.
  • #8: Now of course we already got database solutions, we've got mySQL, we've got postgres, we've got thousands of database solutions already, so how is mongodb different and why it is so popular? It is popular because of speed and Ease of Use. Scaling is one of the tough problem that every databse face. To overcome this MongoDB has sharding feature. MongoDB supports range query, regular expression and many more types of searches. Replication is being provided by distributing data across different machines. - MapReduce can be used for batch processing. Just in case if you don’t know what MapReduce is , its nothing but a process, in which large datasets will process.
  • #9: So, what does schema-free mean? Well, schema less means the database don't have fixed data structure You can facilate the structure as per your requirement. Mongodb provides the schema-free facility with JSON-style data store, you can change the data structure as per your requirement.
  • #10: Lets see an example. Lets define a table with a schema first…. In our case, the schema contains Id, Name and Email address. Since we have a very fixed schema, things could become little challenging if we need to incorporate new information in the schema… Lets say , we want to include special skills as well. Now, of course we could introduce a new column. Now, not everybody have special skills , so adding a whole new column may not be a good idea always. At this point you are left with another option and this is joining…. This could be problematic and expensive if we want to add new column for only few particular records. Things become lot easier when no longer you have to worry about weather your data is going to fit in your schema. And that’s where NoSQL shines.
  • #11: Now, lets talk about JSON and BSON. In the last slide, we said data can be stored in a document. But we did not say how those documents are structured. We vaguely said we will store data in document. But what are the elements that make a mongo document? Well, those document are in JSON format. JSON stands for JavaScript object Notaiton. Its an an open, human and machine-readable standard , its mainly used for data interchange. Behind the scene, MongoDB process the JSON documents in binary-encoded format called BSON. BSON extends the JSON model to provide additional data types. MongoDB uses BSON, mainly for efficient encoding and decoding within different languages.
  • #12: Here are some of the different terminology that are used in the Mongo world. If you have background of SQL then think table as collection and each row within that table as document.
  • #13: What is a collection? A collection is a grouping of MongoDB documents. So, a collection can holds multiple documents in it . Each of these document can be in their own form, but usually people put similar documents inside a collection. In real world, Its very rate to see collection which contains different type of documents in it.
  • #14: Here is an example that represents a fictional shop. Here the databse name is SHOP
  • #15: The database can hold multiple collection in it , just like RDBMS can hold tables in a databse. In this case The SHOP database has two collections named Users and Orders.
  • #16: Each of the collection again can hold documents in it.