27

Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

  • Upload
    mongodb

  • View
    47

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB
Page 2: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

The Right (and Wrong) Use Cases for MongoDB

Toji George

Solution Architect, [email protected]

@TojiG

Page 3: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Factors Driving Modern Applications

Data

• 90% data created in last 2 years

• 80% enterprise data is unstructured

• Unstructured data growing 2X rate

of structured data

Mobile

• 2 Billion smartphones by 2015

• Mobile now >50% internet use

• 26 Billion devices on IoT by

2020

Social

• 72% of internet use is social media

• 2 Billion active users monthly

• 93% of businesses use social media

Cloud

• Compute costs declining 33% YOY

• Storage costs declining 38% YOY

• Network costs declining 27% YOY

Page 4: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Expressive Query

Language

StrongConsistency

Secondary Indexes

Flexibility

Scalability

Performance

Relational NoSQLNexus Architecture

Page 5: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

MongoDB is…

Document DatabaseGeneral Purpose

Source: http://commons.wikimedia.org/wiki/File:Free_Software_and_Open_Source_Software_Composite_Logo.svg

Page 6: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

MongoDB and Enterprise IT Stack

ApplicationsCOTS, Mobile, Social, Analytics

Data Management

RecordKeeping

RDBMS

Datawarehouse

Hadoop,Appliances

Engagement

MongoDB

InfrastructureOS, Virtualization, Compute, Storage, Network

Man

agem

ent,

Mo

nit

ori

ng

, b

acku

p

Sec

uri

ty a

nd

Au

dit

ing

Page 7: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Document Data Model

Relational MongoDB

{ first_name: ‘Paul’, surname: ‘Miller’, city: ‘London’, location: [45.123,47.232], cars: [ { model: ‘Bentley’, year: 1973, value: 100000, … }, { model: ‘Rolls Royce’, year: 1965, value: 330000, … } ]}

Page 8: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Do More With Your Data

MongoDB

{ first_name: ‘Paul’, surname: ‘Miller’, city: ‘London’, location: [45.123,47.232], cars: [ { model: ‘Bentley’, year: 1973, value: 100000, … }, { model: ‘Rolls Royce’, year: 1965, value: 330000, … } }}

Rich Queries

Find Paul’s cars

Find everybody in London with a car built between 1970 and 1980

Geospatial Find all of the car owners within 5km of Trafalgar Sq.

Text Search Find all the cars described as having leather seats

Aggregation Calculate the average value of Paul’s car collection

Map ReduceWhat is the ownership pattern of colors by geography over time?(is purple trending up in China?)

Page 9: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

MongoDB Strategic Advantages

Horizontally Scalable-Sharding

AgileFlexible

High Performance &Strong Consistency

Application

HighlyAvailable-Replica Sets

{ author: “eliot”, date: new Date(), text: “MongoDB”, tags: [“database”, “flexible”, “JSON”]}

Page 10: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

10

Reduce Risk for Mission-Critical Deployments

Lower TCO

MongoDB Business Value

Leverage Data & Tech. to Maximize Competitive Advantage

Faster Time to Value

Page 11: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

What MongoDB does well

Agile development in most programming languages

High Availability and auto failover via straightforward replication

High performance on mixed workloads of reads, writes and updates

Operational data analytics in real time

Scale horizontally on demand at your data center or the cloud

Page 12: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

What MongoDB does less well

Graph traversal beyond two degrees of separation

Absolute write availability

Faceted search

Transactions over multiple documents

Joins across collections

Page 13: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

MongoDB is good for MongoDB is less good for

• Single View• Internet of Things – sensor data• Mobile apps – geospatial• Real-time analytics• Catalog• Personalization• Content management• Inventory management• Shopping cart• Dependent datamarts• Archiving for fast lookup• Collaboration tools• Messaging applications• ……

• Search engine

• Slicing and dicing of data in unplanned ways requiring joins and full scans

• Nanosecond latency writing (real time tick data)

• Uptime beyond 99.999%, instant failover

• Batch processing

Use cases

Page 14: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

MongoDB Use Cases

Single View Internet of Things Mobile Real-Time Analytics

Catalog Personalization Content Management

Page 15: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Data Hub for Large Investment Bank

Feeds & Batch data• Pricing• Accounts• Securities Master• Corporate actions

Real-time

Real-time Real-time

Real-time

Real-time

Real-time

Real-time

Each represents• Less hardware $• Less license $• No penalty $• & many less problems MongoDB

Secondaries

MongoDB Primary

• Will save about $40,000,000 in costs and penalties over 5 years

• Data in sync globally and read locally

• Capacity to move to one global shared data service

Page 16: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Big Data Genomics

• Very large base of DNA sample sequences– Origin, collection method,

sequence, date, …• Enumeration of mutations

relative to reference sequence– Positions, mutation type,

base• Need to retrieve efficiently all

sequences showing a particular mutation

• Similar to Content Management System pattern

• Add tag array in sequence document with mutation names

• Index tag array• Queries looking for affected

sequences are indexed and very fast

• Easy to setup, flexible representation and details for sequences, flexible evolution

• Can scale to massive volumes

Page 17: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

IoT: Large Industrial Vehicle Manufacturer

Shard 1Secondary

Shard 2Secondary

Shard 3Secondary

Shard 1Primary

Shard 1Secondary

Shard 1Primary

Shard 1Secondary

Shard 1Primary

Shard 1Secondary

Central Hub

RegionalHub

RegionalHub

RegionalHub

Page 18: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

What database do you need for your business?

Page 19: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

What vehicle do you want for a race?

Page 20: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

WHAT ARE YOU TRYING TO ACHIEVE?

Page 21: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Why MongoDB

• Develop agile applications • 99.999% availability• Deploy rapidly and scale on demand (start small and fast, grow

easily) • Real time analysis in the database, under load• Geospatial querying• Processing in real time, not in batch• Deploy over commodity computing and storage architectures • Point in Time recovery• Need strong data consistency• Advanced security

Page 22: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Why MongoDB

• Develop application in weeks• 99.999% availability• Deploy rapidly and scale on demand (start small and fast, grow

easily) • Real time analysis in the database, under load• Geospatial querying• Processing in real time, not in batch• Deploy over commodity computing and storage architectures • Point in Time recovery• Need strong data consistency• Advanced securityIf 3

or more apply to you….

you should try out M

ongoDB

Page 23: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Why MongoDB

• Ease of hiring • Commercial license• Ease of developer adoption• Global Support• Global Professional Services• IT ecosystem integration• Management tooling and services • Company stability• De facto standard for next generation database

Page 24: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Why MongoDB

• Ease of hiring • Commercial license• Ease of developer adoption• Global Support• Global Professional Services• IT ecosystem integration• Management tooling and services • Company stability• De facto standard for next generation databaseIf 2

or more are relevant to

you….

you should consider MongoDB

Page 25: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

Summary

• MongoDB is general purpose database• Complements search engines, Hadoop and Data

Warehouses– Does not replace these technologies

• Wide range of use cases – and that’s the core point !– Excellent across many possible use cases, not just a few

• Widely adopted in the industry with a big and growing talent pool available

• Enterprise maturity and integration

Page 26: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB

We Can Help

MongoDB Enterprise AdvancedThe best way to run MongoDB in your data center

MongoDB Management Service (MMS)The easiest way to run MongoDB in the cloud

Production SupportIn production and under control

Development SupportLet’s get you running

ConsultingWe solve problems

TrainingGet your teams up to speed

Page 27: Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB