SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
1
Big Data: MongoDB Workshop
2
Content
▪ MongoDB Intro
▪ MongoDB @VRT by Chris
▪ MongoDB 2.6: What is new
▪ Break
▪ Certification by Tim
▪ Online Courses MongoDB / Hadoop and What next
3
MongoDB Intro
▪ A new world
▪ NoSQL
▪ What is MongoDB
▪ MongoDB Architecture
4
A New World
▪ New Apps
The applications serving, generating and interfacing with data have changed. Big Data,
SaaS, social and mobile apps are the new norm.
▪ New Data Types
New applications, users and inputs demand new types of data, like unstructured, semi-
structured and polymorphic data.
▪ New Data Volumes
Data volumes were once smaller, constrained and predictable. Today organizations must be
prepared to support millions of users, thousands of queries per second and hundreds of
terabytes of data.
▪ New Development Methods
The methods we use to build applications have changed. With increasingly competitive
markets and the need to adapt constantly, iterative development has become the standard.
▪ New Architectures
The infrastructure on which we store data has changed. Companies are leveraging cloud
computing, commodity hardware and virtualization.
MongoDB was designed for how we build and run applications today.
55
NoSQL
6
NoSQL
▪ Wide variety of different database techonologies
▪ Designed to deal with new issues arising with data
- Rise in volume of data stored
- Frequency in which this data is accessed
- Performance and Processing Needs
What is NoSQL
7
NoSQL
▪ Document databases
- Pair each key with a complex data structure known as a document.
Documents can contain: key-value pairs, key-array pairs and even nested
documents.
▪ Graph stores
- Store information about networks, such as social connections.
▪ Key-value stores
- simplest NoSQL databases.
- every single item in the database is stored as an attribute name (or "key"),
together with its value.
▪ Wide-column stores
- Optimized for queries over large datasets
- Store columns of data together, instead of rows.
NoSQL datatypes
8
The benefits of NoSQL
▪ More Scaleable
▪ More performance
▪ Their data model addresses several issues a relational model is not
designed to address
- Large volumes of structured, semi-structured, and unstructured data
- Agile sprints, quick iteration, and frequent code pushes
- Object-oriented programming that is easy to use and flexible
- Efficient, scale-out architecture instead of expensive, monolithic
architecture
9
The benefits of NoSQL
▪ Dynamic Schemas
- Agile development approach
▪ Auto Sharding
- Application does not need to be aware of server composition
- Cloud
▪ Replication
- Most support automatic replication
- High availability and better disaster recovery
▪ Integrated Caching
- On relational DB does not improve writes
1010
MongoDB
11
What is MongoDB
▪ Open Source Database
▪ Used by companies of all sizes
▪ Agile database
▪ With functionality of traditional databases:
- Full query language
- Consistency
- Secondary Indexes
▪ Built for:
- Scalability
- Performance
- High Availability
▪ NoSQL
1212
MongoDB
Architecture
13
MongoDB Architecture
▪ Document Data Model
▪ Rich Query Model
▪ Idiomatic Drivers
▪ Horizontal Scalability
▪ High Availability
▪ In-Memory Performance
▪ Flexibility
Feature Overview
14
MongoDB Architecture
▪ Data as Documents
- Stored in BSON (Binary Json)
- Collections (similar like a table tables)
- Tends to have all data for a given record in a single document
▪ Dynamic Schema
- Documents can vary in structure
- Fields can vary from document to document
- Documents are self-describing
- New fields, collections can be created without affecting all other documents
in the system, without updating a central system catalog and without
taking the system offline
MongoDB Data Model
15
MongoDB Architecture
▪ Idiomatic Drivers
- MongoDB provides native drivers for all popular programming languages
and frameworks to make development natural.
- Supported drivers include Java, .NET, Ruby, PHP, JavaScript, node.js,
Python, Perl, PHP, Scala and others.
▪ Query Types
- MongoDB supports many types of queries. A query may return a document
or a subset of specific fields within the document.
▪ Key-Value queries: on alue of a specific field
▪ Range queries: on inequalities (greater then, smaller then …)
▪ Geospatial queries: on proximity criteria
▪ Text Search queries: on relevance order based on text arguments
▪ Aggregation Framework queries: like group by statements
▪ MapReduce Queries: complex data processing expressed in JavaScript
MongoDB Query Model
16
MongoDB Architecture
▪ Indexing
- Many types of indexes on any field in the document
- Improve performance of some operations by orders of magnitued
- Has associated costs in the form of:
▪ Slower writes
▪ Disk usage
▪ Memory Usage
MongoDB Query Model
17
MongoDB Architecture
▪ Auto-Sharding
- Distributes data across multiple physical partitions called shards.
- Allows MongoDB deployments to address the hardware limitations of a
single server, such as bottlenecks in RAM or disk I/O, without adding
complexity to the application.
▪ Sharding is transparent to applications:
- Applications issue requests to query routers which sends that query to the
appropriate shards
MongoDB Data Management
18
MongoDB Architecture
▪ Transaction Model
- ACID compliant at the document level. Ensures complete isolation as a
document is updated; any errors cause the operation to roll back and
clients receive a consistent view of the document
- This is the same model used by many traditional relational databases to
provide durability guarantees.
- As a distributed system: additional flexibility in enabling users to achieve
their desired durability goals by controlling how write operations are
persisted across replicas.
MongoDB Consistency & Durability
19
MongoDB Architecture
▪ Replica Sets
- MongoDB maintains multiple copies of data called replica sets
- A fully self-healing shard that helps prevent database downtime.
- Replica failover is fully automated,
- The number of replicas in a MongoDB replica set is configurable,
- A larger number of replicas provides increased data durability and
protection against database downtime (e.g., in case of multiple machine
failures, rack failures, data center failures, or network partitions).
- Optionally, operations can be configured to write to multiple replicas before
returning to the application, thereby providing functionality that is similar to
synchronous replication.
- Replica sets also provide operational flexibility by providing a way to
upgrade hardware and software without requiring the database to go
offline.
MongoDB Consistency & Durability
20
MongoDB Architecture
▪ In-Memory Performance with On-Disk Capacity
- A fully self-healing shard that helps prevent database downtime.
- Extensive use of RAM to speed up database operations.
▪ Reading data from memory is measured in nanoseconds, whereas reading data
from spinning disk is measured in milliseconds; reading from memory is
approximately 100,000 times faster than reading data from disk.
- All data is read and manipulated through memory-mapped files. Data that is
not accessed is not loaded into RAM.
- While it is not required that all data fit in RAM, it should be the goal of the
deployment team that indexes and all data that is frequently accessed
should fit in RAM.
- If the volume of data that is frequently accessed exceeds the capacity of a
single machine => Automatic Sharding.
- No need for a separate caching layer.
MongoDB Consistency & Durability
2121
MongoDB
Scale & Use Cases
22
MongoDB Scale
▪ 30 of the world’s 100 largest organizations use MongoDB.
▪ Scale
- Over 100 organizations run clusters with more than 100 nodes. Some
clusters exceed 1,000 nodes.
- Deployments like: Yandex
▪ Velocity
- Many clusters deliver hundreds of thousands of operations per second
(combined read and write).
- Deployments like: Foursquare
▪ Volume
- Clusters with hundreds of terabytes, some store multiple petabytes of data.
- Over 150 clusters exceed 1 billion documents in size. Many with more than
100 billion documents.
- Deployments like: Craigslist
23
MongoDB Use Case
▪ Why move?
- Original architecture relied on relational DB
- Too much traffic for 1 machine
▪ Why MongoDB
- Auto-sharding to scale high-traffic and fast-growing application
- Geo-indexing for easy querying of location-based data
- Dramatically simplified data model
Foursquary
24
MongoDB Use Case
▪ In today’s regulatory environment, there are two constants about
compliance:
- requirements are changing
- the volume of data to manage is immense.
▪ For Craigslist, the popular classifieds and job posting community that
serves 570 cities in 50 countries, this means:
- Having to archive years of accumulated data. (1.5 million new classified
ads posted every day)
- Must be able to query and report on these archives at runtime.
▪ Historically:
- MySQL Cluster
- Simple schema change on their vast archive took months to complete,
preventing them from pushing new features.
Craigslist 1
25
MongoDB Use Case
▪ Flexibility
- Each post and its metadata in a single document
- Schema changes with little cost
▪ Scalability and Availability
- Can to scale horizontaly across commodity hardware without having to
write and maintain complex, custom sharding code
- Craigslist’s initial MongoDB deployment was designed to hold over 5 billion
documents and 10TB of data.
- MongoDB’s support for automated failover of nodes via replica sets was
another big win. In the previous system it was a manual effort.
▪ Ease of Use
▪ Proven, Supported Technology
- Compared to the other NoSQL options, MongoDB is broadly-used
technology with many major deployments.
Craigslist 2
2626
Questions ?

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

MongoDB
MongoDBMongoDB
MongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
An Introduction To NoSQL & MongoDB
An Introduction To NoSQL & MongoDBAn Introduction To NoSQL & MongoDB
An Introduction To NoSQL & MongoDB
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
 
Introduction to mongoDB
Introduction to mongoDBIntroduction to mongoDB
Introduction to mongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
Mongo DB
Mongo DB Mongo DB
Mongo DB
 
9. Document Oriented Databases
9. Document Oriented Databases9. Document Oriented Databases
9. Document Oriented Databases
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptx
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
MongoDB 101
MongoDB 101MongoDB 101
MongoDB 101
 
MongodB Internals
MongodB InternalsMongodB Internals
MongodB Internals
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Mongodb vs mysql
Mongodb vs mysqlMongodb vs mysql
Mongodb vs mysql
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql Database
 
Intro To MongoDB
Intro To MongoDBIntro To MongoDB
Intro To MongoDB
 

Destacado

Redis And python at pycon_2011
Redis And python at pycon_2011Redis And python at pycon_2011
Redis And python at pycon_2011sunilar0ra
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014JWORKS powered by Ordina
 
mwpc gas gain report
mwpc gas gain reportmwpc gas gain report
mwpc gas gain reportAndrew Schick
 
Microservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay KievMicroservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay KievJWORKS powered by Ordina
 
Big data document and graph d bs - couch-db and orientdb
Big data  document and graph d bs - couch-db and orientdbBig data  document and graph d bs - couch-db and orientdb
Big data document and graph d bs - couch-db and orientdbJWORKS powered by Ordina
 
Spring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - DevoxxSpring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - DevoxxJWORKS powered by Ordina
 
SAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENASAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENADarem Alkhayer
 
AngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UXAngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UXJWORKS powered by Ordina
 
JavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJWORKS powered by Ordina
 
To SQL or NoSQL, that is the question
To SQL or NoSQL, that is the questionTo SQL or NoSQL, that is the question
To SQL or NoSQL, that is the questionKrishnakumar S
 

Destacado (20)

Redis And python at pycon_2011
Redis And python at pycon_2011Redis And python at pycon_2011
Redis And python at pycon_2011
 
Responsive web - CC FE & UX
Responsive web -  CC FE & UXResponsive web -  CC FE & UX
Responsive web - CC FE & UX
 
Meteor - JOIN 2015
Meteor - JOIN 2015Meteor - JOIN 2015
Meteor - JOIN 2015
 
Batch Processing - A&BP CC
Batch Processing - A&BP CCBatch Processing - A&BP CC
Batch Processing - A&BP CC
 
Mongodb @ vrt
Mongodb @ vrtMongodb @ vrt
Mongodb @ vrt
 
