SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
The Future of Distributed Databases
Barry Morris, NuoDB Inc

Copyright © 2013 NuoDB
GOOGLE AdWords
AdWords

AdWords Background:
‣ GOOGLE’s Primary Revenue Source
‣ Pay-per-click advertising
‣ Based on search string content
‣ $42.5bn in 2012
Very Demanding Application:
‣ Multiple Apps/Single Database
‣ Elastic Capacity On-demand
‣ Geo-Distributed
‣ Extreme Transactions, Analytics, Concurrency
‣ Continuous Availability

F1

“When we sought a replacement for Google’s MySQL data store for the AdWords product, [a KV Store] was simply not feasible:
the complexity of dealing with a non-ACID data store in every part of our business logic would be too great, and there was
simply no way our business could function without SQL queries. Instead of going NoSQL, we built F1.”
- GOOGLE F1 White Paper, 2013

Copyright © 2013 NuoDB

!2
AdWords Epitomises NextGen Apps
Q: How many other apps are targeted
at a global audience, with requirements
for elastic capacity on-demand,
transactional and analytical workloads,
geo-distributed requirements, and
continuous availability?
A: Most apps are headed that way.

‣

40% of the world’s population on the internet today - Most developed
countries it is over 80%

‣

$75bn devices on the internet by 2020: Every car, watch, refrigerator, TV set
and toothbrush

‣

Every WebApp, Mobile App and IoT app will be used in a geo-distributed
fashion, with transactions, analytics and continuous availability.

‣

In other words AdWords-like applications will be everywhere
Copyright © 2013 NuoDB

!3
Customer: Fathom Voice

Copyright © 2013 NuoDB

!4
Fathom Voice
“We needed a single, logical database that could be
shared across multiple servers in different geographies;
updated in real-time; and automatically scaled out during
peak demand to handle increased traffic, then back in
during off-peak hours”	


!
“We were told to stop trying to change the way data management works and conform
our service to the existing database solutions. But, that’s not who we are.”	


!
- Cameron Weeks, CEO Fathom Voice

Copyright © NuoDB 2013

!5
Distributed Transactions
TPS

Time

!

‣
‣
‣
‣
‣

Dynamically add/delete machines to manage capacity
No sharding, no replication, no memcached
Resilience to failure
Single logical database
Geo-distributed Operation

Copyright © NuoDB 2013

!6
Distributed Transactions: Designs
Approach
Key Idea

Shared Disk

Shared-Nothing/
Sharded

Synchronous
Replication

Durable
Distributed Cache

Sharing a file
system.

Independent
databases for
disjoint subsets of
the data.

Committing data
transactionally to
multiple locations
before returning.

Replicating Data
in memory ondemand.

Topology

Examples

ORACLE RAC, Tandem
Nonstop SQL, MS Sql
Server Cluster,
ScaleDB

!

Clustrix, VoltDB,
MemSQL, Xkoto,
ScaleBase, MongoDB,
and most NoSQL/
NewSQL solutions.

!

Note: Most major web
properties include
custom sharded
MySQL or sharded
PostgreSQL, including
Facebook, GOOGLE,
Wikipedia, Amazon,
Flickr, Box,net, Heroku,
...
Copyright © 2013 NuoDB

F1
!7
Distributed Transactions: Designs
Approach
Key Idea

Shared Disk

Shared-Nothing/
Sharded

Synchronous
Replication

Durable
Distributed Cache

Sharing a file
system.

Independent
databases for
disjoint subsets of
the data.

Committing data
transactionally to
multiple locations
before returning.

Replicating Data
in memory ondemand.

Topology

Examples

ORACLE RAC, Tandem
Nonstop SQL, MS Sql
Server Cluster,
ScaleDB

!

Clustrix, VoltDB,
MemSQL, Xkoto,
ScaleBase, MongoDB,
and most NoSQL/
NewSQL solutions.

!

Note: Most major web
properties include
custom sharded
MySQL or sharded
PostgreSQL, including
Facebook, GOOGLE,
Wikipedia, Amazon,
Flickr, Box,net, Heroku,
...
Copyright © 2013 NuoDB

F1
!8
Distributed Transactions: Designs
Approach
Key Idea

Shared Disk

Shared-Nothing/
Sharded

Synchronous
Replication

Durable
Distributed Cache

Sharing a file
system.

Independent
databases for
disjoint subsets of
the data.

Committing data
transactionally to
multiple locations
before returning.

Replicating Data
in memory ondemand.

Topology

Examples

ORACLE RAC, Tandem
Nonstop SQL, MS Sql
Server Cluster,
ScaleDB

!

Clustrix, VoltDB,
MemSQL, Xkoto,
ScaleBase, MongoDB,
and most NoSQL/
NewSQL solutions.

