SlideShare a Scribd company logo
Amey Banarse @ameybanarse
Karthik Ranganathan @karthikr
YugaByte DB - A Planet-Scale DB
for Low Latency Transactional Apps
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Introductions
2

Amey Banarse
Advisory Platform Architect, Pivotal
University of Pennsylvania
@ameybanarse
Karthik Ranganathan
Co-Founder and CTO, YugaByte DB
Nutanix ♦ Facebook ♦ Microsoft
University of Texas, Austin
@karthikr
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
What is YugaByte DB?
3

NoSQL + SQL Cloud Native
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
4

A transactional, high-performance database
for building planet-scale cloud services.
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/ 5
YugaByte Story starts
with...
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Facebook in 2007
6

Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Facebook in 2008-2009
7

How to scale to a billion users?
Also: how to survive the week?
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
What happens at 1 Billion users?
8

Dozens of Petabytes
Billions of IOPS
Scale out frequently
Rolling upgrades – zero downtime!
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Transformation of Facebook
9

How to achieve scale
Few
datacenters
traditional
servers
Monolithic applications and
services
Geo-distributed
DC’s
Containers for
applications
Microservices
based design
All about developer agility
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
The database tier was difficult to transform
1
0

Application Tier (Stateless Microservices)
Custom Data Platform
Transactional, Performant, Global
No general platform for the enterprise
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/ 11
So what...?
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Your Challenges
1
2