Clean Code - A&BP CC
Clean Code - A&BP CCClean Code - A&BP CC
Clean Code - A&BP CC
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
 
mwpc gas gain report
mwpc gas gain reportmwpc gas gain report
mwpc gas gain report
 
Microservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay KievMicroservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
Microservices with Netflix OSS & Hypermedia APIs - JavaDay Kiev
 
Big data document and graph d bs - couch-db and orientdb
Big data  document and graph d bs - couch-db and orientdbBig data  document and graph d bs - couch-db and orientdb
Big data document and graph d bs - couch-db and orientdb
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Spring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - DevoxxSpring REST Docs: Documenting RESTful APIs using your tests - Devoxx
Spring REST Docs: Documenting RESTful APIs using your tests - Devoxx
 
Unit testing - A&BP CC
Unit testing - A&BP CCUnit testing - A&BP CC
Unit testing - A&BP CC
 
Hadoop bootcamp getting started
Hadoop bootcamp getting startedHadoop bootcamp getting started
Hadoop bootcamp getting started
 
An introduction to Cloud Foundry
An introduction to Cloud FoundryAn introduction to Cloud Foundry
An introduction to Cloud Foundry
 
SAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENASAP SuccessFactors With BGBS MENA
SAP SuccessFactors With BGBS MENA
 
AngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UXAngularJS Basics and Best Practices - CC FE &UX
AngularJS Basics and Best Practices - CC FE &UX
 
JavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UX
 
Lagom in Practice
Lagom in PracticeLagom in Practice
Lagom in Practice
 
To SQL or NoSQL, that is the question
To SQL or NoSQL, that is the questionTo SQL or NoSQL, that is the question
To SQL or NoSQL, that is the question
 

Similar a Mongo db intro.pptx

Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcriptfoliba
 
Introduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDBIntroduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDBAhmed Farag
 
SQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDBSQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDBMarco Segato
 
Webinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-ServiceWebinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-ServiceMongoDB
 
MongoDB on Financial Services Sector
MongoDB on Financial Services SectorMongoDB on Financial Services Sector
MongoDB on Financial Services SectorNorberto Leite
 
When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDBMongoDB
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQLbalwinders
 
Webinar: When to Use MongoDB
Webinar: When to Use MongoDBWebinar: When to Use MongoDB
Webinar: When to Use MongoDBMongoDB
 
Designing your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with PostgresDesigning your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with PostgresOzgun Erdogan
 
MongoDB 2.4 and spring data
MongoDB 2.4 and spring dataMongoDB 2.4 and spring data
MongoDB 2.4 and spring dataJimmy Ray
 
Webinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDBWebinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDBMongoDB
 
Mongodb Introduction
Mongodb IntroductionMongodb Introduction
Mongodb IntroductionJeremy Taylor
 
A Brief Introduction: MongoDB
A Brief Introduction: MongoDBA Brief Introduction: MongoDB
A Brief Introduction: MongoDBDATAVERSITY
 
how_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptxhow_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptxsarah david
 
MongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & PerformanceMongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & PerformanceSasidhar Gogulapati
 
The Future of Distributed Databases
The Future of Distributed DatabasesThe Future of Distributed Databases
The Future of Distributed DatabasesNuoDB
 
Cloud Data Strategy event London
Cloud Data Strategy event LondonCloud Data Strategy event London
Cloud Data Strategy event LondonMongoDB
 
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCHands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCLaura Ventura
 
Cignex mongodb-sharding-mongodbdays
Cignex mongodb-sharding-mongodbdaysCignex mongodb-sharding-mongodbdays
Cignex mongodb-sharding-mongodbdaysMongoDB APAC
 

Similar a Mongo db intro.pptx (20)

Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcript
 
Introduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDBIntroduction to NoSQL and MongoDB
Introduction to NoSQL and MongoDB
 
SQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDBSQL vs NoSQL, an experiment with MongoDB
SQL vs NoSQL, an experiment with MongoDB
 
Webinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-ServiceWebinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-Service
 
MongoDB on Financial Services Sector
MongoDB on Financial Services SectorMongoDB on Financial Services Sector
MongoDB on Financial Services Sector
 
When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDB
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Webinar: When to Use MongoDB
Webinar: When to Use MongoDBWebinar: When to Use MongoDB
Webinar: When to Use MongoDB
 
Designing your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with PostgresDesigning your SaaS Database for Scale with Postgres
Designing your SaaS Database for Scale with Postgres
 
Mongodb
MongodbMongodb
Mongodb
 
MongoDB 2.4 and spring data
MongoDB 2.4 and spring dataMongoDB 2.4 and spring data
MongoDB 2.4 and spring data
 
Webinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDBWebinar: An Enterprise Architect’s View of MongoDB
Webinar: An Enterprise Architect’s View of MongoDB
 
Mongodb Introduction
Mongodb IntroductionMongodb Introduction
Mongodb Introduction
 
A Brief Introduction: MongoDB
A Brief Introduction: MongoDBA Brief Introduction: MongoDB
A Brief Introduction: MongoDB
 
how_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptxhow_can_businesses_address_storage_issues_using_mongodb.pptx
how_can_businesses_address_storage_issues_using_mongodb.pptx
 
MongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & PerformanceMongoDB : Scaling, Security & Performance
MongoDB : Scaling, Security & Performance
 
The Future of Distributed Databases
The Future of Distributed DatabasesThe Future of Distributed Databases
The Future of Distributed Databases
 
Cloud Data Strategy event London
Cloud Data Strategy event LondonCloud Data Strategy event London
Cloud Data Strategy event London
 
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCHands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
 
Cignex mongodb-sharding-mongodbdays
Cignex mongodb-sharding-mongodbdaysCignex mongodb-sharding-mongodbdays
Cignex mongodb-sharding-mongodbdays
 

Más de JWORKS powered by Ordina

Introduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & WebIntroduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & WebJWORKS powered by Ordina
 
Netflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLandNetflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLandJWORKS powered by Ordina
 
Cc internet of things LoRa and IoT - Innovation Enablers
Cc internet of things   LoRa and IoT - Innovation Enablers Cc internet of things   LoRa and IoT - Innovation Enablers
Cc internet of things LoRa and IoT - Innovation Enablers JWORKS powered by Ordina
 
Big data key-value and column stores redis - cassandra
Big data  key-value and column stores redis - cassandraBig data  key-value and column stores redis - cassandra
Big data key-value and column stores redis - cassandraJWORKS powered by Ordina
 
Android secure offline storage - CC Mobile
Android secure offline storage - CC MobileAndroid secure offline storage - CC Mobile
Android secure offline storage - CC MobileJWORKS powered by Ordina
 

Más de JWORKS powered by Ordina (17)

Introduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & WebIntroduction to Webpack - Ordina JWorks - CC JS & Web
Introduction to Webpack - Ordina JWorks - CC JS & Web
 
Netflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLandNetflix OSS and HATEOAS deployed on production - JavaLand
Netflix OSS and HATEOAS deployed on production - JavaLand
 
Cc internet of things @ Thomas More
Cc internet of things @ Thomas MoreCc internet of things @ Thomas More
Cc internet of things @ Thomas More
 
Cc internet of things LoRa and IoT - Innovation Enablers
Cc internet of things   LoRa and IoT - Innovation Enablers Cc internet of things   LoRa and IoT - Innovation Enablers
Cc internet of things LoRa and IoT - Innovation Enablers
 
Big data key-value and column stores redis - cassandra
Big data  key-value and column stores redis - cassandraBig data  key-value and column stores redis - cassandra
Big data key-value and column stores redis - cassandra
 
Big data elasticsearch practical
Big data  elasticsearch practicalBig data  elasticsearch practical
Big data elasticsearch practical
 
Intro to cassandra
Intro to cassandraIntro to cassandra
Intro to cassandra
 
Android wear - CC Mobile
Android wear - CC MobileAndroid wear - CC Mobile
Android wear - CC Mobile
 
Integration testing - A&BP CC
Integration testing - A&BP CCIntegration testing - A&BP CC
Integration testing - A&BP CC
 
Spring 4 - A&BP CC
Spring 4 - A&BP CCSpring 4 - A&BP CC
Spring 4 - A&BP CC
 
Android secure offline storage - CC Mobile
Android secure offline storage - CC MobileAndroid secure offline storage - CC Mobile
Android secure offline storage - CC Mobile
 
Java 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CCJava 7 & 8 - A&BP CC
Java 7 & 8 - A&BP CC
 
IoT: A glance into the future
IoT: A glance into the futureIoT: A glance into the future
IoT: A glance into the future
 
Workshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UXWorkshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UX
 
IoT: LoRa and Java on the PI
IoT: LoRa and Java on the PIIoT: LoRa and Java on the PI
IoT: LoRa and Java on the PI
 
IoT: An introduction
IoT: An introductionIoT: An introduction
IoT: An introduction
 
Unit Testing in AngularJS - CC FE & UX
Unit Testing in AngularJS -  CC FE & UXUnit Testing in AngularJS -  CC FE & UX
Unit Testing in AngularJS - CC FE & UX
 

Último

Cybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadCybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadIvo Andreev
 
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine HarmonyLeveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmonyelliciumsolutionspun
 
Introduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntroduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntelliSource Technologies
 
Enterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze IncEnterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze Incrobinwilliams8624
 
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdfARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdfTobias Schneck
 
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...OnePlan Solutions
 
Why Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfWhy Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfBrain Inventory
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?AmeliaSmith90
 
ERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxAutus Cyber Tech
 
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.Sharon Liu
 
AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyRaymond Okyere-Forson
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionsNirav Modi
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesSoftwareMill
 
JS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AIJS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AIIvo Andreev
 
Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...
Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...
Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...Jaydeep Chhasatia
 
Deep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampDeep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampVICTOR MAESTRE RAMIREZ
 
Fields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxFields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxJoão Esperancinha
 
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeIA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeNeo4j
 

Último (20)

Cybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadCybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and Bad
 
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine HarmonyLeveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
 
Introduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntroduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptx
 
Enterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze IncEnterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze Inc
 
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdfARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
 
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
 
Why Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfWhy Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdf
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in Trivandrum
 
Salesforce AI Associate Certification.pptx
Salesforce AI Associate Certification.pptxSalesforce AI Associate Certification.pptx
Salesforce AI Associate Certification.pptx
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?
 
ERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptx
 
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
 
AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human Beauty
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspections
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retries
 
JS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AIJS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AI
 
Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...
Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...
Optimizing Business Potential: A Guide to Outsourcing Engineering Services in...
 
Deep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampDeep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - Datacamp
 
Fields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxFields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptx
 
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeIA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG time
 

Mongo db intro.pptx

  • 2. 2 Content ▪ MongoDB Intro ▪ MongoDB @VRT by Chris ▪ MongoDB 2.6: What is new ▪ Break ▪ Certification by Tim ▪ Online Courses MongoDB / Hadoop and What next
  • 3. 3 MongoDB Intro ▪ A new world ▪ NoSQL ▪ What is MongoDB ▪ MongoDB Architecture
  • 4. 4 A New World ▪ New Apps The applications serving, generating and interfacing with data have changed. Big Data, SaaS, social and mobile apps are the new norm. ▪ New Data Types New applications, users and inputs demand new types of data, like unstructured, semi- structured and polymorphic data. ▪ New Data Volumes Data volumes were once smaller, constrained and predictable. Today organizations must be prepared to support millions of users, thousands of queries per second and hundreds of terabytes of data. ▪ New Development Methods The methods we use to build applications have changed. With increasingly competitive markets and the need to adapt constantly, iterative development has become the standard. ▪ New Architectures The infrastructure on which we store data has changed. Companies are leveraging cloud computing, commodity hardware and virtualization. MongoDB was designed for how we build and run applications today.
  • 6. 6 NoSQL ▪ Wide variety of different database techonologies ▪ Designed to deal with new issues arising with data - Rise in volume of data stored - Frequency in which this data is accessed - Performance and Processing Needs What is NoSQL
  • 7. 7 NoSQL ▪ Document databases - Pair each key with a complex data structure known as a document. Documents can contain: key-value pairs, key-array pairs and even nested documents. ▪ Graph stores - Store information about networks, such as social connections. ▪ Key-value stores - simplest NoSQL databases. - every single item in the database is stored as an attribute name (or "key"), together with its value. ▪ Wide-column stores - Optimized for queries over large datasets - Store columns of data together, instead of rows. NoSQL datatypes
  • 8. 8 The benefits of NoSQL ▪ More Scaleable ▪ More performance ▪ Their data model addresses several issues a relational model is not designed to address - Large volumes of structured, semi-structured, and unstructured data - Agile sprints, quick iteration, and frequent code pushes - Object-oriented programming that is easy to use and flexible - Efficient, scale-out architecture instead of expensive, monolithic architecture
  • 9. 9 The benefits of NoSQL ▪ Dynamic Schemas - Agile development approach ▪ Auto Sharding - Application does not need to be aware of server composition - Cloud ▪ Replication - Most support automatic replication - High availability and better disaster recovery ▪ Integrated Caching - On relational DB does not improve writes
  • 11. 11 What is MongoDB ▪ Open Source Database ▪ Used by companies of all sizes ▪ Agile database ▪ With functionality of traditional databases: - Full query language - Consistency - Secondary Indexes ▪ Built for: - Scalability - Performance - High Availability ▪ NoSQL
  • 13. 13 MongoDB Architecture ▪ Document Data Model ▪ Rich Query Model ▪ Idiomatic Drivers ▪ Horizontal Scalability ▪ High Availability ▪ In-Memory Performance ▪ Flexibility Feature Overview
  • 14. 14 MongoDB Architecture ▪ Data as Documents - Stored in BSON (Binary Json) - Collections (similar like a table tables) - Tends to have all data for a given record in a single document ▪ Dynamic Schema - Documents can vary in structure - Fields can vary from document to document - Documents are self-describing - New fields, collections can be created without affecting all other documents in the system, without updating a central system catalog and without taking the system offline MongoDB Data Model
  • 15. 15 MongoDB Architecture ▪ Idiomatic Drivers - MongoDB provides native drivers for all popular programming languages and frameworks to make development natural. - Supported drivers include Java, .NET, Ruby, PHP, JavaScript, node.js, Python, Perl, PHP, Scala and others. ▪ Query Types - MongoDB supports many types of queries. A query may return a document or a subset of specific fields within the document. ▪ Key-Value queries: on alue of a specific field ▪ Range queries: on inequalities (greater then, smaller then …) ▪ Geospatial queries: on proximity criteria ▪ Text Search queries: on relevance order based on text arguments ▪ Aggregation Framework queries: like group by statements ▪ MapReduce Queries: complex data processing expressed in JavaScript MongoDB Query Model
  • 16. 16 MongoDB Architecture ▪ Indexing - Many types of indexes on any field in the document - Improve performance of some operations by orders of magnitued - Has associated costs in the form of: ▪ Slower writes ▪ Disk usage ▪ Memory Usage MongoDB Query Model
  • 17. 17 MongoDB Architecture ▪ Auto-Sharding - Distributes data across multiple physical partitions called shards. - Allows MongoDB deployments to address the hardware limitations of a single server, such as bottlenecks in RAM or disk I/O, without adding complexity to the application. ▪ Sharding is transparent to applications: - Applications issue requests to query routers which sends that query to the appropriate shards MongoDB Data Management
  • 18. 18 MongoDB Architecture ▪ Transaction Model - ACID compliant at the document level. Ensures complete isolation as a document is updated; any errors cause the operation to roll back and clients receive a consistent view of the document - This is the same model used by many traditional relational databases to provide durability guarantees. - As a distributed system: additional flexibility in enabling users to achieve their desired durability goals by controlling how write operations are persisted across replicas. MongoDB Consistency & Durability
  • 19. 19 MongoDB Architecture ▪ Replica Sets - MongoDB maintains multiple copies of data called replica sets - A fully self-healing shard that helps prevent database downtime. - Replica failover is fully automated, - The number of replicas in a MongoDB replica set is configurable, - A larger number of replicas provides increased data durability and protection against database downtime (e.g., in case of multiple machine failures, rack failures, data center failures, or network partitions). - Optionally, operations can be configured to write to multiple replicas before returning to the application, thereby providing functionality that is similar to synchronous replication. - Replica sets also provide operational flexibility by providing a way to upgrade hardware and software without requiring the database to go offline. MongoDB Consistency & Durability
  • 20. 20 MongoDB Architecture ▪ In-Memory Performance with On-Disk Capacity - A fully self-healing shard that helps prevent database downtime. - Extensive use of RAM to speed up database operations. ▪ Reading data from memory is measured in nanoseconds, whereas reading data from spinning disk is measured in milliseconds; reading from memory is approximately 100,000 times faster than reading data from disk. - All data is read and manipulated through memory-mapped files. Data that is not accessed is not loaded into RAM. - While it is not required that all data fit in RAM, it should be the goal of the deployment team that indexes and all data that is frequently accessed should fit in RAM. - If the volume of data that is frequently accessed exceeds the capacity of a single machine => Automatic Sharding. - No need for a separate caching layer. MongoDB Consistency & Durability
  • 22. 22 MongoDB Scale ▪ 30 of the world’s 100 largest organizations use MongoDB. ▪ Scale - Over 100 organizations run clusters with more than 100 nodes. Some clusters exceed 1,000 nodes. - Deployments like: Yandex ▪ Velocity - Many clusters deliver hundreds of thousands of operations per second (combined read and write). - Deployments like: Foursquare ▪ Volume - Clusters with hundreds of terabytes, some store multiple petabytes of data. - Over 150 clusters exceed 1 billion documents in size. Many with more than 100 billion documents. - Deployments like: Craigslist
  • 23. 23 MongoDB Use Case ▪ Why move? - Original architecture relied on relational DB - Too much traffic for 1 machine ▪ Why MongoDB - Auto-sharding to scale high-traffic and fast-growing application - Geo-indexing for easy querying of location-based data - Dramatically simplified data model Foursquary
  • 24. 24 MongoDB Use Case ▪ In today’s regulatory environment, there are two constants about compliance: - requirements are changing - the volume of data to manage is immense. ▪ For Craigslist, the popular classifieds and job posting community that serves 570 cities in 50 countries, this means: - Having to archive years of accumulated data. (1.5 million new classified ads posted every day) - Must be able to query and report on these archives at runtime. ▪ Historically: - MySQL Cluster - Simple schema change on their vast archive took months to complete, preventing them from pushing new features. Craigslist 1
  • 25. 25 MongoDB Use Case ▪ Flexibility - Each post and its metadata in a single document - Schema changes with little cost ▪ Scalability and Availability - Can to scale horizontaly across commodity hardware without having to write and maintain complex, custom sharding code - Craigslist’s initial MongoDB deployment was designed to hold over 5 billion documents and 10TB of data. - MongoDB’s support for automated failover of nodes via replica sets was another big win. In the previous system it was a manual effort. ▪ Ease of Use ▪ Proven, Supported Technology - Compared to the other NoSQL options, MongoDB is broadly-used technology with many major deployments. Craigslist 2