!

Note: Most major web
properties include
custom sharded
MySQL or sharded
PostgreSQL, including
Facebook, GOOGLE,
Wikipedia, Amazon,
Flickr, Box,net, Heroku,
...
Copyright © 2013 NuoDB

F1
!9
Distributed Transactions: Designs
Approach
Key Idea

Shared Disk

Shared-Nothing/
Sharded

Synchronous
Replication

Durable
Distributed Cache

Sharing a file
system.

Independent
databases for
disjoint subsets of
the data.

Committing data
transactionally to
multiple locations
before returning.

Replicating Data
in memory ondemand.

Topology

Examples

ORACLE RAC, Tandem
Nonstop SQL, MS Sql
Server Cluster,
ScaleDB

!

Clustrix, VoltDB,
MemSQL, Xkoto,
ScaleBase, MongoDB,
and most NoSQL/
NewSQL solutions.

!

Note: Most major web
properties include
custom sharded
MySQL or sharded
PostgreSQL, including
Facebook, GOOGLE,
Wikipedia, Amazon,
Flickr, Box,net, Heroku,
...
Copyright © 2013 NuoDB

F1
!10
Durable Distributed Cache
‣
‣

ATOMS are loaded on demand and ejected when convenient (a la
distributed cache)

‣

ATOMS are autonomous and communicate as peers

‣

ATOMS can serialize themselves to permanent backing stores

‣

‣

All state is maintained as in-memory smart-objects called ATOMS

ATOMS can maintain any number of replicas of themselves

Add as many TEs/SMs as you
like

‣

No single point of failure

‣

Unlimited databases per Domain

‣

Single Console Management

TE

Distributed I/O, eg Hadoop
HDFS

‣

TE

TE

TE
TE
SM

Applications

SM

NuoDB Security/Admin Domain
(TE = Transaction Engine, SM = Storage Manager)

Copyright © 2013 NuoDB

!11
It’s Not about SQL/NoSQL

Pluggable
SQL/NoSQL
Layer
Distributed
Transaction
Layer

