Mongodb
Mongodb
Chad Tindel
Solution Architect
MongoDB Overview
2
MongoDB
3
MongoDB Vision
Build Run
– New and complex data – Big Data scalability
– Flexible – Real-time
– New languages – Commodity hardware
– Faster development – Cloud
4
MongoDB is so easy….
5
MongoDB is so easy….
Even a baby can use it!
6
Top 10 Apps in All Industries for
MongoDB
1. Customer Data Mgt.
2. Product and Asset Catalogs
3. Social and Collaboration Apps
4. Mobile Apps
5. M2M / Internet of Things
6. Security and Fraud Apps
7. PaaS/DBaaS
8. Data Hub
9. Analytics
7
Most benefit from using MongoDB
q You want to easily aggregate data from multiple sources
q You want agile development and/or fastest time-to-market
q You have variably or un-structured data (records might have different fields)
q Your data is hierarchical (i.e. hard to model in RDBMS), e.g. JSON
q You expect the data to grow quickly and want ease of scaling out
q You want the lowest TCO and resources including with replication and caching
q You have challenges today with building canonical models, scale, TCO, or agility
8
Documents are Rich Data Structures
{ !
first_name: ‘Paul’,! String
surname: ‘Miller’,! Typed field values
cell: ‘+447557505611’ ! Number
city: ‘London’,!
Fields location: [45.123,47.232],!
Profession: [banking, finance, trader],!Fields can
contain arrays
cars: [ !
{ model: ‘Bentley’,!
year: 1973,!
value: 100000, … },! Fields can contain an array of
{ model: ‘Rolls Royce’,! sub-documents
year: 1965,!
value: 330000, … }!
}!
}!
9
High Availability
11
Shell and Drivers
Drivers
Drivers for most popular Java Ruby
programming languages and
frameworks
JavaScript Perl
Python Haskell
12
Lower Total Cost of Ownership
13
MongoDB and Docker
Why Docker?
15
Deployment Best Practices
16
Example Sharded Deployment
17
Dockerfile
FROM
centos:latest
ADD
mongodb.repo
/etc/yum.repos.d/mongodb.repo
RUN
yum
–q
–y
update
RUN
yum
–q
–y
mongo-‐10gen-‐server
ADD
mongod.conf
/etc/mongod.conf
VOLUME
[“/data”]
ENTRYPOINT
[“/usr/bin/mongod”,
“-‐-‐config”,
“/etc/mongod.conf”]
18
Resources
• MongoDB on Docker
http://github.com/crcsmnky/mongodb-docker
• Coming Soon
– Reference architecture
– Complete documentation
– Setup and walkthrough for a sharded cluster
19
MongoDB and RHEL IdM
Security Architecture
Identity Clients
• AD • MongoDB
• LDAP • App
• Etc. Servers
• Web
Servers
21
Followup
22
MongoDB and Middleware
Hibernate Object/Grid Mapper (OGM)
24
Hibernate Object/Grid Mapper (OGM)
25
MongoDB OpenShift Cartridge
26
MongoDB MMS / OpenStack
Automation
• Cloud-ready
– Public: AWS, Rackspace
– Private: VMWare, OpenStack
28
Questions?
Chad Tindel
[email protected]