SlideShare a Scribd company logo
Making A Single View of the
Customer Real with MongoDB
Marcelo Rocha DaSilva
Senior Solutions Architect, MongoDB
@SQLorNot
MongoDB
The leading NoSQL database

General
Purpose

2

Document
Database

OpenSource
MongoDB Vision
To provide the best database for how we build and
run apps today
Build
–New and complex data
–Flexible
–New languages
–Faster development

3

Run
–Big Data scalability
–Real-time
–Commodity hardware
–Cloud
Fortune 500 & Global 500
• 10 of the Top Financial Services Institutions
• 10 of the Top Electronics Companies
• 10 of the Top Media and Entertainment
Companies
• 8 of the Top Retailers
• 6 of the Top Telcos
• 5 of the Top Technology Companies
• 4 of the Top Healthcare Companies
4
Global Community
5,000,000+

MongoDB Downloads

100,000+

Online Education Registrants

20,000+

MongoDB User Group Members

20,000+

MongoDB Days Attendees

20,000+

MongoDB Management Service (MMS) Users
5
MongoDB and Enterprise IT Stack

CRM, ERP, Collaboration, Mobile, BI

Data Management
Online Data

Offline Data

RDBMS

Infrastructure
OS & Virtualization, Compute, Storage, Network

6

Security & Auditing

Management & Monitoring

Applications
MongoDB Overview

Agile

7

Scalable
MongoDB and Enterprise IT Strategy
Legacy
Apps

Strategic

On-Premise

SaaS, Mobile, Social

Oracle

MongoDB

Teradata

Hadoop

Compute

Scale-Up Server

Commodity HW / Cloud

Storage

SAN

Local Storage / Cloud

Network

Routers and Switches

Software-Defined Networks

Database
Offline Data

8
MongoDB Features
• JSON Document Model
with Dynamic Schemas

• Full, Flexible Index Support
and Rich Queries

• Auto-Sharding for
Horizontal Scalability

• Built-In Replication for High
Availability

• Text Search

• Advanced Security

• Aggregation Framework
and MapReduce

• Large Media Storage with
GridFS

9
MongoDB Business Value

Enabling New Apps

Faster Time to Market
10

Better Customer Experience

Lower TCO
Data Integration
• Data Integration is about processes
and knowing the data well.
• Old technologies make progress very
difficult and slow
• MongoDB enables easy/incremental
approach to Enterprise Data View

11
• Extract customer info from many source systems
as often as desired
• Load into one database and application
• Link data together for each customer
• Query for all customer and associated product
info at once
• Enable CSRs, RMs/Agents, customers, etc. to
know all customer and product information at
once
13
Single View of a Customer –
Why MongoDB?
•

Dynamic schema => can handle vastly different data together and
can keep improving and fixing issues over time easily

•

High scale/performance => directly impacts customer experience or
CSR MTTR so every second counts

•

Auto-sharding => can automatically add processing power as
customers and products are added

•

Rich querying => supporting ends users directly requires multiple
ways of access and key/value is not sufficient

•

Aggregation framework => database-supported roll-ups for analysis
on data hub for customer information by marketing, sales, etc.

•

Map-reduce capability (Native MR or Hadoop Connector) => batch
analysis looking for patterns and opportunities in data hub
14
And We’ve Done it Before
• MetLife Leapfrogs Insurance Industry with
MongoDB-Powered Big Data Application
•

New York—May 7, 2013—10gen, the MongoDB company, today
announced that MetLife, Inc. selected MongoDB as the data engine
for “The Wall”, an innovative customer service application that went
live last month. …

•

http://www.10gen.com/press/metlife-leapfrogs-insurance-industry-mongodbpowered-big-data-application

15
High Level Data Flow
Source
Source
database 11
database

Source
Source
database 22
database

ETL or
Custom app

OLTP/real-time
access

Document
•per product
•per customer

CSR Application
CSR Application

Customer
Customer
Application
Application

…
Agent/RM
Agent/RM
Application
Application
Source
Source
database N
database N
16

Queue to Update
Queue to Update
Source Systems
Source Systems
Case Study: Tier 1 Global Insurance
Provider
Single global view of customers’ product
portfolio and interactions
Problem
• Siloed view of customer
across products
• Changing policy
definitions takes months
or more
• Source systems are
critical but stuck on old
technology

17

Why MongoDB
• Leverage dynamic
schema to include
evolving policy details

Results
• Able to deliver in 3
months with $2M, when
previous attempts costing
$25M failed with no results

• One data hub across all
• Unified customer view for
contact channels for
consistent customer view call center and web site
with changes available to
• Leverage replication for
all channels
high availability to reduce
• Dramatically lower cost
pressure on ops team
through less and shorter
• Leverage sharding to
calls
scale linearly
Case Study: Tier 1 Global Insurance
Provider
Source
Source
database 11
database

Custom app
exports JSON

OLTP/real-time
access
CSR Application
CSR Application

Source
Source
database 22
database
Customer
Customer
Application
Application

…
Source
Source
Database 40
Database 40

18

Document
•per product
•per customer

Agent/RM
Agent/RM

Future phases
Future phases
Application
Application
Pre requisite Data Analysis
What questions to answer to feed
into design?
• What is the scope of customer info to aggregate?
– Start with a manageable amount
– Focus on satisfying particular valuable purposes (e.g minimizing
MTTR and re-routed calls)
– Need executive political support to get time from all groups

• How to link data across customers and products?
– Identify the rules both exact and fuzzy
– Specify common fields
– Try to normalize but dynamic schema is tolerant
– Can always refine rules as you go even based on human
feedback
20
Load Data into MongoDB
Customer Records in Source
Systems, e.g. banking
Personal Bank Accounts
Personal Bank Accounts
•Account ID
•Account ID
•Open date
•Open date
•First name
•First name
•Last name
•Last name
•Joint First Name
•Joint First Name
•Joint Last Name
•Joint Last Name
•Joint SSN
•Joint SSN
•Address
•Address
•City
•City
•State
•State
•Zip
•Zip
•Address 22
•Address
•Home phone
•Home phone
•Work phone
•Work phone
•APR
•APR
•Account type
•Account type
•Branch ID
•Branch ID
•Region ID
•Region ID
•….
•….

22

Credit Cards
Credit Cards
•CC number
•CC number
•SSN 11
•SSN
•Full name 11
•Full name
•Address 11
•Address
•City 11
•City
•State 11
•State
•Zip 11
•Zip
•SSN 22
•SSN
•Full Name 22
•Full Name
•Address 22
•Address
•City 22
•City
•State 22
•State
•Zip 22
•Zip
•Primary phone 11
•Primary phone
•Mobile phone 22
•Mobile phone
•Issue date
•Issue date
•Reward type
•Reward type
•….
•….

Mortgages
Mortgages
•Mortgage ID
•Mortgage ID
•Borrower name
•Borrower name
•Borrower SSN
•Borrower SSN
•Borrower address
•Borrower address
•Borrower city
•Borrower city
•Borrower state
•Borrower state
•Borrower zip
•Borrower zip
•Co-borrower SSN
•Co-borrower SSN
•Co-borrower name
•Co-borrower name
•Co-borrower address
•Co-borrower address
•Co-borrower city
•Co-borrower city
•Co-borrower state
•Co-borrower state
•Co-borrower Zzp
•Co-borrower Zzp
•Mobile phone
•Mobile phone
•Effective date
•Effective date
•Term
•Term
•Interest
•Interest
•Money down
•Money down
•Principal loan
•Principal loan
•Total loan
•Total loan
•….
•….
Bank Account JSON Document
{
_id : ObjectId("4e2e3f92268cdda473b628f6"),
accountID: 9874983789,
accountType: “Checking”,
firstName : ”John",
lastName: “Smith”,
address: “52 Vanderbilt Ave.”,
homePhone: “123-456-7890”,
workPhone: “897-389-8987”,
openDate: ISODate("2013-02-15 10:00”)
…
}
> db.accts.find( { accountID: 9874983789} )
23
P&C Policy Document
{
_id : ObjectId("4e2e3f92268cdda473b628f6"),
policyNumber: 2398439343,
policyType: “Homeowners”,
firstName : ”John",
lastName: “Smith”,
address: “52 Vanderbilt Ave.”,
homePhone: “123-456-7890”,
workPhone: “897-389-8987”,
openDate: ISODate("2013-02-15 10:00”)
…
}

> db.policies.find( { lastName: “Smith”}
address: “52 Vanderbilt Ave.” )
24
Bank Account JSON Document
{
_id : ObjectId("4e2e3f92268cdda473b628f6"),
accountID: 9874983789,
accountType: “Checking”,
firstName : ”John",
lastName: “Smith”,
address: “52 Vanderbilt Ave.”,
contactMethods: {
mobile: “389-897-8987”,
home: “983-893-3873”,
email: “john.smith@abc.com”,
work: “298-389-8983” }
openDate: ISODate("2013-02-15 10:00”)
…
}
> db.accts.find( { “contactMethods.mobile”: “983-893-3873” } )
25
Joint Bank Account Document
{
_id : ObjectId("4e2e3f92268cdda473b628f6"),
accountID: 9874983789,
accountType: “Checking”,
ownershipType: “Joint”
accountOwners: [
{ firstName : ”John",
lastName: “Smith”,
address: “52 Vanderbilt Ave.”, …},
{ firstName : ”Anne",
lastName: “Smith”,
address: “52 Vanderbilt Ave.”, …} ]
openDate: ISODate("2013-02-15 10:00”)
…
}
> db.accts.find( { accountOwners: {$elemMatch: {
lastName: “Smith”,
address: “52 Vanderbilt Ave.”}}} )
26
General document per customer per
account
{
_id : ObjectId("4e2e3f92268cdda473b628f6"),
sourceIDs: {
ABCSystemIDPart1: 8397897,
OR creditCardNumber: 8392384938391293
ABCSystemIDPart2: 2937430,
OR mortgageID: 2374389
OR policyID: 18374923
ABCSystemIDPart3: 932018 }
accountType: “Checking”,
accountOwners: [
{ firstName : ”John",
lastName: “Smith”,
contactMethods: [
{ type: “phone”, subtype: “mobile”, number: 8743927394},
{ type: “mail”, address: “58 3rd St.”, city: …} ]
possibleMatchCriteria: {
govtID: 2938932432, fullName: “johnsmith”, dob: … } },
{ firstName : ”Anne",
maidenName: “Collins”,
lastName: “Smith”, …} ],
openDate: ISODate("2013-02-15 10:00”),
accountFeatures { Overdraft: true, APR: 20, … }
}
27
Querying for single view
Index any fields: arrays, nested, etc
// Compound indexes
> db.accts.ensureIndex({accountID: 1, lastName:1})
// Index on embedded docs and arrays
>db.accts.ensureIndex( {contactMethods.mobile: 1})
// Index on any depth
> db.accts.ensureIndex( {“owners.matchcriteria.ssn”: 1} )

29

// Full text search
> db.accts.ensureIndex ( { address1: “text”,
address2: “text” } )
Query For First Product and Then All
// Customer knows his/her account number
> db.accts.find( {accountNumber: 9789732839} )
// Use looked up account to find other accounts
db.accts.find( {matchCriteria.ssn: 8973829438} )
// In reality, it’s more complicated
> db.accts.find({
$or: [ {mc.fullName: “johnsmith”, mc.dob: “01/01/1970”},
{mc.ssn: 8923784789},
{mc.homePhone: 29838923845}, … ] })

30
Query For All Products Without ID
// Customer only knows phone number
> db.accts.find({ contactMethods.number: 9789732839
lastName: “Smith” } )
// Confirm correct result w/ customer, then pull all accounts
// Same query as before to pull all accounts
> db.accts.find({
$or: [ {mc.fullName: “johnsmith”, mc.dob: “01/01/1970”},
{mc.ssn: 8923784789},
{mc.homePhone: 29838923845}, … ] })

31
Text Search Example
(e.g. address typo so do fuzzy match)
// Text search for address filtered by first name and NY
> db.ticks.runCommand(
“text”,
{ search: “vanderbilt ave. vander bilt”,
filter: {name: “Smith”,
city: “New York”} })

32
Analyzing/Aggregating Options
• Custom application code
– Run your queries, compute your results

• Aggregation framework
– Declarative, pipeline-based approach

• Native Map/Reduce in MongoDB
– Javascript functions distributed across cluster

• Hadoop Connector
– Offline batch processing/computation

33
Aggregate: Total Value of Accounts
//Find total value of each customer’s accounts for a given RM (or Agent) sorted by value

db.accts.aggregate(
{ $match: {relationshipManager: “Smith”}},
{ $group :
{ _id : “$ssn”,
totalValue: {$sum: ”$value”} }},
{ $sort: { totalValue: -1}} )

34
Why MongoDB is the most
capable?
Single View of a Customer –
Why MongoDB?
 Dynamic schema => can handle vastly different data together and
can keep improving and fixing issues over time easily
 High scale/performance => directly impacts customer experience or
CSR MTTR so every second counts
 Auto-sharding => can automatically add processing power as
customers and products are added
 Rich querying => supporting ends users directly requires multiple
ways of access and key/value is not sufficient
 Aggregation framework => database-supported roll-ups for analysis
on data hub for customer information by marketing, sales, etc.
 Map-reduce capability (Native MR or Hadoop Connector) => batch
analysis looking for patterns and opportunities in data hub
36
Why [Not] an RDBMS

37
Why [Not] Other NoSQL DBMSs

38
Summary of Value
Before MongoDB Solution
CSR Application
CSR Application
CSR Application
CSR Application

CSR Application
CSR Application

CSR Application
CSR Application
CSR Application
CSR Application

40
With MongoDB Solution

CSR Application
CSR Application

Single Customer
Single Customer
Portal
Portal

41
Short-term Value over the Long-Term
1. CSR Application
–
–
–
–
–

Minimize calls routed to other call centers
Shorter MTTR because CSR has all information
More efficient staffing because can pool CSRs better
More effective cross-sell/upsell
Better customer satisfaction

1. Customer portal
– Minimize calls needed at all
– Better customer service
– More effectively cross-sell/upsell
42
Short-term Value over the Long-Term
3. Regulatory Compliance Initiative
– Minimize KYC or other regulatory risks
– Turn compliance costs into costs savings or revenue
generation

3. Marketing
– Analyze buying patterns more completely
– Target much more accurately for better results

3. Relationship Manager or Agent Application
– Effectively cross-sell/upsell and increase wallet
share
– Provide better, more complete customer service
43
Summary
• MongoDB is the most capable for a single view of a
customer
• Dynamic schema can handle data from numerous
different systems all in one place
• Fast, flexible querying, analysis, & aggregation is
necessary to get maximum value
• High performance both on a single machine and
automatically across a cluster by auto-sharding
• MongoDB has all these features with low TCO
• 10gen has helped others with this and can help you
44
For More Information
Resource
MongoDB Downloads

www.mongodb.org/download

Free Online Training

education.mongodb.com

Webinars and Events

www.mongodb.com/events

White Papers

www.mongodb.com/white-papers

Customer Case Studies

www.mongodb.com/customers

Presentations

www.mongodb.com/presentations

Documentation

docs.mongodb.org

Additional Info
45

Location
User Data Management

info@mongodb.com
THANK YOU!
@SQLorNot
Talk to us
@MongoDBInc
@MongoDB
#MongoDB

More Related Content

PPTX
Webinar: How Financial Firms Create a Single Customer View with MongoDB
PPTX
Single view with_mongo_db_(lo)
PPTX
Operationalizing the Value of MongoDB: The MetLife Experience
PDF
Single View of the Customer
PPTX
Data Treatment MongoDB
PPTX
Creating a Single View: Overview and Analysis
PPTX
Creating a Single View Part 1: Overview and Data Analysis
PPTX
Best Practices for MongoDB in Today's Telecommunications Market
Webinar: How Financial Firms Create a Single Customer View with MongoDB
Single view with_mongo_db_(lo)
Operationalizing the Value of MongoDB: The MetLife Experience
Single View of the Customer
Data Treatment MongoDB
Creating a Single View: Overview and Analysis
Creating a Single View Part 1: Overview and Data Analysis
Best Practices for MongoDB in Today's Telecommunications Market

What's hot (20)

PPTX
Webinar: How Financial Services Organizations Use MongoDB
PPTX
MongoDB on Financial Services Sector
PDF
How Financial Services Organizations Use MongoDB
PPTX
Webinar: How to Drive Business Value in Financial Services with MongoDB
PDF
Solution Blueprint - Customer 360
PDF
Webinar: How Banks Manage Reference Data with MongoDB
PDF
Common MongoDB Use Cases
PDF
MongoDB Case Study in Healthcare
PPTX
Webinar: Position and Trade Management with MongoDB
DOCX
PPTX
Webinar: How MongoDB is Used to Manage Reference Data - May 2014
PDF
Data Marketplace - Rethink the Data
PPTX
Dell Technology World - IT as a Business - Multi-Cloud Strategy is your Product
PPT
Notes On Single View Of The Customer
PDF
The Connected Consumer – Real-time Customer 360
PDF
Big Data Paris - A Modern Enterprise Architecture
PDF
Building on Multi-Model Databases
PDF
Why a Data Services Marketplace is Critical for a Successful Data-Driven Ente...
PDF
Slides: NoSQL Data Modeling Using JSON Documents – A Practical Approach
PDF
Single Customer View
Webinar: How Financial Services Organizations Use MongoDB
MongoDB on Financial Services Sector
How Financial Services Organizations Use MongoDB
Webinar: How to Drive Business Value in Financial Services with MongoDB
Solution Blueprint - Customer 360
Webinar: How Banks Manage Reference Data with MongoDB
Common MongoDB Use Cases
MongoDB Case Study in Healthcare
Webinar: Position and Trade Management with MongoDB
Webinar: How MongoDB is Used to Manage Reference Data - May 2014
Data Marketplace - Rethink the Data
Dell Technology World - IT as a Business - Multi-Cloud Strategy is your Product
Notes On Single View Of The Customer
The Connected Consumer – Real-time Customer 360
Big Data Paris - A Modern Enterprise Architecture
Building on Multi-Model Databases
Why a Data Services Marketplace is Critical for a Successful Data-Driven Ente...
Slides: NoSQL Data Modeling Using JSON Documents – A Practical Approach
Single Customer View
Ad

Viewers also liked (16)

PPTX
Creating a Single View Part 2: Loading Disparate Source Data and Creating a S...
PPTX
Webinar: Realizing Omni-Channel Retailing with MongoDB - One Step at a Time
PPTX
How to deliver a Single View in Financial Services
PPTX
Lightning Talk: Real-Time Analytics from MongoDB
PPTX
Big Data : a 360° Overview
PDF
Marketing analytics for the Banking Industry
DOCX
Informatica
PPTX
Calculating ROI with Innovative eCommerce Platforms
PPTX
Advanced Analytics in Banking, CITI
PDF
Parquet Strata/Hadoop World, New York 2013
PDF
360° View of Your Customers
PDF
Efficient Data Storage for Analytics with Apache Parquet 2.0
PDF
Big Data Analytics for Banking, a Point of View
PDF
Distributed stream processing with Apache Kafka
PDF
Webinar: 10-Step Guide to Creating a Single View of your Business
PPTX
MongoDB Schema Design: Four Real-World Examples
Creating a Single View Part 2: Loading Disparate Source Data and Creating a S...
Webinar: Realizing Omni-Channel Retailing with MongoDB - One Step at a Time
How to deliver a Single View in Financial Services
Lightning Talk: Real-Time Analytics from MongoDB
Big Data : a 360° Overview
Marketing analytics for the Banking Industry
Informatica
Calculating ROI with Innovative eCommerce Platforms
Advanced Analytics in Banking, CITI
Parquet Strata/Hadoop World, New York 2013
360° View of Your Customers
Efficient Data Storage for Analytics with Apache Parquet 2.0
Big Data Analytics for Banking, a Point of View
Distributed stream processing with Apache Kafka
Webinar: 10-Step Guide to Creating a Single View of your Business
MongoDB Schema Design: Four Real-World Examples
Ad

Similar to Webinar: Making A Single View of the Customer Real with MongoDB (20)

PPTX
How Insurance Companies Use MongoDB
PPTX
Enterprise architectsview 2015-apr
PPT
How Retail Banks Use MongoDB
PPTX
Big Data Meetup by Chad Richeson
PPTX
Stream me to the Cloud (and back) with Confluent & MongoDB
PPTX
Webinar: How to Drive Business Value in Financial Services with MongoDB
PPTX
3 Ways Modern Databases Drive Revenue
PPTX
How Government Agencies are Using MongoDB to Build Data as a Service Solutions
PPTX
Mobility: It's Time to Be Available for HER
PPTX
Customer Intelligence_ Harnessing Elephants at Transamerica Presentation (1)
PDF
EVOLVING PATTERNS IN BIG DATA - NEIL AVERY
PPTX
An Enterprise Architect's View of MongoDB
PDF
Why Your Data Science Architecture Should Include a Data Virtualization Tool ...
PDF
MongoDB .local Toronto 2019: MongoDB – Powering the new age data demands
PPTX
MongoDB in a Mainframe World
PPTX
Big Data Everywhere Chicago: Platfora - Practices for Customer Analytics on H...
PPTX
Datastax - The Architect's guide to customer experience (CX)
PPTX
Webinar: An Enterprise Architect’s View of MongoDB
PPTX
Quantifying Business Advantage: The Value of Database Selection
PDF
MongoDB .local Chicago 2019: MongoDB – Powering the new age data demands
How Insurance Companies Use MongoDB
Enterprise architectsview 2015-apr
How Retail Banks Use MongoDB
Big Data Meetup by Chad Richeson
Stream me to the Cloud (and back) with Confluent & MongoDB
Webinar: How to Drive Business Value in Financial Services with MongoDB
3 Ways Modern Databases Drive Revenue
How Government Agencies are Using MongoDB to Build Data as a Service Solutions
Mobility: It's Time to Be Available for HER
Customer Intelligence_ Harnessing Elephants at Transamerica Presentation (1)
EVOLVING PATTERNS IN BIG DATA - NEIL AVERY
An Enterprise Architect's View of MongoDB
Why Your Data Science Architecture Should Include a Data Virtualization Tool ...
MongoDB .local Toronto 2019: MongoDB – Powering the new age data demands
MongoDB in a Mainframe World
Big Data Everywhere Chicago: Platfora - Practices for Customer Analytics on H...
Datastax - The Architect's guide to customer experience (CX)
Webinar: An Enterprise Architect’s View of MongoDB
Quantifying Business Advantage: The Value of Database Selection
MongoDB .local Chicago 2019: MongoDB – Powering the new age data demands

More from MongoDB (20)

PDF
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
PDF
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
PDF
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
PDF
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
PDF
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
PDF
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
PDF
MongoDB SoCal 2020: MongoDB Atlas Jump Start
PDF
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
PDF
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
PDF
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
PDF
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
PDF
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
PDF
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
PDF
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
PDF
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
PDF
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
PDF
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
PDF
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
KodekX | Application Modernization Development
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation theory and applications.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Cloud computing and distributed systems.
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KodekX | Application Modernization Development
Chapter 3 Spatial Domain Image Processing.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation theory and applications.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
MIND Revenue Release Quarter 2 2025 Press Release
Unlocking AI with Model Context Protocol (MCP)
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Cloud computing and distributed systems.

Webinar: Making A Single View of the Customer Real with MongoDB

  • 1. Making A Single View of the Customer Real with MongoDB Marcelo Rocha DaSilva Senior Solutions Architect, MongoDB @SQLorNot
  • 2. MongoDB The leading NoSQL database General Purpose 2 Document Database OpenSource
  • 3. MongoDB Vision To provide the best database for how we build and run apps today Build –New and complex data –Flexible –New languages –Faster development 3 Run –Big Data scalability –Real-time –Commodity hardware –Cloud
  • 4. Fortune 500 & Global 500 • 10 of the Top Financial Services Institutions • 10 of the Top Electronics Companies • 10 of the Top Media and Entertainment Companies • 8 of the Top Retailers • 6 of the Top Telcos • 5 of the Top Technology Companies • 4 of the Top Healthcare Companies 4
  • 5. Global Community 5,000,000+ MongoDB Downloads 100,000+ Online Education Registrants 20,000+ MongoDB User Group Members 20,000+ MongoDB Days Attendees 20,000+ MongoDB Management Service (MMS) Users 5
  • 6. MongoDB and Enterprise IT Stack CRM, ERP, Collaboration, Mobile, BI Data Management Online Data Offline Data RDBMS Infrastructure OS & Virtualization, Compute, Storage, Network 6 Security & Auditing Management & Monitoring Applications
  • 8. MongoDB and Enterprise IT Strategy Legacy Apps Strategic On-Premise SaaS, Mobile, Social Oracle MongoDB Teradata Hadoop Compute Scale-Up Server Commodity HW / Cloud Storage SAN Local Storage / Cloud Network Routers and Switches Software-Defined Networks Database Offline Data 8
  • 9. MongoDB Features • JSON Document Model with Dynamic Schemas • Full, Flexible Index Support and Rich Queries • Auto-Sharding for Horizontal Scalability • Built-In Replication for High Availability • Text Search • Advanced Security • Aggregation Framework and MapReduce • Large Media Storage with GridFS 9
  • 10. MongoDB Business Value Enabling New Apps Faster Time to Market 10 Better Customer Experience Lower TCO
  • 11. Data Integration • Data Integration is about processes and knowing the data well. • Old technologies make progress very difficult and slow • MongoDB enables easy/incremental approach to Enterprise Data View 11
  • 12. • Extract customer info from many source systems as often as desired • Load into one database and application • Link data together for each customer • Query for all customer and associated product info at once • Enable CSRs, RMs/Agents, customers, etc. to know all customer and product information at once 13
  • 13. Single View of a Customer – Why MongoDB? • Dynamic schema => can handle vastly different data together and can keep improving and fixing issues over time easily • High scale/performance => directly impacts customer experience or CSR MTTR so every second counts • Auto-sharding => can automatically add processing power as customers and products are added • Rich querying => supporting ends users directly requires multiple ways of access and key/value is not sufficient • Aggregation framework => database-supported roll-ups for analysis on data hub for customer information by marketing, sales, etc. • Map-reduce capability (Native MR or Hadoop Connector) => batch analysis looking for patterns and opportunities in data hub 14
  • 14. And We’ve Done it Before • MetLife Leapfrogs Insurance Industry with MongoDB-Powered Big Data Application • New York—May 7, 2013—10gen, the MongoDB company, today announced that MetLife, Inc. selected MongoDB as the data engine for “The Wall”, an innovative customer service application that went live last month. … • http://www.10gen.com/press/metlife-leapfrogs-insurance-industry-mongodbpowered-big-data-application 15
  • 15. High Level Data Flow Source Source database 11 database Source Source database 22 database ETL or Custom app OLTP/real-time access Document •per product •per customer CSR Application CSR Application Customer Customer Application Application … Agent/RM Agent/RM Application Application Source Source database N database N 16 Queue to Update Queue to Update Source Systems Source Systems
  • 16. Case Study: Tier 1 Global Insurance Provider Single global view of customers’ product portfolio and interactions Problem • Siloed view of customer across products • Changing policy definitions takes months or more • Source systems are critical but stuck on old technology 17 Why MongoDB • Leverage dynamic schema to include evolving policy details Results • Able to deliver in 3 months with $2M, when previous attempts costing $25M failed with no results • One data hub across all • Unified customer view for contact channels for consistent customer view call center and web site with changes available to • Leverage replication for all channels high availability to reduce • Dramatically lower cost pressure on ops team through less and shorter • Leverage sharding to calls scale linearly
  • 17. Case Study: Tier 1 Global Insurance Provider Source Source database 11 database Custom app exports JSON OLTP/real-time access CSR Application CSR Application Source Source database 22 database Customer Customer Application Application … Source Source Database 40 Database 40 18 Document •per product •per customer Agent/RM Agent/RM Future phases Future phases Application Application
  • 18. Pre requisite Data Analysis
  • 19. What questions to answer to feed into design? • What is the scope of customer info to aggregate? – Start with a manageable amount – Focus on satisfying particular valuable purposes (e.g minimizing MTTR and re-routed calls) – Need executive political support to get time from all groups • How to link data across customers and products? – Identify the rules both exact and fuzzy – Specify common fields – Try to normalize but dynamic schema is tolerant – Can always refine rules as you go even based on human feedback 20
  • 20. Load Data into MongoDB
  • 21. Customer Records in Source Systems, e.g. banking Personal Bank Accounts Personal Bank Accounts •Account ID •Account ID •Open date •Open date •First name •First name •Last name •Last name •Joint First Name •Joint First Name •Joint Last Name •Joint Last Name •Joint SSN •Joint SSN •Address •Address •City •City •State •State •Zip •Zip •Address 22 •Address •Home phone •Home phone •Work phone •Work phone •APR •APR •Account type •Account type •Branch ID •Branch ID •Region ID •Region ID •…. •…. 22 Credit Cards Credit Cards •CC number •CC number •SSN 11 •SSN •Full name 11 •Full name •Address 11 •Address •City 11 •City •State 11 •State •Zip 11 •Zip •SSN 22 •SSN •Full Name 22 •Full Name •Address 22 •Address •City 22 •City •State 22 •State •Zip 22 •Zip •Primary phone 11 •Primary phone •Mobile phone 22 •Mobile phone •Issue date •Issue date •Reward type •Reward type •…. •…. Mortgages Mortgages •Mortgage ID •Mortgage ID •Borrower name •Borrower name •Borrower SSN •Borrower SSN •Borrower address •Borrower address •Borrower city •Borrower city •Borrower state •Borrower state •Borrower zip •Borrower zip •Co-borrower SSN •Co-borrower SSN •Co-borrower name •Co-borrower name •Co-borrower address •Co-borrower address •Co-borrower city •Co-borrower city •Co-borrower state •Co-borrower state •Co-borrower Zzp •Co-borrower Zzp •Mobile phone •Mobile phone •Effective date •Effective date •Term •Term •Interest •Interest •Money down •Money down •Principal loan •Principal loan •Total loan •Total loan •…. •….
  • 22. Bank Account JSON Document { _id : ObjectId("4e2e3f92268cdda473b628f6"), accountID: 9874983789, accountType: “Checking”, firstName : ”John", lastName: “Smith”, address: “52 Vanderbilt Ave.”, homePhone: “123-456-7890”, workPhone: “897-389-8987”, openDate: ISODate("2013-02-15 10:00”) … } > db.accts.find( { accountID: 9874983789} ) 23
  • 23. P&C Policy Document { _id : ObjectId("4e2e3f92268cdda473b628f6"), policyNumber: 2398439343, policyType: “Homeowners”, firstName : ”John", lastName: “Smith”, address: “52 Vanderbilt Ave.”, homePhone: “123-456-7890”, workPhone: “897-389-8987”, openDate: ISODate("2013-02-15 10:00”) … } > db.policies.find( { lastName: “Smith”} address: “52 Vanderbilt Ave.” ) 24
  • 24. Bank Account JSON Document { _id : ObjectId("4e2e3f92268cdda473b628f6"), accountID: 9874983789, accountType: “Checking”, firstName : ”John", lastName: “Smith”, address: “52 Vanderbilt Ave.”, contactMethods: { mobile: “389-897-8987”, home: “983-893-3873”, email: “john.smith@abc.com”, work: “298-389-8983” } openDate: ISODate("2013-02-15 10:00”) … } > db.accts.find( { “contactMethods.mobile”: “983-893-3873” } ) 25
  • 25. Joint Bank Account Document { _id : ObjectId("4e2e3f92268cdda473b628f6"), accountID: 9874983789, accountType: “Checking”, ownershipType: “Joint” accountOwners: [ { firstName : ”John", lastName: “Smith”, address: “52 Vanderbilt Ave.”, …}, { firstName : ”Anne", lastName: “Smith”, address: “52 Vanderbilt Ave.”, …} ] openDate: ISODate("2013-02-15 10:00”) … } > db.accts.find( { accountOwners: {$elemMatch: { lastName: “Smith”, address: “52 Vanderbilt Ave.”}}} ) 26
  • 26. General document per customer per account { _id : ObjectId("4e2e3f92268cdda473b628f6"), sourceIDs: { ABCSystemIDPart1: 8397897, OR creditCardNumber: 8392384938391293 ABCSystemIDPart2: 2937430, OR mortgageID: 2374389 OR policyID: 18374923 ABCSystemIDPart3: 932018 } accountType: “Checking”, accountOwners: [ { firstName : ”John", lastName: “Smith”, contactMethods: [ { type: “phone”, subtype: “mobile”, number: 8743927394}, { type: “mail”, address: “58 3rd St.”, city: …} ] possibleMatchCriteria: { govtID: 2938932432, fullName: “johnsmith”, dob: … } }, { firstName : ”Anne", maidenName: “Collins”, lastName: “Smith”, …} ], openDate: ISODate("2013-02-15 10:00”), accountFeatures { Overdraft: true, APR: 20, … } } 27
  • 28. Index any fields: arrays, nested, etc // Compound indexes > db.accts.ensureIndex({accountID: 1, lastName:1}) // Index on embedded docs and arrays >db.accts.ensureIndex( {contactMethods.mobile: 1}) // Index on any depth > db.accts.ensureIndex( {“owners.matchcriteria.ssn”: 1} ) 29 // Full text search > db.accts.ensureIndex ( { address1: “text”, address2: “text” } )
  • 29. Query For First Product and Then All // Customer knows his/her account number > db.accts.find( {accountNumber: 9789732839} ) // Use looked up account to find other accounts db.accts.find( {matchCriteria.ssn: 8973829438} ) // In reality, it’s more complicated > db.accts.find({ $or: [ {mc.fullName: “johnsmith”, mc.dob: “01/01/1970”}, {mc.ssn: 8923784789}, {mc.homePhone: 29838923845}, … ] }) 30
  • 30. Query For All Products Without ID // Customer only knows phone number > db.accts.find({ contactMethods.number: 9789732839 lastName: “Smith” } ) // Confirm correct result w/ customer, then pull all accounts // Same query as before to pull all accounts > db.accts.find({ $or: [ {mc.fullName: “johnsmith”, mc.dob: “01/01/1970”}, {mc.ssn: 8923784789}, {mc.homePhone: 29838923845}, … ] }) 31
  • 31. Text Search Example (e.g. address typo so do fuzzy match) // Text search for address filtered by first name and NY > db.ticks.runCommand( “text”, { search: “vanderbilt ave. vander bilt”, filter: {name: “Smith”, city: “New York”} }) 32
  • 32. Analyzing/Aggregating Options • Custom application code – Run your queries, compute your results • Aggregation framework – Declarative, pipeline-based approach • Native Map/Reduce in MongoDB – Javascript functions distributed across cluster • Hadoop Connector – Offline batch processing/computation 33
  • 33. Aggregate: Total Value of Accounts //Find total value of each customer’s accounts for a given RM (or Agent) sorted by value db.accts.aggregate( { $match: {relationshipManager: “Smith”}}, { $group : { _id : “$ssn”, totalValue: {$sum: ”$value”} }}, { $sort: { totalValue: -1}} ) 34
  • 34. Why MongoDB is the most capable?
  • 35. Single View of a Customer – Why MongoDB?  Dynamic schema => can handle vastly different data together and can keep improving and fixing issues over time easily  High scale/performance => directly impacts customer experience or CSR MTTR so every second counts  Auto-sharding => can automatically add processing power as customers and products are added  Rich querying => supporting ends users directly requires multiple ways of access and key/value is not sufficient  Aggregation framework => database-supported roll-ups for analysis on data hub for customer information by marketing, sales, etc.  Map-reduce capability (Native MR or Hadoop Connector) => batch analysis looking for patterns and opportunities in data hub 36
  • 36. Why [Not] an RDBMS 37
  • 37. Why [Not] Other NoSQL DBMSs 38
  • 39. Before MongoDB Solution CSR Application CSR Application CSR Application CSR Application CSR Application CSR Application CSR Application CSR Application CSR Application CSR Application 40
  • 40. With MongoDB Solution CSR Application CSR Application Single Customer Single Customer Portal Portal 41
  • 41. Short-term Value over the Long-Term 1. CSR Application – – – – – Minimize calls routed to other call centers Shorter MTTR because CSR has all information More efficient staffing because can pool CSRs better More effective cross-sell/upsell Better customer satisfaction 1. Customer portal – Minimize calls needed at all – Better customer service – More effectively cross-sell/upsell 42
  • 42. Short-term Value over the Long-Term 3. Regulatory Compliance Initiative – Minimize KYC or other regulatory risks – Turn compliance costs into costs savings or revenue generation 3. Marketing – Analyze buying patterns more completely – Target much more accurately for better results 3. Relationship Manager or Agent Application – Effectively cross-sell/upsell and increase wallet share – Provide better, more complete customer service 43
  • 43. Summary • MongoDB is the most capable for a single view of a customer • Dynamic schema can handle data from numerous different systems all in one place • Fast, flexible querying, analysis, & aggregation is necessary to get maximum value • High performance both on a single machine and automatically across a cluster by auto-sharding • MongoDB has all these features with low TCO • 10gen has helped others with this and can help you 44
  • 44. For More Information Resource MongoDB Downloads www.mongodb.org/download Free Online Training education.mongodb.com Webinars and Events www.mongodb.com/events White Papers www.mongodb.com/white-papers Customer Case Studies www.mongodb.com/customers Presentations www.mongodb.com/presentations Documentation docs.mongodb.org Additional Info 45 Location User Data Management info@mongodb.com

Editor's Notes

  • #5: Customers (not just users)
  • #7: This is where MongoDB fits into the existing enterprise IT stack MongoDB is an operational data store used for online data, in the same way that Oracle is an operational data store. It supports applications that ingest, store, manage and even analyze data in real-time. (Compared to Hadoop and data warehouses, which are used for offline, batch analytical workloads.)
  • #9: MongoDB is aligned with strategic IT initiatives – like new apps in mobile, etc.; commodity hardware and cloud computing; Hadoop; and so on Just like enterprises are focusing now on apps in mobile, SaaS, and social, and spending less time on innovating on legacy apps… Enterprises are increasingly looking at moving away from Oracle and other proprietary systems to modern data stores like MongoDB to support new app development (and even for migrate legacy applications)
  • #10: MongoDB provides agility, scalability, and performance without sacrificing the functionality of relational databases, like full index support and rich queriesIndexes: secondary, compound, text search, geospatial, and more
  • #12: Customers (not just users)
  • #23: JSON document – contains key value pairs, different types, values can also be arrays and other documents
  • #24: JSON document – contains key value pairs, different types, values can also be arrays and other documents
  • #25: JSON document – contains key value pairs, different types, values can also be arrays and other documents
  • #26: JSON document – contains key value pairs, different types, values can also be arrays and other documents
  • #27: JSON document – contains key value pairs, different types, values can also be arrays and other documents
  • #28: JSON document – contains key value pairs, different types, values can also be arrays and other documents