{
{

The problem of distributed transactions is orthogonal to the choice of data model,
language or access methods.

Copyright © 2013 NuoDB

!12
Elastic Scalability
Twitter:
‣ Over 140 million active users
‣ 4629 tweets per second (25,000 at peak)
‣ Three million new rows created per day
‣ 400 million tweets per day, replicated four
times

!

Paypal:
‣ Over 100 million active users.
‣ 256-byte reads in under 10 miliseconds.
‣ Global replication of writes in under 350
miliseconds for a single 32-bit integer.
‣ Runs on Amazon Web Services in US, Japan
and European data centres.

!

Facebook:
‣ Over 950 million active users
‣ Rows read per second: 450 million (at peak)
‣ Queries per second: 13 million (at peak)
‣ Query response times: 4ms reads, 5ms
writes
‣ Rows changed per second: 3.5 million (at
peak)

!

(All 2011/2012 numbers)

‣

NuoDB scales to over 100 server machines

‣

Scalability is instant and elastic

‣

Scales-out and scales-in

‣

TPS numbers exceed 10m TPS on $100k of hardware

‣

Also scales on AWS, GCE etc. Public demo of 32 nodes with GOOGLE

‣

Now showing linear scalablity on TPC-C type workloads (DBT-2)

‣

Scalability demonstrated with heavier duty customer applications (eg Axway, Dassault Systémes)
Copyright © 2013 NuoDB

!13
Continuous Availability

‣
‣
‣
‣

‣
‣
‣
Copyright © 2013 NuoDB

Self-healing
No single point of failure
Fully distributed control
Arbitrarily redundant:
‣ Data
‣ Control
‣ Admin
Online backup
Online schema evolution
Rolling upgrades
!14
Geo-Distribution

‣
‣
‣
‣
‣
‣
Copyright © NuoDB 2013

Active/Active	

ACID Semantics	

Transactional Consistency 	

N-Way Redundant	

Local User Latency	

Asynch WAN Comms	

!15
Customer: Fathom Voice
“NuoDB is an entirely new database architecture, which replicates
data in real time for an unlimited number of nodes. That is the
most important piece for us. We can have all of our data
everywhere and it can be updated in real-time.”	

!

- Cameron Weeks, CEO Fathom Voice

Copyright © NuoDB 2013

!16
Customer: Fathom Voice
Sydney

Singapore

Virginia

Oregon

Ireland

SQL App

SQL App

SQL App

SQL App

SQL App

B

B

B

B

B

TE … TE

TE … TE

TE … TE

TE … TE

TE … TE

SM

SM

SM

SM

SM

Geo Database
• 
• 
• 
• 

Brokers direct local apps to local TEs
TEs maintain local data in memory
All SMs have complete consistent state of database
Commit is synchronous in the local region only

Copyright © NuoDB 2013

!17
Customer - Fathom Voice
Proposal
Generator

Go.Fathom
Voice.Com

Enrollment

Web Clients

EN
Hardware
FathomRB
Provision

Provision

FathomVoice

VoiceMail

VBX

Carrier

VBX
Inbound SBC

VBX

Outbound
SBC

...
Carrier

VBX Test

SIP Monitor

Copyright © NuoDB 2013

!18
Customer Example - Fathom Voice

Problem
• 

• 

• 

Growing global VoIP
customer base; growing
latency, data consistency
and billing data issues

Solution
• 

Geo-distribute a single
logical database

• 

Deliver lower latency,
scale out/in easily in the
AWS cloud, reduced
administration

Competitive
differentiation and
market expansion
Ability to enhance app
hampered by DBMS
limitations (MySQL,
Amazon RDS)

• 

Greater flexibility in the
database, less burden
placed in the app

Copyright © 2013 NuoDB

Benefits
• 

Cuts latency; presents
same data to co-workers
in all locations

• 

Makes service faster,
more flexible, provides
built in HA - all in AWS

• 

Customer can enhance
VoIP service without
working around DBMS
flaws

!19
Some Other Examples

Copyright © 2013 NuoDB

!20
Parting Thoughts
“The more than 50 software makers that crowded into the red-hot
application server market a year ago have consolidated and clear
leaders are beginning to emerge”!

!
- Wylie Wong, CNET News, December 1999

‣
‣
‣

18 Months later there were only a handful of credible offerings 	

Expect the NextGen database market to consolidate	

Expect the winning products to deliver consolidated features, and for
the terms NoSQL and NewSQL to go away	


‣
‣

Expect distributed transactions to be the central technical challenge	

GOOGLE are moving their other applications to GOOGLE F1 

=> Expect the leading NextGen databases to evolve towards F1
Copyright © 2013 NuoDB

!21
Copyright © 2013 NuoDB

!22

Contenu connexe

Tendances

Application Development with Apache Cassandra as a Service
Application Development with Apache Cassandra as a ServiceApplication Development with Apache Cassandra as a Service
Application Development with Apache Cassandra as a Service
WSO2
 
Postgres_9.0 vs MySQL_5.5
Postgres_9.0 vs MySQL_5.5Postgres_9.0 vs MySQL_5.5
Postgres_9.0 vs MySQL_5.5
Trieu Dao Minh
 

Tendances (20)

Run Cloud Native MySQL NDB Cluster in Kubernetes
Run Cloud Native MySQL NDB Cluster in KubernetesRun Cloud Native MySQL NDB Cluster in Kubernetes
Run Cloud Native MySQL NDB Cluster in Kubernetes
 
Databases in the Cloud
Databases in the CloudDatabases in the Cloud
Databases in the Cloud
 
Application Development with Apache Cassandra as a Service
Application Development with Apache Cassandra as a ServiceApplication Development with Apache Cassandra as a Service
Application Development with Apache Cassandra as a Service
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL Azure
 
Chapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choicesChapter1: NoSQL: It’s about making intelligent choices
Chapter1: NoSQL: It’s about making intelligent choices
 
Cassandra an overview
Cassandra an overviewCassandra an overview
Cassandra an overview
 
Scaling SQL and NoSQL Databases in the Cloud
Scaling SQL and NoSQL Databases in the Cloud Scaling SQL and NoSQL Databases in the Cloud
Scaling SQL and NoSQL Databases in the Cloud
 
Cassandra Community Webinar: From Mongo to Cassandra, Architectural Lessons
Cassandra Community Webinar: From Mongo to Cassandra, Architectural LessonsCassandra Community Webinar: From Mongo to Cassandra, Architectural Lessons
Cassandra Community Webinar: From Mongo to Cassandra, Architectural Lessons
 
Technology Overview
Technology OverviewTechnology Overview
Technology Overview
 
Cassandra Architecture FTW
Cassandra Architecture FTWCassandra Architecture FTW
Cassandra Architecture FTW
 
Sql vs NoSQL
Sql vs NoSQLSql vs NoSQL
Sql vs NoSQL
 
Aruman Cassandra database
Aruman Cassandra databaseAruman Cassandra database
Aruman Cassandra database
 
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAATemporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
 
Evaluating Apache Cassandra as a Cloud Database
Evaluating Apache Cassandra as a Cloud DatabaseEvaluating Apache Cassandra as a Cloud Database
Evaluating Apache Cassandra as a Cloud Database
 
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document StoreConnector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
 
SQL & NoSQL
SQL & NoSQLSQL & NoSQL
SQL & NoSQL
 
Introduction to DataStax Enterprise Graph Database
Introduction to DataStax Enterprise Graph DatabaseIntroduction to DataStax Enterprise Graph Database
Introduction to DataStax Enterprise Graph Database
 
SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.
 
Postgres_9.0 vs MySQL_5.5
Postgres_9.0 vs MySQL_5.5Postgres_9.0 vs MySQL_5.5
Postgres_9.0 vs MySQL_5.5
 
Scaling Your Database in the Cloud
Scaling Your Database in the CloudScaling Your Database in the Cloud
Scaling Your Database in the Cloud
 

En vedette

LTE: Building next-gen application services for mobile telecoms
LTE: Building next-gen application services for mobile telecomsLTE: Building next-gen application services for mobile telecoms
LTE: Building next-gen application services for mobile telecoms
NuoDB
 

En vedette (18)

The Power of Determinism in Database Systems
The Power of Determinism in Database SystemsThe Power of Determinism in Database Systems
The Power of Determinism in Database Systems
 
New york-breakfast-seminar
New york-breakfast-seminarNew york-breakfast-seminar
New york-breakfast-seminar
 
From Backups To Time Travel: A Systems Perspective on Snapshots
From Backups To Time Travel: A Systems Perspective on SnapshotsFrom Backups To Time Travel: A Systems Perspective on Snapshots
From Backups To Time Travel: A Systems Perspective on Snapshots
 
Sharing Experiences in Cloud Adoption: Burlington, MA
Sharing Experiences in Cloud Adoption: Burlington, MASharing Experiences in Cloud Adoption: Burlington, MA
Sharing Experiences in Cloud Adoption: Burlington, MA
 
Dallas Breakfast Seminar
Dallas Breakfast SeminarDallas Breakfast Seminar
Dallas Breakfast Seminar
 
Key Database Criteria for Cloud Applications
Key Database Criteria for Cloud ApplicationsKey Database Criteria for Cloud Applications
Key Database Criteria for Cloud Applications
 
The Ins and Outs of Cloud-Scale for ISVs
The Ins and Outs of Cloud-Scale for ISVsThe Ins and Outs of Cloud-Scale for ISVs
The Ins and Outs of Cloud-Scale for ISVs
 
London Breakfast Seminar
London Breakfast SeminarLondon Breakfast Seminar
London Breakfast Seminar
 
NuoDB Blackbirds Release 2.0 Launch
NuoDB Blackbirds Release 2.0 LaunchNuoDB Blackbirds Release 2.0 Launch
NuoDB Blackbirds Release 2.0 Launch
 
Future of Cloud: Insights From the Front Line
Future of Cloud: Insights From the Front LineFuture of Cloud: Insights From the Front Line
Future of Cloud: Insights From the Front Line
 
Cambridge Breakfast Seminar
Cambridge Breakfast SeminarCambridge Breakfast Seminar
Cambridge Breakfast Seminar
 
LTE: Building next-gen application services for mobile telecoms
LTE: Building next-gen application services for mobile telecomsLTE: Building next-gen application services for mobile telecoms
LTE: Building next-gen application services for mobile telecoms
 
California Breakfast Seminar
California Breakfast SeminarCalifornia Breakfast Seminar
California Breakfast Seminar
 
Industry experts webinar slides (final v1.0)
Industry experts webinar slides (final   v1.0)Industry experts webinar slides (final   v1.0)
Industry experts webinar slides (final v1.0)
 
PHP&NewSQLで考える次世代アプリケーション
PHP&NewSQLで考える次世代アプリケーションPHP&NewSQLで考える次世代アプリケーション
PHP&NewSQLで考える次世代アプリケーション
 
Getting Started with NuoDB Community Edition
Getting Started with NuoDB Community Edition Getting Started with NuoDB Community Edition
Getting Started with NuoDB Community Edition
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Gamma Soft and NuoDB Speed Up Data Consolidation And Cloud Migration
Gamma Soft and NuoDB Speed Up Data Consolidation And Cloud MigrationGamma Soft and NuoDB Speed Up Data Consolidation And Cloud Migration
Gamma Soft and NuoDB Speed Up Data Consolidation And Cloud Migration
 

Similaire à The Future of Distributed Databases

MongoDB Breakfast Milan - Mainframe Offloading Strategies
MongoDB Breakfast Milan -  Mainframe Offloading StrategiesMongoDB Breakfast Milan -  Mainframe Offloading Strategies
MongoDB Breakfast Milan - Mainframe Offloading Strategies
MongoDB
 
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
Kai Wähner
 
How To Tell if Your Business Needs NoSQL
How To Tell if Your Business Needs NoSQLHow To Tell if Your Business Needs NoSQL
How To Tell if Your Business Needs NoSQL
DataStax
 

Similaire à The Future of Distributed Databases (20)

Overcoming Today's Data Challenges with MongoDB
Overcoming Today's Data Challenges with MongoDBOvercoming Today's Data Challenges with MongoDB
Overcoming Today's Data Challenges with MongoDB
 
BigData Hadoop
BigData Hadoop BigData Hadoop
BigData Hadoop
 
Overcoming Today's Data Challenges with MongoDB
Overcoming Today's Data Challenges with MongoDBOvercoming Today's Data Challenges with MongoDB
Overcoming Today's Data Challenges with MongoDB
 
Webinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-ServiceWebinar: Enterprise Trends for Database-as-a-Service
Webinar: Enterprise Trends for Database-as-a-Service
 
Mongo db intro.pptx
Mongo db intro.pptxMongo db intro.pptx
Mongo db intro.pptx
 
How the Development Bank of Singapore solves on-prem compute capacity challen...
How the Development Bank of Singapore solves on-prem compute capacity challen...How the Development Bank of Singapore solves on-prem compute capacity challen...
How the Development Bank of Singapore solves on-prem compute capacity challen...
 
MongoDB Breakfast Milan - Mainframe Offloading Strategies
MongoDB Breakfast Milan -  Mainframe Offloading StrategiesMongoDB Breakfast Milan -  Mainframe Offloading Strategies
MongoDB Breakfast Milan - Mainframe Offloading Strategies
 
Machine Learning for Smarter Apps - Jacksonville Meetup
Machine Learning for Smarter Apps - Jacksonville MeetupMachine Learning for Smarter Apps - Jacksonville Meetup
Machine Learning for Smarter Apps - Jacksonville Meetup
 
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
 
Proud to be polyglot
Proud to be polyglotProud to be polyglot
Proud to be polyglot
 
Design Choices for Cloud Data Platforms
Design Choices for Cloud Data PlatformsDesign Choices for Cloud Data Platforms
Design Choices for Cloud Data Platforms
 
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
 
Dataweek-Talk-2014
Dataweek-Talk-2014Dataweek-Talk-2014
Dataweek-Talk-2014
 
Fueling AI & Machine Learning: Legacy Data as a Competitive Advantage
Fueling AI & Machine Learning: Legacy Data as a Competitive AdvantageFueling AI & Machine Learning: Legacy Data as a Competitive Advantage
Fueling AI & Machine Learning: Legacy Data as a Competitive Advantage
 
How To Tell if Your Business Needs NoSQL
How To Tell if Your Business Needs NoSQLHow To Tell if Your Business Needs NoSQL
How To Tell if Your Business Needs NoSQL
 
Cloud-Native Data: What data questions to ask when building cloud-native apps
Cloud-Native Data: What data questions to ask when building cloud-native appsCloud-Native Data: What data questions to ask when building cloud-native apps
Cloud-Native Data: What data questions to ask when building cloud-native apps
 
Machine Learning for z/OS
Machine Learning for z/OSMachine Learning for z/OS
Machine Learning for z/OS
 
Accelerate Analytics and ML in the Hybrid Cloud Era
Accelerate Analytics and ML in the Hybrid Cloud EraAccelerate Analytics and ML in the Hybrid Cloud Era
Accelerate Analytics and ML in the Hybrid Cloud Era
 
SpringPeople - Introduction to Cloud Computing
SpringPeople - Introduction to Cloud ComputingSpringPeople - Introduction to Cloud Computing
SpringPeople - Introduction to Cloud Computing
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 

Plus de NuoDB

Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)
Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)
Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)
NuoDB
 

Plus de NuoDB (18)

WeLab Reaps Advantages of Multi-Cloud Capabilities. You Can Too.
WeLab Reaps Advantages of Multi-Cloud Capabilities. You Can Too.WeLab Reaps Advantages of Multi-Cloud Capabilities. You Can Too.
WeLab Reaps Advantages of Multi-Cloud Capabilities. You Can Too.
 
Modernize Your Banking Platform with Temenos and NuoDB
Modernize Your Banking Platform with Temenos and NuoDBModernize Your Banking Platform with Temenos and NuoDB
Modernize Your Banking Platform with Temenos and NuoDB
 
Do more clouds = better scalability, availability, flexibility
Do more clouds = better scalability, availability, flexibility Do more clouds = better scalability, availability, flexibility
Do more clouds = better scalability, availability, flexibility
 
Introducing NuoDB 4.0: Cloud-native, Cloud-agnostic Distributed SQL Database
Introducing NuoDB 4.0: Cloud-native, Cloud-agnostic Distributed SQL DatabaseIntroducing NuoDB 4.0: Cloud-native, Cloud-agnostic Distributed SQL Database
Introducing NuoDB 4.0: Cloud-native, Cloud-agnostic Distributed SQL Database
 
The Enabling Power of Distributed SQL for Enterprise Digital Transformation I...
The Enabling Power of Distributed SQL for Enterprise Digital Transformation I...The Enabling Power of Distributed SQL for Enterprise Digital Transformation I...
The Enabling Power of Distributed SQL for Enterprise Digital Transformation I...
 