Your approach to solving these?
• Millions of IOPS (not billions)
• 1000s of apps (not 10s of apps)
• Want standard open APIs (not custom)
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
How Pivotal Transforms Customers
Changes that are already underway
2 corporate
datacenters
traditional
servers
monolithic apps on proprietary
app servers
Multi-region and
Multi-cloud
Multiple VM’s &
Containers
Microservices on
OSS Frameworks
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Transformation for Data Tier
?
legacy databases
Open Source,
Cloud-native Databases
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Use Existing DBs for Transformation?
Not Portable
Not Portable
Open Source
Not Portable
Open Source
Open Source
High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale
High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Transformation for Data Tier
Legacy Databases
Open Source,
Cloud-native Databases
+
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
YugaByte DB capabilities
TRANSACTIONALPLANET-SCALE
HIGH
PERFORMANCE
Distributed ACID
Transactions
Transactional Key-to-Document
Storage Engine
Low Latency, Tunable
Reads
High Throughput
OPEN
SOURCE
Apache 2.0
Popular APIs Extended
Apache Cassandra, Redis and
PostgreSQL (BETA)
Auto Sharding &
Rebalancing
Global Data
Distribution
CLOUD-NATIVE
Natively runs in
Containers
Self-Healing,
Fault-Tolerant
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Core DB Features
SQL
Strong consistency
Secondary indexes
ACID transactions
Expressive query language
NoSQL
Tunable read latency
Write optimized for large data sets
Data expiry with TTL
Scale out and fault tolerant
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Best of Cloud-Native Meets Open Source
ACID Transactions
Globally Consistent
SQL API only
Not Transactional
Multi-Model
High Performance
Not Globally Consistent
Lower Performance
20YugaByte Confidential © 2018 All rights reserved.
YugaByte DB Architecture
• YB-Master and
YB-TServer services
• Raft consensus
• DocDB - optimized
RocksDB storage
• Global Transactions
• Pluggable Query
Layer - CQL, Redis
21YugaByte Confidential © 2018 All rights reserved.
Ecosystem Integration
tablet 1’
tablet2-leade
r
tablet1-leade
r
…
…
tablet2-followe
r
tablet3-followe
r
tablet1-followe
r
tablet1-followe
r
• Spring Data
• Kafka
• Spark
• Presto
• Janus Graph DB
tablet 1’
tablet 1’
Raft Replication DocDB Storage
node1 node2
node3
Global Transaction Manager
Automated Sharding & Load Balancing
Cassandra REDIS
BET
A
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
2
2
On Demand YugaByte DB on PKS
Demo
http://bit.ly/yugabyte-on-pks
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Real World Retail Marketplace
● Browse and Buy millions of products
● Determine Ratings and Review effectiveness
● Order and checkout products
● ….. Many more. Last but not the least, a highly performant,
rich and interactive UX
2
3
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Dataset used for the demo
● 20 million+ Products
● 100 million reviews + ratings
● …. and assume newer Reviews are written to YugaByte
DB in real-time
2
4
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
2
5
Let’s take a look at the UI and
work our way back to the
underlying architecture
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Retail Marketplace Architecture
2
6
Http
Requests
Retail App
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Retail Marketplace Architecture
2
7
Http
Requests
Spring Boot Microservices
Web App
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Retail Marketplace Architecture
2
8
Http
Requests
Spring Boot Microservices
Web App
YugaByte DB
on PKS
Transactions,
High Consistency,
Secondary Indexes
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Retail Marketplace Architecture
2
9
AWS S3
Batch
Load
Http
Requests
Spring Boot Microservices
Web App
Spring Cloud Data Flow
Transactions,
High Consistency,
Secondary Indexes YugaByte DB
on PKS
High Throughput
Data Pipelines
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Retail Marketplace Architecture
3
0
AWS S3
Batch
Load
.
Http
Requests
Spring Boot Microservices
Web App
Spring Cloud Data Flow
Transactions,
High Consistency,
Secondary Indexes YugaByte DB
on PKS
Spark on
PKS
High Throughput
Data Pipelines
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Retail Marketplace Architecture
3
1
BOSH
AWS S3
Pivotal
Container Service
Batch
Load
.
Http
Requests
Spring Boot Microservices
Web App
Spring Cloud Data Flow
Pivotal
Application Service
Transactions,
High Consistency,
Secondary Indexes YugaByte DB
on PKS
Spark on
PKS
High Throughput
Data Pipelines
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
3
2
Dissecting the Retail App
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Dissecting the Retail App
3
3
Secondary Indexes
for category listings
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Secondary Indexes
Distributed Indexes for Efficient Queries
3
4
CREATE TABLE product_rankings (
asin text,
category text,
sales_rank int,
...
PRIMARY KEY (asin, category)
);
CREATE INDEX top_products_in_category
ON product_rankings (category, sales_rank, asin);
Partition by product ID for
efficient lookups
Secondary index to list
top products in a category
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Secondary Indexes
Distributed Indexes for Efficient Queries
3
5
SELECT * FROM product_rankings
WHERE asin = '0684841363';
SELECT * FROM product_rankings
WHERE category = 'Books'
LIMIT 10
OFFSET 20;
Query by ID for product
summary data
Query by index to list top
products in a category by
sales rank (best sellers)
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Dissecting the Retail App
3
6
Global ACID
Transactions using
Cassandra API
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Global Transactions
Multi-Row/Multi-Shard Operations At Scale
3
7
CREATE TABLE orders (
order_id text PRIMARY KEY,
user_id uuid,
order_details jsonb,
...
) WITH transactions = {'enabled': 'true'};
Update inventory and
orders tables atomically.
Simple to enable global
transactions on any table
Use JSON type for
flexible schema objects.
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Global Transactions
Multi-Row/Multi-Shard Operations At Scale
3
8
BEGIN TRANSACTION
UPDATE product_inventory
SET quantity = quantity - 2
WHERE asin = '0684841363';
INSERT INTO orders (order_id, user_id, order_details, … )
VALUES ('<order-id>', '<user-id>',
'{id: "0684841363", quantity: 2, … }', … );
END TRANSACTION;
Decrease inventory count
for products fulfilled.
Query and index by JSON
attributes if needed!
Add to orders table for
products purchased.
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Dissecting the Retail App
3
9
Dynamic sets modeled as
Redis SORTED SETs
Show me the top 2 book with
the most reviews
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Dissecting the Retail App
4
0
Pagination Support
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
UI Pagination and Offsets
41
SELECT * FROM cronos.products
WHERE category=’Music’
LIMIT 10
OFFSET 20;
Example command for
displaying page 3
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Native JSON
Modeling product attributes & order history
4
2
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Auto Data Expiry with TTL
Implement Discounts and Sales Offers on products
4
3
Query the key right away
Query the key after 10 seconds
Write a key with a 10 second expiry
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Spark Integration
● Analytics and Aggregate Queries
● ML workloads - Recommendations and Rankings
● Uses pySpark, OSS Spark-Cassandra connectors
4
4
Source Tables Derived Tables
Enrichment /
pre-aggregation
Batch
Aggregates
Pivotal
Container Service
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Spring Cloud Data Flow
● Real-time + Batch Data Ingestion into YugaByteDB
● High throughput ingestion pipeline
● Scalable Data Microservices
4
5
Scalable Data Pipelines
Data
Processor
S3
Source
Cassandra
SinkRead From Write To
AWS S3
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
YugaWare Console
Day 2 Automation and Operations
● Integrated Prometheus for monitoring
● Alerts & Health Checks
● Backup/Restore from Object Stores(ex.S3) & NFS
● Rolling Upgrades
4
6
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
4
7
Real World Use-Cases
48YugaByte Confidential © 2018 All rights reserved.
1. MySQL master-slave replication
2. Cassandra cross-DC queue for cache updates
3. Per-DC Couchbase for caching
Current State
Use Case #1 – Global User Identity
Login, change password, view profile
49YugaByte Confidential © 2018 All rights reserved.
With YugaByte DB
Use Case #1 – Global User Identity
Login, change password, view profile
Unified platform
Zero data loss
even on region failures
Add new regions with ease
1-click Deployment of Primary Cluster and Read Replicas
Read Replicas
50YugaByte Confidential © 2018 All rights reserved.
Redis cluster for low latency reads
Fragile (manually sharded & load balanced)
Expensive (entire dataset in memory)
On-premises only, need hybrid/public cloud scaling and distribution
DB
Current State
Use Case #2 - Financial Data Service
51YugaByte Confidential © 2018 All rights reserved.
With YugaByte DB
Use Case #2 - Financial Data Service
Higher release velocity
Cost-efficient storage
Faster cloud migration
1-click Deploy of Redis as a Distributed Database
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Use Case 3: Forensic Tools for Blockchain
Industry
5
2

“YugaByte DB helped CipherTrace meet the high bar its
customers set for availability, scalability, and data consistency
while we simultaneously introduced new features. Because
YugaByte DB is Cassandra wire compatible, it was a simple
process for us to quickly migrate our application from
DataStax Enterprise and start delivering these benefits to our
customers.”
— Steve Ryan, Chief Operating Officer, CipherTrace
Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license:
http://creativecommons.org/licenses/by-nc/3.0/
Looking Forward...
● Multi-site PKS capabilities, collaborating with K8s SIG
● Spring Data YugaByte module incubation
● Distributed PostgreSQL support
● Jepsen Performance Testing and Node density
benchmarks
5
3
> Stay Connected.
<Your CTA>
<Related Session>
#springone@s1p

More Related Content

What's hot (20)

PPTX
YugaByte + PKS CloudFoundry Meetup 10/15/2018
AlanCaldera
 
PPTX
True Postgres High Availability Architecture with Industry Standard Open-Sou...
EDB
 
PPTX
Bootstrapping state in Apache Flink
DataWorks Summit
 
PPTX
My Favorite PostgreSQL Books
EDB
 
PPTX
PostgreSQL as a Strategic Tool
EDB
 
PPTX
PostgreSQL to Accelerate Innovation
EDB
 
PPTX
Remote DBA Service: Powering your DBA needs
EDB
 
PDF
Pivotal Greenplum in Action on AWS, Azure, and GCP - Greenplum Summit 2018
VMware Tanzu
 
PPTX
Postgres Takes Charge Around the World
EDB
 
PPTX
Optimizing your SparkML pipelines using the latest features in Spark 2.3
DataWorks Summit
 
PPTX
How to Monitor Postgres Like a Pro!
EDB
 
PPTX
Geode Meetup Apachecon
upthewaterspout
 
PPTX
Automating Postgres Deployments on AWS and VMware, with Terraform and Ansible
EDB
 
PDF
Large Table Partitioning with PostgreSQL and Django
EDB
 
PDF
PostgreSQL continuous backup and PITR with Barman
EDB
 
PDF
EDB Postgres & Tools in a Smart City Project
EDB
 
PDF
Discover PostGIS: Add Spatial functions to PostgreSQL
EDB
 
PDF
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
PDF
Introduction to Apache Geode (Cork, Ireland)
Anthony Baker
 
PDF
Present & Future of Greenplum Database A massively parallel Postgres Database...
VMware Tanzu
 
YugaByte + PKS CloudFoundry Meetup 10/15/2018
AlanCaldera
 
True Postgres High Availability Architecture with Industry Standard Open-Sou...
EDB
 
Bootstrapping state in Apache Flink
DataWorks Summit
 
My Favorite PostgreSQL Books
EDB
 
PostgreSQL as a Strategic Tool
EDB
 
PostgreSQL to Accelerate Innovation
EDB
 
Remote DBA Service: Powering your DBA needs
EDB
 
Pivotal Greenplum in Action on AWS, Azure, and GCP - Greenplum Summit 2018
VMware Tanzu
 
Postgres Takes Charge Around the World
EDB
 
Optimizing your SparkML pipelines using the latest features in Spark 2.3
DataWorks Summit
 
How to Monitor Postgres Like a Pro!
EDB
 
Geode Meetup Apachecon
upthewaterspout
 
Automating Postgres Deployments on AWS and VMware, with Terraform and Ansible
EDB
 
Large Table Partitioning with PostgreSQL and Django
EDB
 
PostgreSQL continuous backup and PITR with Barman
EDB
 
EDB Postgres & Tools in a Smart City Project
EDB
 
Discover PostGIS: Add Spatial functions to PostgreSQL
EDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
Introduction to Apache Geode (Cork, Ireland)
Anthony Baker
 
Present & Future of Greenplum Database A massively parallel Postgres Database...
VMware Tanzu
 

Similar to YugaByte DB—A Planet-Scale Database for Low Latency Transactional Apps (20)

PPTX
mongoDB: Driving a data revolution
MongoDB
 
PDF
Pivotal Big Data Suite: A Technical Overview
VMware Tanzu
 
PDF
Re-inventing the Database: What to Keep and What to Throw Away
DATAVERSITY
 
PPTX
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
Carlos Andrés García
 
PPTX
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
VMware Tanzu
 
PDF
Pivotal Big Data Suite: A Technical Overview
VMware Tanzu
 
PDF
Course 3 : Types of data and opportunities by Nikolaos Deligiannis
Betacowork
 
PPTX
July NY Enterprise Technology Meetup
Shay Hassidim
 
PPT
Big Data = Big Decisions
InnoTech
 
PDF
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
Josiah Renaudin
 
PDF
Morning with MongoDB Paris 2012 - Making Big Data Small
MongoDB
 
PDF
From Business Idea to Successful Delivery by Serhiy Haziyev & Olha Hrytsay, S...
SoftServe
 
PDF
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
TechWell
 
PPTX
Introducing Splunk – The Big Data Engine
Swiss Big Data User Group
 
PPTX
SpringOne2GX 2014 Splunk Presentation
Damien Dallimore
 
PPTX
Nosql Now 2012: MongoDB Use Cases
MongoDB
 
PDF
The Web Scale
Guille -bisho-
 
