NoSQL Database - mongodb



Similar documents
NoSQL in der Cloud Why? Andreas Hartmann

MongoDB in the NoSQL and SQL world. Horst Rechner Berlin,

A COMPARATIVE STUDY OF NOSQL DATA STORAGE MODELS FOR BIG DATA

.NET User Group Bern

Introduction to NoSQL and MongoDB. Kathleen Durant Lesson 20 CS 3200 Northeastern University

NOSQL INTRODUCTION WITH MONGODB AND RUBY GEOFF

MongoDB Developer and Administrator Certification Course Agenda

NoSQL - What we ve learned with mongodb. Paul Pedersen, Deputy CTO paul@10gen.com DAMA SF December 15, 2011

Lecture Data Warehouse Systems

Getting Started with MongoDB

L7_L10. MongoDB. Big Data and Analytics by Seema Acharya and Subhashini Chellappan Copyright 2015, WILEY INDIA PVT. LTD.

MongoDB: document-oriented database

Advanced Data Management Technologies

NoSQL Databases. Nikos Parlavantzas

Overview of Databases On MacOS. Karl Kuehn Automation Engineer RethinkDB

Can the Elephants Handle the NoSQL Onslaught?

Certified MongoDB Professional VS-1058

SQL VS. NO-SQL. Adapted Slides from Dr. Jennifer Widom from Stanford

Big Data Solutions. Portal Development with MongoDB and Liferay. Solutions

Dr. Chuck Cartledge. 15 Oct. 2015

nosql and Non Relational Databases

Document Oriented Database

Building Your First MongoDB Application

DYNAMIC QUERY FORMS WITH NoSQL

Cloud Scale Distributed Data Storage. Jürmo Mehine

NoSQL Databases. Institute of Computer Science Databases and Information Systems (DBIS) DB 2, WS 2014/2015

SURVEY ON MONGODB: AN OPEN- SOURCE DOCUMENT DATABASE

these three NoSQL databases because I wanted to see a the two different sides of the CAP

Integrating Big Data into the Computing Curricula

MongoDB. An introduction and performance analysis. Seminar Thesis

In Memory Accelerator for MongoDB

An Approach to Implement Map Reduce with NoSQL Databases

MongoDB. The Definitive Guide to. The NoSQL Database for Cloud and Desktop Computing. Apress8. Eelco Plugge, Peter Membrey and Tim Hawkins

Understanding NoSQL Technologies on Windows Azure

extensible record stores document stores key-value stores Rick Cattel s clustering from Scalable SQL and NoSQL Data Stores SIGMOD Record, 2010

Not Relational Models For The Management of Large Amount of Astronomical Data. Bruno Martino (IASI/CNR), Memmo Federici (IAPS/INAF)

Comparison of the Frontier Distributed Database Caching System with NoSQL Databases

Frictionless Persistence in.net with MongoDB. Mogens Heller Grabe Trifork

NoSQL replacement for SQLite (for Beatstream) Antti-Jussi Kovalainen Seminar OHJ-1860: NoSQL databases

How To Build Cloud Storage On Google.Com

Big Data Development CASSANDRA NoSQL Training - Workshop. March 13 to am to 5 pm HOTEL DUBAI GRAND DUBAI

Big Data & Data Science Course Example using MapReduce. Presented by Juan C. Vega

CSCC09F Programming on the Web. Mongo DB

The MongoDB Tutorial Introduction for MySQL Users. Stephane Combaudon April 1st, 2014

Structured Data Storage

NoSQL Database Options

Transactions and ACID in MongoDB

The CAP theorem and the design of large scale distributed systems: Part I

Big Data. Facebook Wall Data using Graph API. Presented by: Prashant Patel Jaykrushna Patel

Big data and urban mobility

Study and Comparison of Elastic Cloud Databases : Myth or Reality?

Introduction to NoSQL

NoSQL web apps. w/ MongoDB, Node.js, AngularJS. Dr. Gerd Jungbluth, NoSQL UG Cologne,

Institutionen för datavetenskap Department of Computer and Information Science

Practical Cassandra. Vitalii

The NoSQL Ecosystem, Relaxed Consistency, and Snoop Dogg. Adam Marcus MIT CSAIL

Application of NoSQL Database in Web Crawling

How To Improve Performance In A Database

MongoDB. Or how I learned to stop worrying and love the database. Mathias Stearn. N*SQL Berlin October 22th, gen

Distributed Storage Systems

An Open Source NoSQL solution for Internet Access Logs Analysis

Big Systems, Big Data

The evolution of database technology (II) Huibert Aalbers Senior Certified Executive IT Architect

Schema Extraction of Document Database - MongoDB. Master of Engineering. Computer Science and Engineering. Submitted By.

MONGODB - THE NOSQL DATABASE

Issues in Big-Data Database Systems

Scaling up = getting a better machine. Scaling out = use another server and add it to your cluster.

NoSQL Roadshow Berlin Kai Spichale

A Scalable Relational Database Model for Cloud Computing

Domain driven design, NoSQL and multi-model databases

Big Data & Scripting storage networks and distributed file systems

Programming Against Hybrid Databases with Java Handling SQL and NoSQL. Brian Hughes IBM

NoSQL: Going Beyond Structured Data and RDBMS

Open Source Technologies on Microsoft Azure

Cassandra vs MySQL. SQL vs NoSQL database comparison

NORWEGIAN UNIVERSITY OF SCIENCE AND TECHNOLOGY DEPARTMENT OF CHEMICAL ENGINEERING ADVANCED PROCESS SIMULATION. SQL vs. NoSQL

Brad Dayley. NoSQL with MongoDB

Data Model Design for MongoDB

Survey of NoSQL Database Engines for Big Data

NoSQL, But Even Less Security Bryan Sullivan, Senior Security Researcher, Adobe Secure Software Engineering Team

Introduction to NoSQL

Spring Data, Jongo & Co. Java Persistenz-Frameworks für MongoDB

Performance Analysis for NoSQL and SQL

Preparing Your Data For Cloud

Scaling with MongoDB. by Michael Schurter Scaling with MongoDB by Michael Schurter - OS Bridge,

RDBMS vs NoSQL: Performance and Scaling Comparison

Cloudant Querying Options

A survey of big data architectures for handling massive data

Introduction to Polyglot Persistence. Antonios Giannopoulos Database Administrator at ObjectRocket by Rackspace

Perl & NoSQL Focus on MongoDB. Jean-Marie Gouarné jmgdoc@cpan.org

Please ask questions! Have people used non-relational dbs before? MongoDB?

Transcription:

NoSQL Database - mongodb Andreas Hartmann 19.10.11

Agenda NoSQL Basics MongoDB Basics Map/Reduce Binary Data Sets Replication - Scaling Monitoring - Backup Schema Design - Ecosystem 19.10.11 2 NoSQL Database - mongodb

NoSQL Basics CAP Theorem Availability All clients can always read and write Consistency Each client always has the same view of the data Partition tolerance The system works well across physical network partitions 2000; Prof. Eric A. Brewer; Keynote auf dem ACM Symposium über die Prinzipien verteilten Computing 2002; Seth Gilbert und Nancy Lynch vom MIT formal bewiesen 19.10.11 3 NoSQL Database - mongodb

NoSQL Basics ACID-BASE ACID Atomicity all or nothing rule Consistency any transaction the database performs will take it from one consistent state to another Isolation no transaction should be able to interfere with another transaction at all Durability once a transaction has been committed, it will remain so http://en.wikipedia.org/wiki/acid BASE Basically Available the system does guarantee availability, in terms of the CAP theorem Soft-State the state of the system may change over time, even without input Eventual Consistency the system will become consistent over time, given that the system doesn't receive input during that time http://stackoverflow.com/questions/3342497/explanation-ofbase-terminology 19.10.11 4 NoSQL Database - mongodb

NoSQL Basics Documentoriented Conceptual: nested Structures with extendable Attributes name forname adress street postcode city... Meier Max Deich 7 28355 Bremen???.................. Internal: document oriented View (mostly JSON-Format) {"name":"meier", "forname":"max", "adress":{"street":"deich 7", "postcode":28355, "city":"bremen"} "...":"???"} 19.10.11 5 NoSQL Database - mongodb

mongodb - Basics Datatypes JavaScript Object Notation (JSON) string, integer, boolean,... {"conference": "wjax"} Binary JSON (BSON) date, object id, binary data,... "\x16\x00\x00\x00\x02conference\x00 \x06\x00\x00\x00wjax\x00\x00" 19.10.11 6 NoSQL Database - mongodb

mongodb - Basics SQL to Mongo Mapping SQL Mongo Database Table Index Row Column Join Primary Key Database Collection Index BSON Document BSON Field Embedding an Linking _id Field 19.10.11 7 NoSQL Database - mongodb

mongodb - Basics Mongo Metadata system.namespaces system.indexes system.profile system.users local.sources 19.10.11 8 NoSQL Database - mongodb

mongodb - Basics Collectiontypes Collection db.createcollection("mycollection"); Capped Collection > Logging > Caching > Archiving db.createcollection( "mycappedcollection", {capped:true, size:100000, max:100}); 19.10.11 9 NoSQL Database - mongodb

mongodb - Basics ObjectId Document db.person.insert( {"name": "Name 1", "forname": "Forname 1", "email": "email1@adesso.de" } ); 19.10.11 10 NoSQL Database - mongodb

mongodb - Basics Embedded Document db.person.insert( {"name": "Name 1", "forname": "Forname 1", "email": "email1@adesso.de", "adress": { "street": "Street 1", "city": "City 1", "postcode": 1 } } ); 19.10.11 11 NoSQL Database - mongodb

mongodb - Basics DBRef var lastperson = db.person.findone(); db.hotel.insert( {"name": "Motel 1", "stars": 3, "adress": { "adress": "Adress 4", "city": "City", "postcode": 4 }, "guest": [ { "$ref" : "person", "$id" : lastperson._id } ]}); 19.10.11 12 NoSQL Database - mongodb

mongodb - Basics CRUD Samples Connectivity (Client Treiber) 19.10.11 13 NoSQL Database - mongodb

mongodb - Selectors Queries Modifiers Aggregationen 19.10.11 14 NoSQL Database - mongodb

mongodb - Transactions Atomic Updates Update-If-current Principle 19.10.11 15 NoSQL Database - mongodb

mongodb - Indices Simple Indices Compound Indices Unique Indices Sorting Order 19.10.11 16 NoSQL Database - mongodb

mongodb Map/Reduce Parallel processing huge datasets on distributed systems Data Data Data Data M A P R E D U C E 19.10.11 17 NoSQL Database - mongodb

mongodb Map/Reduce mongodb API 19.10.11 18 NoSQL Database - mongodb

mongodb Binary Data Sets GridFS 19.10.11 19 NoSQL Database - mongodb

mongodb Replication Recplica Sets 19.10.11 20 NoSQL Database - mongodb

mongodb - Scaling Sharding 19.10.11 21 NoSQL Database - mongodb

mongodb - Monitoring 19.10.11 22 NoSQL Database - mongodb

mongodb - Backup 19.10.11 23 NoSQL Database - mongodb

mongodb Schema Design denormalize avoid relations implements relations > Object ID > DBRef embedet documents one to many many to many 19.10.11 24 NoSQL Database - mongodb

mongodb Schema Design Many to Many User id name UserRole userid userrole Role id name 19.10.11 25 NoSQL Database - mongodb

mongodb Schema Design Many to Many {"_id":"3456768789", "name":"andreas", "roles":{"developer", "Architect", "Coach", "Speaker"}} {"_id":"2896823412", "name":"max", "roles":{"developer", "Student"}} 19.10.11 26 NoSQL Database - mongodb

mongodb - Ecosystem MongoExplorer Morphia 19.10.11 27 NoSQL Database - mongodb

Hands On 19.10.11 28 NoSQL Database - mongodb

Vielen Dank für Ihre Aufmerksamkeit. info@adesso.de www.adesso.de

19.10.11 30 NoSQL Database - mongodb