NuoDB + MayaData: How to Run Containerized Enterprise SQL Applications in the...
NuoDB + MayaData: How to Run Containerized Enterprise SQL Applications in the...NuoDB + MayaData: How to Run Containerized Enterprise SQL Applications in the...
NuoDB + MayaData: How to Run Containerized Enterprise SQL Applications in the...
 
How to Evaluate an Elastic SQL Database
How to Evaluate an Elastic SQL DatabaseHow to Evaluate an Elastic SQL Database
How to Evaluate an Elastic SQL Database
 
By Popular Demand: The Rise of Elastic SQL
By Popular Demand: The Rise of Elastic SQLBy Popular Demand: The Rise of Elastic SQL
By Popular Demand: The Rise of Elastic SQL
 
Introduction to NuoDB - March 2018
Introduction to NuoDB - March 2018Introduction to NuoDB - March 2018
Introduction to NuoDB - March 2018
 
Transforming Retail Banking: Competitive Advantage through Microservices
Transforming Retail Banking: Competitive Advantage through MicroservicesTransforming Retail Banking: Competitive Advantage through Microservices
Transforming Retail Banking: Competitive Advantage through Microservices
 
451 Research + NuoDB: What It Means to be a Container-Native SQL Database
451 Research + NuoDB: What It Means to be a Container-Native SQL Database451 Research + NuoDB: What It Means to be a Container-Native SQL Database
451 Research + NuoDB: What It Means to be a Container-Native SQL Database
 
