SlideShare a Scribd company logo
Scalar DL Technical Overview
1 Dec, 2021
1
© 2021Scalar, inc.
Confidential
Scalar DL: Tamper-Evident and Scalable Database System
2
© 2021Scalar, inc.
Confidential
Key Characteristics in Scalar DL
3
Tamper-evident Scalable Correct
Database-agnostic Cloud-agnostic
Byzantine faults can be detected
as long as N > f
Performance and availability
can be linearly scaled
No intermediate states are visible,
and data is always up-to-date
No dependency on
particular database products
No dependency on
particular public clouds
N: # of administrative domains in a
database system, f: # of faulty domains
Cassandra, Amazon DynamoDB, Azure
Cosmos DB, and JDBC-supported major
RDBMSs (MySQL, PostgreSQL, Oracle
Database) are supported.
AWS, Azure, EKS, and AKS are
supported.
ACID-compliant and strong consistent
database system (i.e., strict serializable)
DVi = DV / N・RF
(RF: Replication Factor << N)
© 2021Scalar, inc.
Confidential
Scalar DL System Architecture
4
Pattern 1
Ledger
Pattern 2
Pattern 3
Client SDK
Ledger
Ordering
Client SDK
Proofs
Ledger
Client SDK
Smart
Contract
(signed)
Private keys Public keys
Auditor
© 2021Scalar, inc.
Confidential
Scalar DL: Ledger
5
User (Client)
Java
Contract
Signature
Private Key
Scalar DL network
function invoke() {
if (accounts[0].data.balance < args.val) {
throw new Error(“not enough balance”);
}
accounts[0].data.balance -= args.val;
accounts[1].data.balance += args.val;
results = { … };
}
Payment Contract
Request :
(contract, args, sig)
Asset ID Age Data (before) Data (after) Sigs Func (ref) Args Hash
A 1 { } { balance = 100,
…}
charge { val = 100 }
B 1 { }
{ balance = 200,
…} charge { val = 200 }
A 2 { A: {balance = 100},
B: {balance = 200} …}
{ balance = 90,
…}
payment { val = 10 }
SN = Func (SN-1 , Args)
Deterministic & TE TE
If S0 is TE ⇒ SN is TE
Public Key
B 2 { A: {balance = 100},
B: {balance = 200} …}
{ balance = 210,
…} payment { val = 10 }
H(A1)
H(B1)
State
hash
chain
Tamper Evidence (TE) of ledger entries:
Arguments
{ accounts = [“A”, “B”], val = 10, …}
* includes other accounts data
Argument
© 2021Scalar, inc.
Confidential
Scalar DL: Auditor
6
Auditor
managed by
a different organization
Client
Execute
Asset Proof
Request Proof
Asset Proof
T
Ledger
Compare to
detect
tampering
Auditor manages the proofs of execution to recompute assets without trusting
the integrity of data given from Ledger (1 patented, 1 filed)
© 2021Scalar, inc.
Confidential
Scalar DL: Ordering
7
7
Client SDK
Scalar DL
Ordering
Private key
Smart
Contract
(signed)
Extracts parallelism
by utilizing partial order property
of contracts execution
without violating determinism
(2 patented) Execute contracts independently
…
Compare to
detect
tampering
© 2021Scalar, inc.
Confidential
Key Difference between Public Blockchains and Scalar DL
8
Public Blockchains
(Ethereum …)
Scalar DL
• History diverges in normal cases
– It diverges even if no malicious
activities ⇒ Impossible to
guarantee finality
• History diverges only in abnormal cases
– If it diverges, it is caused by
malicious activities ⇒ Possible to
guarantee finality
IEEE ICDCS Workshop’16
© 2021Scalar, inc.
Confidential
Key Difference between Private Blockchains (BFT SMR*) and Scalar DL
9
Private Blockchains / BFT SMR
(HL fabric, Tendermint…)
Scalar DL
Data is totally ordered
⇒ Hard to parallelize/scale
Data is partially ordered
⇒ Easy to parallelize/scale
Sequential processing is required
Parallelizable
* Private blockchains are thought to be variants of
techniques called Byzantine-fault tolerance state
machine replication (BFT SMR)
© 2021Scalar, inc.
Confidential
Unique Features 1 : ACID Nested Contract Execution
• Multiple contracts can be executed atomically
10
Contract 1
Transaction
Tamper-evident ledger
Contract 2
Contract 3
Atomic
execution
© 2021Scalar, inc.
Confidential
Unique Features 2 : User-defined Function (patented)
• Function is a business logic for creating deletable and easy to search
records
• Remedy the downsides of ledger structure and tamper-evidence property
11
Mutable database
Function
Contract
Transaction
Tamper-evident ledger
Atomic
execution
Business logic
Evidence that business
logic is executed
© 2021Scalar, inc.
Confidential
Benefits of User-defined Function
12
App
Not deletable
Not searchable flexibly
App
Not tamper-evident
Blockchain
DB
App DB Blockchain
Inconsistent
App
Scalar DL
log
log
Mutable records
Tamper-evident records
Tamper-evident
Deletable
Searchable flexibly
Consistent
© 2021Scalar, inc.
Confidential
Benchmark Results with Smallbank workload
• Fabric 1.4.11: 2 orgs (each has 3 peers) + 3-node Raft orderers
• Scalar DL: 2 orgs (each has 3 C* node w/ RF=3) + 3 Scalar DL nodes
13
i3.2xlarge for each peer
and database node
© 2021Scalar, inc.
Confidential
Scalability
14
Scalar DL achieves near-linear scalability
© 2021Scalar, inc.
Confidential
Verification Results
• Scalar DL has been heavily tested with Jepsen and our
destructive tools
– Note that Jepsen tests are created and conducted by Scalar
– It has passed both tests for a long time
– See https://github.com/scalar-labs/scalar-jepsen for more detail
• TLA+ formal verification is also passing
15
Jepsen
Passed
© 2021Scalar, inc.
Confidential
Use Cases : Where to use Scalar DL
16
• Data integrity is required
– Data can not be altered or deleted maliciously
• Scalability is required
– Many requests from many end-users or devices
• There is a main organization
– And there are a few auditors
• Byzantine fault detection is acceptable
Digital evidence / Database forensics
Our focuses:

More Related Content

PDF
Scalar DB: Universal Transaction Manager
PDF
マーケティングを捨てよ、サポートへ出よう 事例から見るスタートアップ初期におけるユーザー獲得
PDF
SSIとDIDで何を解決したいのか?(β版)
PPTX
トランザクションの設計と進化
PDF
ReAct: Synergizing Reasoning and Acting in Language Models
PPTX
ChatGPT Impact - その社会的/ビジネス価値を考える -
PPT
20. Parallel Databases in DBMS
PDF
Sequoia Capital Pitch Deck Template
Scalar DB: Universal Transaction Manager
マーケティングを捨てよ、サポートへ出よう 事例から見るスタートアップ初期におけるユーザー獲得
SSIとDIDで何を解決したいのか?(β版)
トランザクションの設計と進化
ReAct: Synergizing Reasoning and Acting in Language Models
ChatGPT Impact - その社会的/ビジネス価値を考える -
20. Parallel Databases in DBMS
Sequoia Capital Pitch Deck Template

What's hot (20)

PDF
Scalar DB: A library that makes non-ACID databases ACID-compliant
PDF
Scalar IST のご紹介
PDF
事業者間・対個人におけるデータの信頼性と透明性の担保によるデジタライゼーションの推進
PDF
Making Cassandra more capable, faster, and more reliable (at ApacheCon@Home 2...
PDF
Scalar DL Technical Overview
PDF
Transaction Management on Cassandra
PPTX
事例で学ぶApache Cassandra
PDF
Oracle Data Guard による高可用性
PPTX
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2
PPTX
大規模データ活用向けストレージレイヤソフトのこれまでとこれから(NTTデータ テクノロジーカンファレンス 2019 講演資料、2019/09/05)
PDF
PostgreSQLでスケールアウト
PPTX
PostgreSQLモニタリング機能の現状とこれから(Open Developers Conference 2020 Online 発表資料)
PPTX
SQL Server 使いのための Azure Synapse Analytics - Spark 入門
PDF
Db2 v11.5.4 高可用性構成 & HADR 構成パターンご紹介
PPTX
Dbts 分散olt pv2
PDF
Grafana LokiではじめるKubernetesロギングハンズオン(NTT Tech Conference #4 ハンズオン資料)
PDF
Getting Started with Confluent Schema Registry
PDF
Cisco Meraki- Simplifying IT
PPTX
トランザクションをSerializableにする4つの方法
PDF
OCI 購入モデルの整理と Universal Credit 最新情報(2021年2月17日版)
Scalar DB: A library that makes non-ACID databases ACID-compliant
Scalar IST のご紹介
事業者間・対個人におけるデータの信頼性と透明性の担保によるデジタライゼーションの推進
Making Cassandra more capable, faster, and more reliable (at ApacheCon@Home 2...
Scalar DL Technical Overview
Transaction Management on Cassandra
事例で学ぶApache Cassandra
Oracle Data Guard による高可用性
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2
大規模データ活用向けストレージレイヤソフトのこれまでとこれから(NTTデータ テクノロジーカンファレンス 2019 講演資料、2019/09/05)
PostgreSQLでスケールアウト
PostgreSQLモニタリング機能の現状とこれから(Open Developers Conference 2020 Online 発表資料)
SQL Server 使いのための Azure Synapse Analytics - Spark 入門
Db2 v11.5.4 高可用性構成 & HADR 構成パターンご紹介
Dbts 分散olt pv2
Grafana LokiではじめるKubernetesロギングハンズオン(NTT Tech Conference #4 ハンズオン資料)
Getting Started with Confluent Schema Registry
Cisco Meraki- Simplifying IT
トランザクションをSerializableにする4つの方法
OCI 購入モデルの整理と Universal Credit 最新情報(2021年2月17日版)
Ad

Similar to Scalar DL Technical Overview (20)

PDF
Kerberos presentation
PDF
Hoverboards, Jetpacks, Clusters and Flux Capacitors
PDF
Sql Server - Apresentação
PPTX
Cloudian_Cassandra Summit 2012
DOC
DBMS Practical File
PDF
SQL Server SQL Server
PDF
SQL Server SQL Server
PDF
Streaming Data Into Your Lakehouse With Frank Munz | Current 2022
PPTX
Dragonflow Austin Summit Talk
PDF
Geek Sync | Linux, Containers, and SQL Server—Get Ready for Big Data Clusters...
PPTX
Running Enterprise Workloads in the Cloud
PPT
Day Of Cloud - Windows Azure Platform
PDF
Data Capture in IBM WebSphere Premises Server - Aldo Eisma, IBM
PPTX
Data In Cloud
PDF
Architecture Openstack for the Enterprise
PPTX
Tackle Containerization Advisor (TCA) for Legacy Applications
PPT
SQL Azure Dec 2010 Update
PPT
SQL Azure Dec Update
PDF
Data Science Across Data Sources with Apache Arrow
PDF
Kubernetes Online Training | Docker and Kubernetes Training
Kerberos presentation
Hoverboards, Jetpacks, Clusters and Flux Capacitors
Sql Server - Apresentação
Cloudian_Cassandra Summit 2012
DBMS Practical File
SQL Server SQL Server
SQL Server SQL Server
Streaming Data Into Your Lakehouse With Frank Munz | Current 2022
Dragonflow Austin Summit Talk
Geek Sync | Linux, Containers, and SQL Server—Get Ready for Big Data Clusters...
Running Enterprise Workloads in the Cloud
Day Of Cloud - Windows Azure Platform
Data Capture in IBM WebSphere Premises Server - Aldo Eisma, IBM
Data In Cloud
Architecture Openstack for the Enterprise
Tackle Containerization Advisor (TCA) for Legacy Applications
SQL Azure Dec 2010 Update
SQL Azure Dec Update
Data Science Across Data Sources with Apache Arrow
Kubernetes Online Training | Docker and Kubernetes Training
Ad

Recently uploaded (20)

PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
L1 - Introduction to python Backend.pptx
PDF
AI in Product Development-omnex systems
PPTX
Transform Your Business with a Software ERP System
PPTX
Introduction to Artificial Intelligence
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Nekopoi APK 2025 free lastest update
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Design an Analysis of Algorithms I-SECS-1021-03
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Operating system designcfffgfgggggggvggggggggg
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Design an Analysis of Algorithms II-SECS-1021-03
L1 - Introduction to python Backend.pptx
AI in Product Development-omnex systems
Transform Your Business with a Software ERP System
Introduction to Artificial Intelligence
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Softaken Excel to vCard Converter Software.pdf
How Creative Agencies Leverage Project Management Software.pdf
Nekopoi APK 2025 free lastest update
Odoo Companies in India – Driving Business Transformation.pdf
Odoo POS Development Services by CandidRoot Solutions
Navsoft: AI-Powered Business Solutions & Custom Software Development
VVF-Customer-Presentation2025-Ver1.9.pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf

Scalar DL Technical Overview

  • 1. Scalar DL Technical Overview 1 Dec, 2021 1
  • 2. © 2021Scalar, inc. Confidential Scalar DL: Tamper-Evident and Scalable Database System 2
  • 3. © 2021Scalar, inc. Confidential Key Characteristics in Scalar DL 3 Tamper-evident Scalable Correct Database-agnostic Cloud-agnostic Byzantine faults can be detected as long as N > f Performance and availability can be linearly scaled No intermediate states are visible, and data is always up-to-date No dependency on particular database products No dependency on particular public clouds N: # of administrative domains in a database system, f: # of faulty domains Cassandra, Amazon DynamoDB, Azure Cosmos DB, and JDBC-supported major RDBMSs (MySQL, PostgreSQL, Oracle Database) are supported. AWS, Azure, EKS, and AKS are supported. ACID-compliant and strong consistent database system (i.e., strict serializable) DVi = DV / N・RF (RF: Replication Factor << N)
  • 4. © 2021Scalar, inc. Confidential Scalar DL System Architecture 4 Pattern 1 Ledger Pattern 2 Pattern 3 Client SDK Ledger Ordering Client SDK Proofs Ledger Client SDK Smart Contract (signed) Private keys Public keys Auditor
  • 5. © 2021Scalar, inc. Confidential Scalar DL: Ledger 5 User (Client) Java Contract Signature Private Key Scalar DL network function invoke() { if (accounts[0].data.balance < args.val) { throw new Error(“not enough balance”); } accounts[0].data.balance -= args.val; accounts[1].data.balance += args.val; results = { … }; } Payment Contract Request : (contract, args, sig) Asset ID Age Data (before) Data (after) Sigs Func (ref) Args Hash A 1 { } { balance = 100, …} charge { val = 100 } B 1 { } { balance = 200, …} charge { val = 200 } A 2 { A: {balance = 100}, B: {balance = 200} …} { balance = 90, …} payment { val = 10 } SN = Func (SN-1 , Args) Deterministic & TE TE If S0 is TE ⇒ SN is TE Public Key B 2 { A: {balance = 100}, B: {balance = 200} …} { balance = 210, …} payment { val = 10 } H(A1) H(B1) State hash chain Tamper Evidence (TE) of ledger entries: Arguments { accounts = [“A”, “B”], val = 10, …} * includes other accounts data Argument
  • 6. © 2021Scalar, inc. Confidential Scalar DL: Auditor 6 Auditor managed by a different organization Client Execute Asset Proof Request Proof Asset Proof T Ledger Compare to detect tampering Auditor manages the proofs of execution to recompute assets without trusting the integrity of data given from Ledger (1 patented, 1 filed)
  • 7. © 2021Scalar, inc. Confidential Scalar DL: Ordering 7 7 Client SDK Scalar DL Ordering Private key Smart Contract (signed) Extracts parallelism by utilizing partial order property of contracts execution without violating determinism (2 patented) Execute contracts independently … Compare to detect tampering
  • 8. © 2021Scalar, inc. Confidential Key Difference between Public Blockchains and Scalar DL 8 Public Blockchains (Ethereum …) Scalar DL • History diverges in normal cases – It diverges even if no malicious activities ⇒ Impossible to guarantee finality • History diverges only in abnormal cases – If it diverges, it is caused by malicious activities ⇒ Possible to guarantee finality IEEE ICDCS Workshop’16
  • 9. © 2021Scalar, inc. Confidential Key Difference between Private Blockchains (BFT SMR*) and Scalar DL 9 Private Blockchains / BFT SMR (HL fabric, Tendermint…) Scalar DL Data is totally ordered ⇒ Hard to parallelize/scale Data is partially ordered ⇒ Easy to parallelize/scale Sequential processing is required Parallelizable * Private blockchains are thought to be variants of techniques called Byzantine-fault tolerance state machine replication (BFT SMR)
  • 10. © 2021Scalar, inc. Confidential Unique Features 1 : ACID Nested Contract Execution • Multiple contracts can be executed atomically 10 Contract 1 Transaction Tamper-evident ledger Contract 2 Contract 3 Atomic execution
  • 11. © 2021Scalar, inc. Confidential Unique Features 2 : User-defined Function (patented) • Function is a business logic for creating deletable and easy to search records • Remedy the downsides of ledger structure and tamper-evidence property 11 Mutable database Function Contract Transaction Tamper-evident ledger Atomic execution Business logic Evidence that business logic is executed
  • 12. © 2021Scalar, inc. Confidential Benefits of User-defined Function 12 App Not deletable Not searchable flexibly App Not tamper-evident Blockchain DB App DB Blockchain Inconsistent App Scalar DL log log Mutable records Tamper-evident records Tamper-evident Deletable Searchable flexibly Consistent
  • 13. © 2021Scalar, inc. Confidential Benchmark Results with Smallbank workload • Fabric 1.4.11: 2 orgs (each has 3 peers) + 3-node Raft orderers • Scalar DL: 2 orgs (each has 3 C* node w/ RF=3) + 3 Scalar DL nodes 13 i3.2xlarge for each peer and database node
  • 14. © 2021Scalar, inc. Confidential Scalability 14 Scalar DL achieves near-linear scalability
  • 15. © 2021Scalar, inc. Confidential Verification Results • Scalar DL has been heavily tested with Jepsen and our destructive tools – Note that Jepsen tests are created and conducted by Scalar – It has passed both tests for a long time – See https://github.com/scalar-labs/scalar-jepsen for more detail • TLA+ formal verification is also passing 15 Jepsen Passed
  • 16. © 2021Scalar, inc. Confidential Use Cases : Where to use Scalar DL 16 • Data integrity is required – Data can not be altered or deleted maliciously • Scalability is required – Many requests from many end-users or devices • There is a main organization – And there are a few auditors • Byzantine fault detection is acceptable Digital evidence / Database forensics Our focuses: