Oracle NoSQL DB Overview & Use Cases -- OSWUG -- 2-13-13
Oracle NoSQL DB Overview & Use Cases -- OSWUG -- 2-13-13
DECIDE ACQUIRE
Acquire all
available data
ANALYZE ORGANIZE
Minor Key tweets birthday Minor Key inbox sent Minor Key today yesterday
Value tweet001 tweet002 1970-1-1 Value thread001 thread002 thread002 Value CDR001 CDR002 CDR003
• Transaction Scope
– Single API call
– All records must have the same major key
– Support for multiple operations within a transaction
• Iteration operations
• Returns multiple results in a single API call
• Get full records or just the keys
NoSQL DB Driver
Mixed Throughput
•1.25M ops/sec 1,400,000
Throughput (ops/sec)
400,000
1
• 95% read, 5% update 200,000
0 0
• Low latency 6 (2x3) 12 (4x3) 24 (8x3) 30 (10x3)
Cluster Size
• High Scalability
Throughput (ops/sec) Write Latency (ms)
Read Latency (ms)
Oracle Event
Rebalancing C-API
Processing
SNMP/JMX
33 Copyright © 2012, Oracle and/or its affiliates. All rights Oracle Confidential
reserved.
Passoker Sales Win
Global Sports Betting application
• Challenges
– Provide a platform for real-time sports data feeds
– Deploy scalable, efficient, and highly technology for incoming data stream
– Establish a technology to receive XML files and rapidly process them for relevance
– Reduce development times and simplify day-to-day administration
– Scale-out the platform as demand grows and players take up gaming in greater numbers
• Benefits of Oracle NoSQL Database
– Reduced development and implementation time by 75%
– Simplified day-to-day administration
– Simplified rapid correlation between events and gaming
– Improved operational efficiency due to ongoing commercial support
– Eliminated daily maintenance related to single node point-of-failure
– Enabled more application development and integration, better testing, shorter time to market
Scenario
• User clicks on a web page
• Cookie used to look up user profile
• Appropriate ad placed on page
Ad to be
Look Up User Profile Displayed
Key Features
• Fast response times and high throughput
NoSQL Expert
• High availability and scalability System
DB
• Simple data, flexible data model
• Connectivity to Big Data Analytics and Discovery
Scenario
• Patient uses multiple devices at home
• Medical data periodically sent to NoSQL DB
• App monitors and alerts patient state
• Alerts sent to medical or emergency
personnel, recorded in profile Capture Patient
Monitoring Data
Key Features
• High performance and high availability NoSQL Alerting
• High throughput event capture DB System
• Huge volumes of data
• Simple data, flexible data model
Scenario
• Credit card swipe at point of sale (PoS)
• Look up customer profile (interactive)
• Authorization systems determines approval
• Approval sent to PoS and recorded Look Up
Authorization Approval
Key Features Server Status
• Fast response time, high throughput
Record
• High availability and scalability NoSQL DB
Transaction
• Huge transaction rates, simple data
• Connectivity to Big Data Analytics and Discovery
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Use Case – Online Display Advertising
• Problem
– Very low latency requirements – Publishers require < 75 ms response time from the ad
serving platform
– Extreme data velocity – Multi-millions of requests per second
– Highly available – 24/7 sites
– Revenue maximization – Deliver the most relevant ad to maximize revenue
Ad Server Application
NoSQL DB Driver
Multi-Dimensional
Reporting
• Oracle Database
– Campaign booking information – hundreds of users
– Real time business metrics for publishers and advertisers
– Business financials for ad serving company
• Year to date revenue, quarter over quarter etc., Billing, SOX reporting for public companies
• Hadoop
– Unique visits (select count(distinct)) over many terabytes of data
– Inventory forecasting across behavioral segments
• Problem
– Low latency requirements – Page loads in less than one second to retain users. Potentially
hundreds of queries to populate page data.
– Ease of scale – Automatic partitioning/scaling as user base grows
– Highly available – 24/7 operations (e.g. Amazon.com)
– Efficient state management – Application state info must extremely efficient
• Solution
– Cookie store – A NoSQL database is utilized to store state and recommendation information
(derived offline from Hadoop) by cookie
– Profile management – rich user profile and history stored in NoSQL
– Recommendations and initial state – Offline recommendations as well as initial state (e.g.
recent products browsed) are read at page load time
– State updated – The user’s state is updated in real time as browsing occurs
Oracle Database
• Oracle Database
– Order booking – Customer already “acquired”
– Master product catalog
– Business financial reporting
• Year to date revenue, quarter over quarter etc., Quarterly auditing, SOX reporting for public companies
• Hadoop
– Product recommendations
– Probability of purchase
• Goal
– Deliver a personal experience to every user
– Each user profile must be retrieved and
updated with minimal latency
• Challenge
– Need to service this at web scale
– 100k’s customers buying 100k’s movies
• Value
– millisecond latency, on-demand scalability,
high-throughput, lowest $/ops
Q&A
Batch-Oriented Real-Time
Represents a partition