Microservices Applications: Challenges and Best Practices When Deploying SQL-...
Microservices Applications: Challenges and Best Practices When Deploying SQL-...Microservices Applications: Challenges and Best Practices When Deploying SQL-...
Microservices Applications: Challenges and Best Practices When Deploying SQL-...
 
Building Cloud-Native Applications with a Container-Native SQL Database in th...
Building Cloud-Native Applications with a Container-Native SQL Database in th...Building Cloud-Native Applications with a Container-Native SQL Database in th...
Building Cloud-Native Applications with a Container-Native SQL Database in th...
 
5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen Architectures5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen Architectures
 
NuoDB 3.0: Getting Started with Community Edition
NuoDB 3.0: Getting Started with Community EditionNuoDB 3.0: Getting Started with Community Edition
NuoDB 3.0: Getting Started with Community Edition
 
Cloud Database Migration Made Easy: Migrating MySQL to NuoDB
Cloud Database Migration Made Easy: Migrating MySQL to NuoDBCloud Database Migration Made Easy: Migrating MySQL to NuoDB
Cloud Database Migration Made Easy: Migrating MySQL to NuoDB
 
Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)
Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)
Elastic SQL Database: Oxymoron or Emerging Reality? (Database Month, June 2017)
 
Reasons to Deploy an Elastic SQL Database
Reasons to Deploy an Elastic SQL DatabaseReasons to Deploy an Elastic SQL Database
Reasons to Deploy an Elastic SQL Database
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

The Future of Distributed Databases

  • 1. The Future of Distributed Databases Barry Morris, NuoDB Inc Copyright © 2013 NuoDB
  • 2. GOOGLE AdWords AdWords AdWords Background: ‣ GOOGLE’s Primary Revenue Source ‣ Pay-per-click advertising ‣ Based on search string content ‣ $42.5bn in 2012 Very Demanding Application: ‣ Multiple Apps/Single Database ‣ Elastic Capacity On-demand ‣ Geo-Distributed ‣ Extreme Transactions, Analytics, Concurrency ‣ Continuous Availability F1 “When we sought a replacement for Google’s MySQL data store for the AdWords product, [a KV Store] was simply not feasible: the complexity of dealing with a non-ACID data store in every part of our business logic would be too great, and there was simply no way our business could function without SQL queries. Instead of going NoSQL, we built F1.” - GOOGLE F1 White Paper, 2013 Copyright © 2013 NuoDB !2
  • 3. AdWords Epitomises NextGen Apps Q: How many other apps are targeted at a global audience, with requirements for elastic capacity on-demand, transactional and analytical workloads, geo-distributed requirements, and continuous availability? A: Most apps are headed that way. ‣ 40% of the world’s population on the internet today - Most developed countries it is over 80% ‣ $75bn devices on the internet by 2020: Every car, watch, refrigerator, TV set and toothbrush ‣ Every WebApp, Mobile App and IoT app will be used in a geo-distributed fashion, with transactions, analytics and continuous availability. ‣ In other words AdWords-like applications will be everywhere Copyright © 2013 NuoDB !3
  • 5. Fathom Voice “We needed a single, logical database that could be shared across multiple servers in different geographies; updated in real-time; and automatically scaled out during peak demand to handle increased traffic, then back in during off-peak hours” ! “We were told to stop trying to change the way data management works and conform our service to the existing database solutions. But, that’s not who we are.” ! - Cameron Weeks, CEO Fathom Voice Copyright © NuoDB 2013 !5
  • 6. Distributed Transactions TPS Time ! ‣ ‣ ‣ ‣ ‣ Dynamically add/delete machines to manage capacity No sharding, no replication, no memcached Resilience to failure Single logical database Geo-distributed Operation Copyright © NuoDB 2013 !6
  • 7. Distributed Transactions: Designs Approach Key Idea Shared Disk Shared-Nothing/ Sharded Synchronous Replication Durable Distributed Cache Sharing a file system. Independent databases for disjoint subsets of the data. Committing data transactionally to multiple locations before returning. Replicating Data in memory ondemand. Topology Examples ORACLE RAC, Tandem Nonstop SQL, MS Sql Server Cluster, ScaleDB ! Clustrix, VoltDB, MemSQL, Xkoto, ScaleBase, MongoDB, and most NoSQL/ NewSQL solutions. ! Note: Most major web properties include custom sharded MySQL or sharded PostgreSQL, including Facebook, GOOGLE, Wikipedia, Amazon, Flickr, Box,net, Heroku, ... Copyright © 2013 NuoDB F1 !7
  • 8. Distributed Transactions: Designs Approach Key Idea Shared Disk Shared-Nothing/ Sharded Synchronous Replication Durable Distributed Cache Sharing a file system. Independent databases for disjoint subsets of the data. Committing data transactionally to multiple locations before returning. Replicating Data in memory ondemand. Topology Examples ORACLE RAC, Tandem Nonstop SQL, MS Sql Server Cluster, ScaleDB ! Clustrix, VoltDB, MemSQL, Xkoto, ScaleBase, MongoDB, and most NoSQL/ NewSQL solutions. ! Note: Most major web properties include custom sharded MySQL or sharded PostgreSQL, including Facebook, GOOGLE, Wikipedia, Amazon, Flickr, Box,net, Heroku, ... Copyright © 2013 NuoDB F1 !8
  • 9. Distributed Transactions: Designs Approach Key Idea Shared Disk Shared-Nothing/ Sharded Synchronous Replication Durable Distributed Cache Sharing a file system. Independent databases for disjoint subsets of the data. Committing data transactionally to multiple locations before returning. Replicating Data in memory ondemand. Topology Examples ORACLE RAC, Tandem Nonstop SQL, MS Sql Server Cluster, ScaleDB ! Clustrix, VoltDB, MemSQL, Xkoto, ScaleBase, MongoDB, and most NoSQL/ NewSQL solutions. ! Note: Most major web properties include custom sharded MySQL or sharded PostgreSQL, including Facebook, GOOGLE, Wikipedia, Amazon, Flickr, Box,net, Heroku, ... Copyright © 2013 NuoDB F1 !9
  • 10. Distributed Transactions: Designs Approach Key Idea Shared Disk Shared-Nothing/ Sharded Synchronous Replication Durable Distributed Cache Sharing a file system. Independent databases for disjoint subsets of the data. Committing data transactionally to multiple locations before returning. Replicating Data in memory ondemand. Topology Examples ORACLE RAC, Tandem Nonstop SQL, MS Sql Server Cluster, ScaleDB ! Clustrix, VoltDB, MemSQL, Xkoto, ScaleBase, MongoDB, and most NoSQL/ NewSQL solutions. ! Note: Most major web properties include custom sharded MySQL or sharded PostgreSQL, including Facebook, GOOGLE, Wikipedia, Amazon, Flickr, Box,net, Heroku, ... Copyright © 2013 NuoDB F1 !10
  • 11. Durable Distributed Cache ‣ ‣ ATOMS are loaded on demand and ejected when convenient (a la distributed cache) ‣ ATOMS are autonomous and communicate as peers ‣ ATOMS can serialize themselves to permanent backing stores ‣ ‣ All state is maintained as in-memory smart-objects called ATOMS ATOMS can maintain any number of replicas of themselves Add as many TEs/SMs as you like ‣ No single point of failure ‣ Unlimited databases per Domain ‣ Single Console Management TE Distributed I/O, eg Hadoop HDFS ‣ TE TE TE TE SM Applications SM NuoDB Security/Admin Domain (TE = Transaction Engine, SM = Storage Manager) Copyright © 2013 NuoDB !11
  • 12. It’s Not about SQL/NoSQL Pluggable SQL/NoSQL Layer Distributed Transaction Layer { { The problem of distributed transactions is orthogonal to the choice of data model, language or access methods. Copyright © 2013 NuoDB !12
  • 13. Elastic Scalability Twitter: ‣ Over 140 million active users ‣ 4629 tweets per second (25,000 at peak) ‣ Three million new rows created per day ‣ 400 million tweets per day, replicated four times ! Paypal: ‣ Over 100 million active users. ‣ 256-byte reads in under 10 miliseconds. ‣ Global replication of writes in under 350 miliseconds for a single 32-bit integer. ‣ Runs on Amazon Web Services in US, Japan and European data centres. ! Facebook: ‣ Over 950 million active users ‣ Rows read per second: 450 million (at peak) ‣ Queries per second: 13 million (at peak) ‣ Query response times: 4ms reads, 5ms writes ‣ Rows changed per second: 3.5 million (at peak) ! (All 2011/2012 numbers) ‣ NuoDB scales to over 100 server machines ‣ Scalability is instant and elastic ‣ Scales-out and scales-in ‣ TPS numbers exceed 10m TPS on $100k of hardware ‣ Also scales on AWS, GCE etc. Public demo of 32 nodes with GOOGLE ‣ Now showing linear scalablity on TPC-C type workloads (DBT-2) ‣ Scalability demonstrated with heavier duty customer applications (eg Axway, Dassault Systémes) Copyright © 2013 NuoDB !13
  • 14. Continuous Availability ‣ ‣ ‣ ‣ ‣ ‣ ‣ Copyright © 2013 NuoDB Self-healing No single point of failure Fully distributed control Arbitrarily redundant: ‣ Data ‣ Control ‣ Admin Online backup Online schema evolution Rolling upgrades !14
  • 15. Geo-Distribution ‣ ‣ ‣ ‣ ‣ ‣ Copyright © NuoDB 2013 Active/Active ACID Semantics Transactional Consistency N-Way Redundant Local User Latency Asynch WAN Comms !15
  • 16. Customer: Fathom Voice “NuoDB is an entirely new database architecture, which replicates data in real time for an unlimited number of nodes. That is the most important piece for us. We can have all of our data everywhere and it can be updated in real-time.” ! - Cameron Weeks, CEO Fathom Voice Copyright © NuoDB 2013 !16
  • 17. Customer: Fathom Voice Sydney Singapore Virginia Oregon Ireland SQL App SQL App SQL App SQL App SQL App B B B B B TE … TE TE … TE TE … TE TE … TE TE … TE SM SM SM SM SM Geo Database •  •  •  •  Brokers direct local apps to local TEs TEs maintain local data in memory All SMs have complete consistent state of database Commit is synchronous in the local region only Copyright © NuoDB 2013 !17
  • 18. Customer - Fathom Voice Proposal Generator Go.Fathom Voice.Com Enrollment Web Clients EN Hardware FathomRB Provision Provision FathomVoice VoiceMail VBX Carrier VBX Inbound SBC VBX Outbound SBC ... Carrier VBX Test SIP Monitor Copyright © NuoDB 2013 !18
  • 19. Customer Example - Fathom Voice Problem •  •  •  Growing global VoIP customer base; growing latency, data consistency and billing data issues Solution •  Geo-distribute a single logical database •  Deliver lower latency, scale out/in easily in the AWS cloud, reduced administration Competitive differentiation and market expansion Ability to enhance app hampered by DBMS limitations (MySQL, Amazon RDS) •  Greater flexibility in the database, less burden placed in the app Copyright © 2013 NuoDB Benefits •  Cuts latency; presents same data to co-workers in all locations •  Makes service faster, more flexible, provides built in HA - all in AWS •  Customer can enhance VoIP service without working around DBMS flaws !19
  • 20. Some Other Examples Copyright © 2013 NuoDB !20
  • 21. Parting Thoughts “The more than 50 software makers that crowded into the red-hot application server market a year ago have consolidated and clear leaders are beginning to emerge”! ! - Wylie Wong, CNET News, December 1999 ‣ ‣ ‣ 18 Months later there were only a handful of credible offerings Expect the NextGen database market to consolidate Expect the winning products to deliver consolidated features, and for the terms NoSQL and NewSQL to go away ‣ ‣ Expect distributed transactions to be the central technical challenge GOOGLE are moving their other applications to GOOGLE F1 
 => Expect the leading NextGen databases to evolve towards F1 Copyright © 2013 NuoDB !21
  • 22. Copyright © 2013 NuoDB !22