PPT
Cloud computing skepticism - But i'm sure
Nguyen Duong
 
PPTX
Lecture1 BIG DATA and Types of data in details
AbhishekKumarAgrahar2
 
PDF
NYC Meetup November 15, 2012
NuoDB
 
mongoDB: Driving a data revolution
MongoDB
 
Pivotal Big Data Suite: A Technical Overview
VMware Tanzu
 
Re-inventing the Database: What to Keep and What to Throw Away
DATAVERSITY
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
Carlos Andrés García
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
VMware Tanzu
 
Pivotal Big Data Suite: A Technical Overview
VMware Tanzu
 
Course 3 : Types of data and opportunities by Nikolaos Deligiannis
Betacowork
 
July NY Enterprise Technology Meetup
Shay Hassidim
 
Big Data = Big Decisions
InnoTech
 
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
Josiah Renaudin
 
Morning with MongoDB Paris 2012 - Making Big Data Small
MongoDB
 
From Business Idea to Successful Delivery by Serhiy Haziyev & Olha Hrytsay, S...
SoftServe
 
Can Your Mobile Infrastructure Survive 1 Million Concurrent Users?
TechWell
 
Introducing Splunk – The Big Data Engine
Swiss Big Data User Group
 
SpringOne2GX 2014 Splunk Presentation
Damien Dallimore
 
Nosql Now 2012: MongoDB Use Cases
MongoDB
 
The Web Scale
Guille -bisho-
 
Cloud computing skepticism - But i'm sure
Nguyen Duong
 
Lecture1 BIG DATA and Types of data in details
AbhishekKumarAgrahar2
 
NYC Meetup November 15, 2012
NuoDB
 
Ad

More from VMware Tanzu (20)

PDF
Spring into AI presented by Dan Vega 5/14
VMware Tanzu
 
PDF
What AI Means For Your Product Strategy And What To Do About It
VMware Tanzu
 
PDF
Make the Right Thing the Obvious Thing at Cardinal Health 2023
VMware Tanzu
 
PPTX
Enhancing DevEx and Simplifying Operations at Scale
VMware Tanzu
 
PDF
Spring Update | July 2023
VMware Tanzu
 
PPTX
Platforms, Platform Engineering, & Platform as a Product
VMware Tanzu
 
PPTX
Building Cloud Ready Apps
VMware Tanzu
 
PDF
Spring Boot 3 And Beyond
VMware Tanzu
 
PDF
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
VMware Tanzu
 
PDF
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
VMware Tanzu
 
PDF
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
VMware Tanzu
 
PPTX
tanzu_developer_connect.pptx
VMware Tanzu
 
PDF
Tanzu Virtual Developer Connect Workshop - French
VMware Tanzu
 
PDF
Tanzu Developer Connect Workshop - English
VMware Tanzu
 
PDF
Virtual Developer Connect Workshop - English
VMware Tanzu
 
PDF
Tanzu Developer Connect - French
VMware Tanzu
 
PDF
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
VMware Tanzu
 
PDF
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
VMware Tanzu
 
PDF
SpringOne Tour: The Influential Software Engineer
VMware Tanzu
 
PDF
SpringOne Tour: Domain-Driven Design: Theory vs Practice
VMware Tanzu
 
Spring into AI presented by Dan Vega 5/14
VMware Tanzu
 
What AI Means For Your Product Strategy And What To Do About It
VMware Tanzu
 
Make the Right Thing the Obvious Thing at Cardinal Health 2023
VMware Tanzu
 
Enhancing DevEx and Simplifying Operations at Scale
VMware Tanzu
 
Spring Update | July 2023
VMware Tanzu
 
Platforms, Platform Engineering, & Platform as a Product
VMware Tanzu
 
Building Cloud Ready Apps
VMware Tanzu
 
Spring Boot 3 And Beyond
VMware Tanzu
 
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
VMware Tanzu
 
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
VMware Tanzu
 
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
VMware Tanzu
 
tanzu_developer_connect.pptx
VMware Tanzu
 
Tanzu Virtual Developer Connect Workshop - French
VMware Tanzu
 
Tanzu Developer Connect Workshop - English
VMware Tanzu
 
Virtual Developer Connect Workshop - English
VMware Tanzu
 
Tanzu Developer Connect - French
VMware Tanzu
 
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
VMware Tanzu
 
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
VMware Tanzu
 
SpringOne Tour: The Influential Software Engineer
VMware Tanzu
 
SpringOne Tour: Domain-Driven Design: Theory vs Practice
VMware Tanzu
 
Ad

Recently uploaded (20)

PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 

YugaByte DB—A Planet-Scale Database for Low Latency Transactional Apps

  • 1. Amey Banarse @ameybanarse Karthik Ranganathan @karthikr YugaByte DB - A Planet-Scale DB for Low Latency Transactional Apps
  • 2. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Introductions 2  Amey Banarse Advisory Platform Architect, Pivotal University of Pennsylvania @ameybanarse Karthik Ranganathan Co-Founder and CTO, YugaByte DB Nutanix ♦ Facebook ♦ Microsoft University of Texas, Austin @karthikr
  • 3. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What is YugaByte DB? 3  NoSQL + SQL Cloud Native
  • 4. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 4  A transactional, high-performance database for building planet-scale cloud services.
  • 5. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 5 YugaByte Story starts with...
  • 6. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Facebook in 2007 6 
  • 7. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Facebook in 2008-2009 7  How to scale to a billion users? Also: how to survive the week?
  • 8. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What happens at 1 Billion users? 8  Dozens of Petabytes Billions of IOPS Scale out frequently Rolling upgrades – zero downtime!
  • 9. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Transformation of Facebook 9  How to achieve scale Few datacenters traditional servers Monolithic applications and services Geo-distributed DC’s Containers for applications Microservices based design All about developer agility
  • 10. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ The database tier was difficult to transform 1 0  Application Tier (Stateless Microservices) Custom Data Platform Transactional, Performant, Global No general platform for the enterprise
  • 11. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 11 So what...?
  • 12. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Your Challenges 1 2  Your approach to solving these? • Millions of IOPS (not billions) • 1000s of apps (not 10s of apps) • Want standard open APIs (not custom)
  • 13. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ How Pivotal Transforms Customers Changes that are already underway 2 corporate datacenters traditional servers monolithic apps on proprietary app servers Multi-region and Multi-cloud Multiple VM’s & Containers Microservices on OSS Frameworks
  • 14. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Transformation for Data Tier ? legacy databases Open Source, Cloud-native Databases
  • 15. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Use Existing DBs for Transformation? Not Portable Not Portable Open Source Not Portable Open Source Open Source High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale
  • 16. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Transformation for Data Tier Legacy Databases Open Source, Cloud-native Databases +
  • 17. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ YugaByte DB capabilities TRANSACTIONALPLANET-SCALE HIGH PERFORMANCE Distributed ACID Transactions Transactional Key-to-Document Storage Engine Low Latency, Tunable Reads High Throughput OPEN SOURCE Apache 2.0 Popular APIs Extended Apache Cassandra, Redis and PostgreSQL (BETA) Auto Sharding & Rebalancing Global Data Distribution CLOUD-NATIVE Natively runs in Containers Self-Healing, Fault-Tolerant
  • 18. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Core DB Features SQL Strong consistency Secondary indexes ACID transactions Expressive query language NoSQL Tunable read latency Write optimized for large data sets Data expiry with TTL Scale out and fault tolerant
  • 19. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Best of Cloud-Native Meets Open Source ACID Transactions Globally Consistent SQL API only Not Transactional Multi-Model High Performance Not Globally Consistent Lower Performance
  • 20. 20YugaByte Confidential © 2018 All rights reserved. YugaByte DB Architecture • YB-Master and YB-TServer services • Raft consensus • DocDB - optimized RocksDB storage • Global Transactions • Pluggable Query Layer - CQL, Redis
  • 21. 21YugaByte Confidential © 2018 All rights reserved. Ecosystem Integration tablet 1’ tablet2-leade r tablet1-leade r … … tablet2-followe r tablet3-followe r tablet1-followe r tablet1-followe r • Spring Data • Kafka • Spark • Presto • Janus Graph DB tablet 1’ tablet 1’ Raft Replication DocDB Storage node1 node2 node3 Global Transaction Manager Automated Sharding & Load Balancing Cassandra REDIS BET A
  • 22. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 2 2 On Demand YugaByte DB on PKS Demo http://bit.ly/yugabyte-on-pks
  • 23. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Real World Retail Marketplace ● Browse and Buy millions of products ● Determine Ratings and Review effectiveness ● Order and checkout products ● ….. Many more. Last but not the least, a highly performant, rich and interactive UX 2 3
  • 24. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Dataset used for the demo ● 20 million+ Products ● 100 million reviews + ratings ● …. and assume newer Reviews are written to YugaByte DB in real-time 2 4
  • 25. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 2 5 Let’s take a look at the UI and work our way back to the underlying architecture
  • 26. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Retail Marketplace Architecture 2 6 Http Requests Retail App
  • 27. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Retail Marketplace Architecture 2 7 Http Requests Spring Boot Microservices Web App
  • 28. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Retail Marketplace Architecture 2 8 Http Requests Spring Boot Microservices Web App YugaByte DB on PKS Transactions, High Consistency, Secondary Indexes
  • 29. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Retail Marketplace Architecture 2 9 AWS S3 Batch Load Http Requests Spring Boot Microservices Web App Spring Cloud Data Flow Transactions, High Consistency, Secondary Indexes YugaByte DB on PKS High Throughput Data Pipelines
  • 30. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Retail Marketplace Architecture 3 0 AWS S3 Batch Load . Http Requests Spring Boot Microservices Web App Spring Cloud Data Flow Transactions, High Consistency, Secondary Indexes YugaByte DB on PKS Spark on PKS High Throughput Data Pipelines
  • 31. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Retail Marketplace Architecture 3 1 BOSH AWS S3 Pivotal Container Service Batch Load . Http Requests Spring Boot Microservices Web App Spring Cloud Data Flow Pivotal Application Service Transactions, High Consistency, Secondary Indexes YugaByte DB on PKS Spark on PKS High Throughput Data Pipelines
  • 32. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 3 2 Dissecting the Retail App
  • 33. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Dissecting the Retail App 3 3 Secondary Indexes for category listings
  • 34. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Secondary Indexes Distributed Indexes for Efficient Queries 3 4 CREATE TABLE product_rankings ( asin text, category text, sales_rank int, ... PRIMARY KEY (asin, category) ); CREATE INDEX top_products_in_category ON product_rankings (category, sales_rank, asin); Partition by product ID for efficient lookups Secondary index to list top products in a category
  • 35. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Secondary Indexes Distributed Indexes for Efficient Queries 3 5 SELECT * FROM product_rankings WHERE asin = '0684841363'; SELECT * FROM product_rankings WHERE category = 'Books' LIMIT 10 OFFSET 20; Query by ID for product summary data Query by index to list top products in a category by sales rank (best sellers)
  • 36. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Dissecting the Retail App 3 6 Global ACID Transactions using Cassandra API
  • 37. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Global Transactions Multi-Row/Multi-Shard Operations At Scale 3 7 CREATE TABLE orders ( order_id text PRIMARY KEY, user_id uuid, order_details jsonb, ... ) WITH transactions = {'enabled': 'true'}; Update inventory and orders tables atomically. Simple to enable global transactions on any table Use JSON type for flexible schema objects.
  • 38. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Global Transactions Multi-Row/Multi-Shard Operations At Scale 3 8 BEGIN TRANSACTION UPDATE product_inventory SET quantity = quantity - 2 WHERE asin = '0684841363'; INSERT INTO orders (order_id, user_id, order_details, … ) VALUES ('<order-id>', '<user-id>', '{id: "0684841363", quantity: 2, … }', … ); END TRANSACTION; Decrease inventory count for products fulfilled. Query and index by JSON attributes if needed! Add to orders table for products purchased.
  • 39. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Dissecting the Retail App 3 9 Dynamic sets modeled as Redis SORTED SETs Show me the top 2 book with the most reviews
  • 40. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Dissecting the Retail App 4 0 Pagination Support
  • 41. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ UI Pagination and Offsets 41 SELECT * FROM cronos.products WHERE category=’Music’ LIMIT 10 OFFSET 20; Example command for displaying page 3
  • 42. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Native JSON Modeling product attributes & order history 4 2
  • 43. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Auto Data Expiry with TTL Implement Discounts and Sales Offers on products 4 3 Query the key right away Query the key after 10 seconds Write a key with a 10 second expiry
  • 44. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spark Integration ● Analytics and Aggregate Queries ● ML workloads - Recommendations and Rankings ● Uses pySpark, OSS Spark-Cassandra connectors 4 4 Source Tables Derived Tables Enrichment / pre-aggregation Batch Aggregates Pivotal Container Service
  • 45. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Cloud Data Flow ● Real-time + Batch Data Ingestion into YugaByteDB ● High throughput ingestion pipeline ● Scalable Data Microservices 4 5 Scalable Data Pipelines Data Processor S3 Source Cassandra SinkRead From Write To AWS S3
  • 46. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ YugaWare Console Day 2 Automation and Operations ● Integrated Prometheus for monitoring ● Alerts & Health Checks ● Backup/Restore from Object Stores(ex.S3) & NFS ● Rolling Upgrades 4 6
  • 47. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 4 7 Real World Use-Cases
  • 48. 48YugaByte Confidential © 2018 All rights reserved. 1. MySQL master-slave replication 2. Cassandra cross-DC queue for cache updates 3. Per-DC Couchbase for caching Current State Use Case #1 – Global User Identity Login, change password, view profile
  • 49. 49YugaByte Confidential © 2018 All rights reserved. With YugaByte DB Use Case #1 – Global User Identity Login, change password, view profile Unified platform Zero data loss even on region failures Add new regions with ease 1-click Deployment of Primary Cluster and Read Replicas Read Replicas
  • 50. 50YugaByte Confidential © 2018 All rights reserved. Redis cluster for low latency reads Fragile (manually sharded & load balanced) Expensive (entire dataset in memory) On-premises only, need hybrid/public cloud scaling and distribution DB Current State Use Case #2 - Financial Data Service
  • 51. 51YugaByte Confidential © 2018 All rights reserved. With YugaByte DB Use Case #2 - Financial Data Service Higher release velocity Cost-efficient storage Faster cloud migration 1-click Deploy of Redis as a Distributed Database
  • 52. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Use Case 3: Forensic Tools for Blockchain Industry 5 2  “YugaByte DB helped CipherTrace meet the high bar its customers set for availability, scalability, and data consistency while we simultaneously introduced new features. Because YugaByte DB is Cassandra wire compatible, it was a simple process for us to quickly migrate our application from DataStax Enterprise and start delivering these benefits to our customers.” — Steve Ryan, Chief Operating Officer, CipherTrace
  • 53. Unless otherwise indicated, these slides are © 2013-2018 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Looking Forward... ● Multi-site PKS capabilities, collaborating with K8s SIG ● Spring Data YugaByte module incubation ● Distributed PostgreSQL support ● Jepsen Performance Testing and Node density benchmarks 5 3
  • 54. > Stay Connected. <Your CTA> <Related Session> #springone@s1p