Who Needs One Database Anyway? byGlauber Costa

ScyllaDB 100 views 17 slides Mar 08, 2025
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

What if, instead of one database, an app created a million? This talk explores the trends driving this shift, why it makes sense for some use cases, and the infrastructure changes needed to support it. Get ready to rethink how databases scale.


Slide Content

A ScyllaDB Community
Who Needs One
Database Anyway?
Glauber Costa
CEO

Glauber Costa
■Former Linux Kernel contributor at Red Hat and others
■Former VP of Field Engineering at ScyllaDB
■Former Staff Engineer at Datadog
■Founder / CEO at Turso

■Why multitenancy?
■How multitenancy?
■Architectural comparison.
Presentation Agenda

Why Multitenancy?

Bring in the law!
Shorter path to compliance
■Per-user isolation.
■Per-user encryption.

Developer Velocity
■Up if mistakes cost less.
■Shared resources increase
probability of mistakes.
■Shared database is source of terror.

Independent replication

Simplicity
■No need for row-level security.
■No need for caching (with replication).
■Independent backup / restores.

How Multitenancy?

Let’s do it!
■Pick a boundary that shards naturally (i.e. user)
■Make application aware of it.
■Every unit is just a database.

Data distribution drives cost
Expectation

Data distribution drives cost
Expectation Reality

Multitenant server:

Idle database costs 0 ( +
storage costs)

SQLite’s foundation:

Memory can be limited: SQLite pragma cache_size + heap limit functions

CPU can be reasonably limited: progress handler, how many bytecode
instructions are executed

Architectural Comparison

A familiar pattern?
●Consistent hashing?
●No sorting order across keys?
●Do you recognize this somehow?

Stay in Touch
Glauber Costa
[email protected]
@glcst
glommer
in/glommer
Tags