April 20251:10:205.9k views

Building a serverless database replica with Carl Sverre

About

In this episode, Carl Sverre and I discuss why syncing everything is a bad idea and how his new project, Graft, makes edge-native, partially replicated databases possible. We dig into SQLite, object storage, transactional guarantees, and why Graft might be the foundation for serverless database replicas.

Transcript

Everything we said

00:01

Aaron Francis

All right. Welcome back to Database School. We have our first repeat guest- ... back on the show, Mr. Carl Siver. Now, Carl, I got a, I got a bone to pick with you because last time you were on, we talked about SQLSync, and now you've got this blog post called Stop Syncing Everything. So, uh, what, what the heck is going on here?

00:23

So if y'all haven't listened to the first one, we talked about, um, syncing some SQLite stuff. Very fun, very technical, very interesting. But you have something new that I think has come out of this, but the title does say Stop Syncing Everything, so we gotta get into that. So tell us what's been going on in the past couple of months here.

00:42

Carl Sverre

Uh, thank you so much, Aaron. Uh, thanks for having me on again. And you're, you know, you're absolutely right. You hit the, hit the nail on the head. Uh, I, I went, uh, you know, when you're writing these things, you have to go back and forth between, like, what's a good blog post title and, like, how does it align, and everything like that.

00:59

Aaron Francis

That's perfect.

00:59

Carl Sverre

Um, my last blog post was called Stop Building Databases. I wanted to- ... I wanted to sort of like throwback to that with a similar title, but I also wanted to say something pretty, pretty important, which is that in order for a, a, a database to sort of be web native, for, for it to be edge-native, we have to sort of eliminate this idea of moving all of the data everywhere.

01:25

Like we have-

01:25

Aaron Francis

Okay

01:25

Carl Sverre

... to sort of build fundamentally different back-end systems. Um, and so that is really what the title is about. It's about stop syncing everything. It doesn't mean, you know, stop syncing-

01:36

Aaron Francis

Mm-hmm

01:36

Carl Sverre

... which is obviously a hilarious, uh- ... alignment with, like, SQLSync.

01:41

Aaron Francis

Mm-hmm.

01:41

Carl Sverre

Um, no, it's, it's about in order for SQLSync to work efficiently and effectively, we can't sync all the data.

01:49

Aaron Francis

Okay.

01:49

Carl Sverre

Um, so a good example of that is, like, your, you know, you're a client, you're a web app that, uh, is, is accessing some database through, for example, SQLSync. Um, if you have to download 100% of that database to be able to-

02:03

Aaron Francis

Mm-hmm

02:03

Carl Sverre

... show the user just, like, one page, um, that would be equivalent to, in your back-end service, like your traditional app, literally like saying select star from every single table, uh, in order to render, you know, like one row, right? It do-

02:16

Aaron Francis

Mm-hmm

02:16

Carl Sverre

... doesn't make a lot of sense. Um, so that's really where that comes from.

02:20

Aaron Francis

Okay. So the word, the word everything is doing a lot of work in that title. It's a, it's a great title. I, it must be.

02:26

Carl Sverre

Thank you.

02:26

Aaron Francis

Stop Syncing Everything, I'm intrigued already. Um, it's also a great blog post, which we'll walk through. But give us, give us a one-minute recap on what SQLSync is, um, and how that is the genesis for what we're going to talk about today.

02:39

Carl Sverre

Um, yeah. So, uh, about I, I guess at this point, a year and a half ago or so, I launched SQLSync. Um, SQLSync is, I describe it as multiplayer SQLite. So, uh, SQLite, um, a lot of programmers may be familiar with SQLite. It's, it's a really simple embeddable relational database. Um, so it sits right inside of your, uh, your app, and you yourself have written a amazing, uh, like book on it.

03:05

I guess, is it a book or is it more of like a, a web video series?

03:08

Aaron Francis

Uh, video course now.

03:09

Carl Sverre

Video course.

03:09

Aaron Francis

But stay tuned. Yeah.

03:10

Carl Sverre

Stay tuned.

03:11

Aaron Francis

You're scooping me, but yeah, stay tuned. Uh, keep going.

03:14

Carl Sverre

Uh, but yeah. So a video course about SQLite. I mean, it's, it's a fantastic database and, and it-

03:18

Aaron Francis

Mm-hmm

03:18

Carl Sverre

... it has all these really nice properties, especially when you're working, um, like in clients and in, in devices and on the edge because you can just have a nice little sort of consolidated, uh, your data and your app is like together in-

03:32

Aaron Francis

Mm-hmm

03:32

Carl Sverre

... like one little bundle. Um, it doesn't have a network layer, right? It's just literally, uh, in memory essentially is how you're accessing the database. So SQLite's fantastic, and SQLSync basically said, "Okay, let's take SQLite, and then what if we wanted to have SQLite running in a bunch of different places and have them all sort of being able to collaborate on the same SQLite database? How would we do that?" Um, and there's been a couple of different approaches to that.

03:56

Um, SQLSync takes a, what I call a physical approach, which is that we're actually replicating the raw SQLite database file. So the exact same file-

04:05

Aaron Francis

Okay

04:05

Carl Sverre

... that would show up on your disk if you were just using regular SQLite. That same exact file, the same bits and bytes, are being synchronized to all the different sort of players in the multiplayer system. Um, so that is what SQLSync is. Um, I realized while building SQLSync that for SQLSync to work really efficiently, it needed a back end that could do partial physical replication.

04:31

Aaron Francis

Okay.

04:31

Carl Sverre

So being able to send this sort of SQLite database file, this physical bag of bits that comprises a SQLite database, be able to send that to, uh, a downstream consumer, so a client, but then have that client only retrieve the sort of subset of the file that they actually care about, right? So the equivalent of if I say select star from T where ID equals five, why am I downloading the whole database for, for that row, right?

04:57

It doesn't make sense. Let's, let's have it, the system be able to only download the tiny fraction of the database that's required to satisfy that particular query. So I'm launching a, a system called Graft, which is a transactional storage engine that does exactly this. It acts as a general purpose physical s- data storage engine. Uh, so you can use it to back SQLite.

05:18

You could use it to back just like regular file system operations. So it's just, it's very agnostic to the data, and its, its key concept is that it supports, uh, physical replication that is partial. So it supports this feature of clients being able to just pull the portion of the data that they need, um, when they need it.

05:38

Aaron Francis

Hey, I hope you're enjoying this. Just as a reminder, you can learn more about SQLite at highperformancesqlite.com. I'll get out of your way. Back to the interview. Okay. So backing up all the way to SQLSync, you're building, you're building a thing, um, would you say that compared to Graft, which we'll dig into for the rest of the show, compared to Graft, SQLSync, uh, the- The syncing part of SQLSync was kind of a blunt instrument.

06:08

Carl Sverre

Yes.

06:08

Aaron Francis

Is that a fair way to describe that?

06:11

Carl Sverre

Exactly.

06:12

Aaron Francis

Okay.

06:12

Carl Sverre

Yeah, the SQLSync-

06:13

Aaron Francis

So-

06:13

Carl Sverre

Oh yeah, go ahead.

06:14

Aaron Francis

It, it did the job, but in a way that, um, is gonna run into scaling limits or limits with, with shoddy networks, or just limits in general. So it's not like it failed to do the job, it's just, uh, it did the job, but we could do a better job of, of that thing. Is that right?

06:31

Carl Sverre

Exactly, yeah.

06:32

Aaron Francis

Okay.

06:32

Carl Sverre

The SQLSync replication system was based on traditional physical replication, so the same exact replication that shows up in almost every sort of traditional database, Postgres, MySQL. Um, and essentially it requires sending all of the data to every single client.

06:49

Aaron Francis

Okay.

06:49

Carl Sverre

Um, and so yeah.

06:51

Aaron Francis

Okay. So you're, you're building this thing out and in, in classic engineer fashion, or maybe even classic entrepreneur fashion, you're building a thing and you realize you need to build another thing to build the thing. And so we go, you know, deeper and deeper into the rabbit hole. Um, so what was the point in building SQLSync where you realized, this works, but boy, we've got to come up with something fundamentally different?

07:15

Like, what was the tipping point? 'Cause you spent a year and a half on SQLSync, and presumably it's quite good, but still you decided, no, no, no, we gotta, we gotta change tracks here.

07:27

Carl Sverre

Yeah. So, um, when I launched, after launching SQLSync, uh, I started doing the sort of standard entrepreneur thing of going and talking to as many people as possible about it. Um, and also as an engineer, as a software engineer, I care very deeply that people use my solution because my solution is the right solution.

07:48

Aaron Francis

Mm.

07:48

Carl Sverre

Not just because I want people to use my solution, right? Like, it, it matters to me that it is sort of correct, it is, it is the best choice. Um, and it was very apparent quite quickly that for there to be a multiplayer SQLite built on top of ph- the physical database, uh, you needed to have partial replication. If you didn't have partial replication, it just doesn't scale to the tens of thousands of clients that you might have-

08:14

Aaron Francis

Mm

08:14

Carl Sverre

... accessing your web app. So, so it was, it w- it just became very obvious right away that as soon as I started talking to people that I was like, "You know what? I can't sell this, uh, and feel good about it," because it, it just fundamentally was the wrong architecture.

08:32

Aaron Francis

Everyone, everyone has a perfect plan until it gets out in the real world and you start talking to customers. But-

08:37

Carl Sverre

That's why we release as fast as possible.

08:40

Aaron Francis

That's right. And that's why we talk to customers. So you did, which already puts you ahead of, you know, 95% of just pure engineers, is you went out and you talked to the people, right? And so you're talking to the people and you're realizing, uh, what I built works in, in some cases, but I need, I need to support more cases. And so Graft starts brewing in your mind.

09:00

Um, and so I think one of the things, if we can describe, uh, Graft at a high level and then we can start digging in, one of the things that's fascinating to me is that it's not just a SQLite thing. It's, like, totally agnostic. So give us, like, the 30,000-foot view of, um, Graft, and if you want to couch it in terms of SQLite to be more approachable, that's fine, but then we can dig into more of it in a second.

09:26

Carl Sverre

Yeah. Um, so I, I tend to describe Graft through the lens of object storage.

09:32

Aaron Francis

Okay.

09:32

Carl Sverre

Um, so, uh, a lot of engineers have used object storage. May- a lot of them haven't used object storage, but you can think of object storage as basically just, like, this big API in the cloud. Uh, the most famous object storage is by far AWS S3, uh, but there's a bunch of other object storage engines. Um, the nice thing about object storage, like, the good thing about it, is that it supports, like, cr- basically, uh, not infinite, but very, very high throughput.

09:57

Um, so you could have tons and tons of, like, concurrent connections to object storage pulling data out of it. You can push a lot of data into it. It's, it's very scalable, it's very reliable, and it's also very cheap. It's, like, very excellent if you just wanna put some data somewhere and just, like, keep it there and not think about it, right? The problem with object storage is that it doesn't scale to very, very small high-frequency writes, right?

10:20

Aaron Francis

Right.

10:21

Carl Sverre

So, like, if you think about a database like SQLite or any relational sort of workload, um, especially, uh, specifically transactional workloads, they require, like, pushing and pulling data, like small bits of data of the overall data set, um, frequently, right, to handle transactions. And so using, um, object storage naively doesn't really make sense.

10:43

So the way I describe Graft is that it is object storage that supports small writes and supports built-in partial replication.

10:55

Aaron Francis

Okay.

10:55

Carl Sverre

So it's, it's the two sort of, those two big features sit on top of, um, on top of object storage. So Graft is built directly on top of object store. Uh, but it, it allows the object... It, it basically reframes the data in a way that makes sense for the economics of object storage.

11:13

Aaron Francis

I see.

11:13

Carl Sverre

So you're still taking advantage of all of that cheapness and that durability and that throughput, but you're able to actually execute small writes and replicating reads.

11:23

Aaron Francis

So would it be, would it be fair to say that Graft is a layer between an object store, like, I guess a, specifically a cloud-based object store, so S3, R2, B2, any of those. It's a layer between that primitive and the thing, and, and I guess whatever's interacting with Graft.

11:46

So it kind of sits in the middle between presumably clients and S3?

11:51

Carl Sverre

That's exactly right.

11:52

Aaron Francis

Okay. Okay.

11:53

Carl Sverre

Yeah, so-

11:54

Aaron Francis

And what is the, what is the way, you said it kind of reframes. So I imagine it's some sort of, like, abstraction layer, translation layer, buffer, something like that. What is the way that it reframes the bits and bytes such that it works with this- ... the economics of these underlying object stores.

12:12

Carl Sverre

Yeah. So, um, so Graft is like, um... I'll, I'll first explain that Graft is basically, uh, a API, just like any other cloud API.

12:23

Aaron Francis

Okay.

12:23

Carl Sverre

Right? So the way that clients interact with Graft is, is via a very simple API, and the API basically lets them write transactions to a object in object storage. Represents, let's say, a SQLite file that has, uh, that's one gigabyte, but you wanna modify, like, the first one megabyte of the file, or, like, let's say some arbitrary one megabyte of the file.

12:45

Graft gives you like a, a REST API basically that says, "Okay, I just want to write, you know, this random one megabyte of the file. Like, here, here's the section of the file I wanna modify. Commit that as a transaction." Right?

12:57

Aaron Francis

Okay.

12:58

Carl Sverre

Internally, what Graft is doing is that it is a heavily multi-tenant system. So you, along with everyone else using Graft, are all committing transactions to S3, like, through-

13:11

Aaron Francis

Okay

13:11

Carl Sverre

... Graft.

13:12

Aaron Francis

Mm-hmm, mm-hmm.

13:12

Carl Sverre

And so what Graft does is it's not efficient. So basically Graft takes advantage... Or not takes advantage, but has to deal with the fact that it wouldn't be transaction, tran- uh, eff- efficient for me to commit each of those individual transactions as individual writes.

13:28

Aaron Francis

Okay.

13:28

Carl Sverre

It would be very expensive, but also it just, it doesn't take advantage of object storage properties.

13:33

Aaron Francis

Mm-hmm.

13:34

Carl Sverre

What Graft instead does is it basically multi-tenants all of those individual writes into very large writes that go into S3. So you could think of it as a smart multi-tenant buffer-

13:46

Aaron Francis

Mm

13:46

Carl Sverre

... that basically coalesces writes from multiple transactions, puts them into S3 in a safe way that Graft still basically guarantees that they're sort of stored in a way that they don't see each other's writes. Like, you don't get to see other people's data. It just, it's like an internal optimization-

14:03

Aaron Francis

Hmm

14:03

Carl Sverre

... that allows it to take advantage of, um, the properties of object storage, basically.

14:08

Aaron Francis

So this is fascinating. Um, okay. So Graft is running somewhere, right? So it's running somewhere on some server, some serverless, whatever, compute. It's running. Um, as, as a client, I am hammering Graft. I'm, you know, sending hundreds of requests. Uh, but also a bunch of other clients are doing the same thing, right?

14:32

So we've got, you know, thousands of requests coming in, and instead of passing that hammering through to S3, which can get expensive pretty quickly. I mean-

14:44

Carl Sverre

Mm

14:44

Aaron Francis

... I don't know the performance characteristics, but I do know that if you're, you know, hammering it with thousands of, you know, puts per second, well, you're gonna, you're gonna start paying a lot pretty quickly. So if I'm understanding correctly, Graft sits in the middle and kind of pools them up from many different clients, pools them up, does some sort of, um, some sort of intelligent, like, batching, and then writes them all in one big splat to the underlying object storage.

15:12

So it turns, you know, 1,000 requests into one, which is basically free, but also very fast. Is that fair and accurate so far?

15:22

Carl Sverre

Yes. Um, however, it is important to talk about speed here because-

15:26

Aaron Francis

Okay

15:27

Carl Sverre

... speed in, in the world of computers tends to be broken into, like, sort of two concepts. There's throughput and there's latency.

15:33

Aaron Francis

Okay.

15:34

Carl Sverre

Uh, same thing as, like, throughput and latency, uh, there's like y- I don't know. If there's any engineers listening, right, you could think about this as, like, fluid dynamics as well, right? So it's very similar. The width of the river, but also, like, the how much the water, uh, like, the, the, the steepness of the river determines the speed at which water can move, like, in terms of total volume can move from one place to another.

15:55

Same thing-

15:56

Aaron Francis

Okay

15:56

Carl Sverre

... with, like, with, with computers moving data. Um, Graft and object storage has sort of the same semantic properties in terms of trading off throughput for lat... Or trading off latency for throughput, right? So because Graft wants to be able to maximize and, and take advantage of the economics of object storage, and there's a bunch of other properties that I'm taking advantage of by doing this, Graft basically has a, like, one-second

16:27

commit heartbeat.

16:29

Aaron Francis

Hmm.

16:29

Carl Sverre

So it means that if you send a write to Graft for a particular volume, you will have to wait up to the next second before that write's acknowledged. So it-

16:40

Aaron Francis

I see

16:40

Carl Sverre

... it basically reduces your, your, your... It, it increases your latency, right? It means that-

16:45

Aaron Francis

Mm-hmm

16:45

Carl Sverre

... your latency is now, uh, linked to a, like, one-second heartbeat. Um, that heartbeat actually decreases dynamically in Graft based on the total number of tenants who are concurrently writing. So the more people using Graft, the faster, the lower the latency is. It's a really-

17:03

Aaron Francis

Mm-hmm

17:03

Carl Sverre

... interesting property. Um, but we have to do this to be able to take advantage of, uh, bac- basically ensuring that we're writing sort of, like, optimal segments to S3.

17:12

Aaron Francis

Right.

17:14

Carl Sverre

So that, that basically is a, a very important property to think about with Graft. Uh, now you might, like... The immediate thing that people think about is, like, well, if you wanna run a relational database on top of Graft, but your latency is, like, up to a second-

17:27

Aaron Francis

Right, right, right

17:28

Carl Sverre

... per transaction, that sounds, like, really bad.

17:30

Aaron Francis

Mm-hmm.

17:31

Carl Sverre

And, and it would be bad if Graft wasn't designed to be used from a sync engine perspective, right?

17:40

Aaron Francis

Okay.

17:40

Carl Sverre

So we'll, we'll get into the client side, I think. I think we need to, like, talk a bunch about the client side, which is basically the part that sits with SQLite.

17:48

Aaron Francis

Mm-hmm.

17:49

Carl Sverre

Um, but the client side basically decouples the, like, local write frequency, so the frequency that-

17:55

Aaron Francis

Yeah

17:55

Carl Sverre

... is ex- observed by the user from the sync frequency, and it, it does its own batching internally that's still transactionally consistent. Um, and by decoupling this, it means that a user of Graft can write 1,000 times a second to the database But Graft itself is essentially internally batching that as well, and then syncing just one time per second to the server.

18:19

So you get the advantage of essentially all the advantages of throughput and optimization and economics of object store without changing the application dynamic of being able to sort of use a, a relational database as a normal high-frequency local relational database.

18:36

Aaron Francis

Okay. That's helpful. Um, because when you said one second las- latency, I thought, "Well, that kind of sucks, man." But that makes a lot, that makes a lot of sense. And we'll get to, we'll get to the client, um, here in a second. But working our way out from object storage, um, so is it... I guess one question is, um, Graft has compute somewhere.

18:58

So are you running Graft Cloud? Is this a everyone can run Graft? Like, what's the story of where the compute lives? And then that'll inform my object storage question.

19:08

Carl Sverre

Yeah. So, uh, I'm running Graft Cloud, which is, uh, available for a wait list right now.

19:12

Aaron Francis

Okay.

19:13

Carl Sverre

Um, Graft Cloud is running on Fly.io.

19:16

Aaron Francis

Okay.

19:17

Carl Sverre

So it's, uh, it just scales out horizontally.

19:20

Aaron Francis

Mm-hmm.

19:20

Carl Sverre

It's just a, it's a lightweight server. Um, and one massive advantage of Graft waiting for S3 to acknowledge writes, like the fact that we're essentially buffering and we're being like, "We're gonna wait until S3 decides to be okay with this," the huge advantage here is that our, the Graft sort of like server side is completely stateless.

19:43

It has no consensus. It doesn't need to talk to each other. You can horizontally scale it to infinity, um-

19:51

Aaron Francis

That's cool

19:51

Carl Sverre

... because it internally is completely dependent on the object store providing all of the guarantees that it needs.

20:00

Aaron Francis

That's clever. So then you can put your compute anywhere, which is one of the great benefits of Fly, is they've got-

20:05

Carl Sverre

Exactly

20:05

Aaron Francis

... easy compute everywhere. Um, and then all of the... I don't know it's all hard, but all of the quote unquote hard parts are handled by the behemoth, which wou- in this case would be S3.

20:18

Carl Sverre

Yeah.

20:18

Aaron Francis

So they're handling all of the state, which historically s- syncing state between everyone is hard. As you know, that's your whole life. Um, so I guess then my question is, does... Is it compatible with any S3 API? Um, so could you run it on R2, B2, any of those things as well?

20:38

Carl Sverre

Yes. Uh, and actually, um, my, uh, my, my like managed service version of Graft is actually-

20:43

Aaron Francis

Mm-hmm

20:43

Carl Sverre

... running on top of Tigris. Um-

20:45

Aaron Francis

Oh, good

20:45

Carl Sverre

... which I'd love to plug, because I, I think Tigris is doing a really fantastic job. Um, they're basically providing the same S3 object store API for Fly.io customers.

20:56

Aaron Francis

Yeah.

20:56

Carl Sverre

Um, I think you can use Tigris from, from anywhere. It's just like a generic S3 sort of clone-

21:01

Aaron Francis

Mm-hmm

21:01

Carl Sverre

... in the sense that it's accessible through the same API. Um, I'm using it from Fly 'cause it gives nice properties when you're running on Fly. Uh, but it importantly, uh, me- means that I'm completely agnostic. So I have one user who's using it on R2. Uh, I've used it on S3. I've used it on, of course, Tigris. Uh, and I also have used it on MinIO. And so far I haven't-

21:21

Aaron Francis

Oh, cool

21:21

Carl Sverre

... run into any issues.

21:23

Aaron Francis

Is MinIO the local or, I guess, like the self-hosted one? I guess not necessarily local.

21:27

Carl Sverre

Yeah, e- exactly, yeah. MinIO you can just run inside a Docker container.

21:30

Aaron Francis

Cool.

21:30

Carl Sverre

So I use it for all my testing and, and this type of stuff.

21:33

Aaron Francis

Super smart. Yeah. Yeah, I've heard more and more about Tigris recently. I, um, for a long time thought they were a part of Fly, but they're just in the, the Fly friends and family network.

21:43

Carl Sverre

Yeah.

21:43

Aaron Francis

Um, but they seem super great. Um, does... This is a little just a personal tangent. Does this new S3 Instant whatever, whatever tier, does that buy you anything?

21:54

Carl Sverre

ExpressZone, yeah. Yes. ExpressZone... Sorry, what was your question? I, I-

21:58

Aaron Francis

Does, does that buy you, as Graft, does that get you anything that, um, you didn't otherwise have?

22:03

Carl Sverre

Yeah. So one of the, uh, one of the big next things that I'm gonna build on Graft, um... Well, there, I have so many things in my roadmap that I wanna build, but one of the big things is making it an optional choice at the, uh, for the user to reduce their, their latency in exchange for money.

22:24

Aaron Francis

Oh.

22:25

Carl Sverre

So basically, uh, Graft is currently optimized for cost.

22:30

Aaron Francis

Okay.

22:30

Carl Sverre

It's doing everything it can to basically give you the cheapest possible solution, but at the highest possible expense of latency.

22:38

Aaron Francis

Mm.

22:38

Carl Sverre

So your, your latency's at the max, your cost at the bottom. What I wanna do is offer in my managed service, I wanna make this a slider.

22:46

Aaron Francis

Cool.

22:47

Carl Sverre

Where if you increase the cost, the latency goes down, and if you decrease the cost, the latency goes up. And y- this allows customers can, to choose this at a, like per volume basis.

22:56

Aaron Francis

Cool.

22:56

Carl Sverre

And there's a number of ways to decrease latency without overly affecting cost. Um, and the best way is using S3 ExpressZone or equivalent, um, because you can actually get pretty low write latency. You can get to like 50 millisecond write latency, um, at just a, a, s- you know, more, more of a cost. Um-

23:16

Aaron Francis

Mm

23:16

Carl Sverre

... the, the next layer after that, uh, which is also something I'd eventually probably wanna do, is adding a, like if you imagine having like a, a little collection of, let's say, EC2 instances which acts as a, like write proxy in front of S3.

23:34

Aaron Francis

Okay.

23:34

Carl Sverre

Except the way that they... The, the, the key is that if you actually make them stateful, if you give them a consensus ring, and so that they're-

23:42

Aaron Francis

Mm-hmm

23:42

Carl Sverre

... durable, then what you can do is you can write to them, and then you can immediately confirm the write without waiting for the write to flow back to S3. Um-

23:51

Aaron Francis

That's interesting

23:52

Carl Sverre

... the downside of doing this is that now you're managing state. Like now you-

23:56

Aaron Francis

Yeah

23:56

Carl Sverre

... are S3. Now you have-

23:57

Aaron Francis

Uh-huh

23:57

Carl Sverre

... to provide durability, so there's a lot of cost involved. Um, but also the other downside is that now your read workload has to go and check that little ring of consensus guys-

24:07

Aaron Francis

Okay

24:07

Carl Sverre

... before they can check S3, right? So it, it adds a lot of complexity, um, but that's sort of the current industry standard way of dramatically reducing latency. Like, with, with that approach, you can reduce latency to milliseconds or, or i- in, if you're really taking advantage of memory, microseconds.

24:24

Aaron Francis

Wow, okay. Fascinating. That's super cool. Um, yeah, we-- I'm sure you have seen lots of the NVMe talk about, you know, putting the bare metal drives-

24:35

Carl Sverre

Mm-hmm

24:36

Aaron Francis

... um, right onto, right onto the servers, and I'm wondering, this, um, th- I'm just asking my own questions now. I'm, we'll get back to, like, what you're up to, but I have so many questions. I'm wondering, um, with the Minio, which you said runs inside of Docker, can you, could you just, instead of having S3 back it at all, have some sort of, like, super beefed up machine with locally attached storage and just run it that way, or is that insane?

25:02

Carl Sverre

So you absolutely can, and, like, Graft is pretty agnostic. Um, one important thing that I did is, uh, that I think is important is Graft is open source. Like, you can go and download-

25:11

Aaron Francis

Mm

25:11

Carl Sverre

... Graft server, you can go run it on your own system, you can back it by Minio, you can back it by whatever you want. Uh, Graft takes almost no dependency on the S3 API. Like, it uses, like, three S3 operations. So as long as your particular blend of S3 object store compatibility layer supports those three queries or those three API methods, like, you're good.

25:33

Like, I'm happy. Um, so yeah. You could, you could do a lot of things with Graft. Uh, I'm really excited about people running it, like, on prem in their own environment.

25:41

Aaron Francis

Mm-hmm.

25:41

Carl Sverre

I'm excited about even people, like, uh, any individuals or any, any pro... Uh, software engineers or whatever that are, um, already have, like, Rust-based stack.

25:51

Aaron Francis

Mm.

25:51

Carl Sverre

Like, if they're already using Rust pretty heavily inside of their server environment, they could even embed Graft into their actual server stack. Um-

26:00

Aaron Francis

Sure

26:00

Carl Sverre

... Graft is pretty agnostic. It's just like, it's a pretty simple little stateless thing that you can just scale out, throw it anywhere, um, and you get all these properties.

26:08

Aaron Francis

I love it. Cool, okay. All right. Uh, curiosity satisfied for now. Let's work our way out from object storage. So at some point, uh, the Graft, you called it the Graft server. Is that the right terminology?

26:20

Carl Sverre

I have two servers. Uh, so I, I, I, um... Anyways, the, the name of the servers is that there's a page store and a meta store.

26:28

Aaron Francis

Okay.

26:28

Carl Sverre

So page store obviously stores the, like, actual page data that is inside of the, what is called volumes.

26:34

Aaron Francis

Mm.

26:34

Carl Sverre

So volume is like, let's say, a file in Graft.

26:37

Aaron Francis

Okay.

26:37

Carl Sverre

Uh, that could be a SQLite file. That could just be, like, a JPEG of some cats. Like, whatever you want. Um, and the page store is what's storing and accessing the actual data of that file. The meta store is responsible for storing metadata of the volume. Um, so meta stores are really, really lightweight.

26:54

Aaron Francis

Got it.

26:54

Carl Sverre

And the reason that they're separate, they could actually be just one thing.

26:57

Aaron Francis

Yeah.

26:57

Carl Sverre

And you can actually put them in the same binary if you want. Uh, but the reason they're separate is because the scaling semantics of the two, you may want, like, 10 or-

27:06

Aaron Francis

Oh

27:06

Carl Sverre

... 100 X more page stores than, than meta stores, right?

27:08

Aaron Francis

Okay.

27:09

Carl Sverre

Um, just because meta store you don't need to scale as, as much, basically.

27:12

Aaron Francis

That makes sense. So if I understood that correctly, the page store is the guy that's hanging on to, is buffering those writes to the blob underneath.

27:20

Carl Sverre

That's exactly right.

27:21

Aaron Francis

So while, while the page store is hanging on to those potentially many thousands of writes, what, what is the risk there?

27:30

Carl Sverre

So your risk is currently-

27:31

Aaron Francis

So you're flushing every heartbeat, which is configurable, but what's the risk?

27:35

Carl Sverre

Yeah, so the risk is currently zero, and the reason it's zero is because the client, so, like, if we talk about the write-

27:41

Aaron Francis

Ah

27:42

Carl Sverre

... like, flow, right?

27:42

Aaron Francis

Yeah.

27:42

Carl Sverre

So the client sends a write. The client has the data, right?

27:46

Aaron Francis

Mm-hmm.

27:46

Carl Sverre

The client doesn't delete the data when it sends the write. So it has the data. It's in the process of syncing it to Graft. Um, so it sends the write to a page store, and the page store-

27:55

Aaron Francis

Mm

27:55

Carl Sverre

... internally is buffering on this, like, one-second heartbeat, and then eventually, uh, syncing it to S3. But the c- the page store doesn't currently acknowledge that write until it's been fully durably synced to object store. Um-

28:07

Aaron Francis

Got it

28:07

Carl Sverre

... because of this, the risk of the page, if the page store crashes, you're good. Like, you just re- you just connect to another page store and send the exact same write. Um, and-

28:15

Aaron Francis

Because in that case, the underlying S- S3 has all the old stuff, the client has the new stuff, and the middle guy died, so you'll just retry it.

28:23

Carl Sverre

Exactly.

28:23

Aaron Francis

Is that right? Okay. Keep going.

28:24

Carl Sverre

It's, it's designed, like, the entire system is designed to be, like, heavily idempotent. Um-

28:29

Aaron Francis

Mm

28:29

Carl Sverre

... and even better is that the entire system is designed to be, like, client-side balanced.

28:35

Aaron Francis

Mm.

28:35

Carl Sverre

Which means that you can have a client, if you were, like, really needing to get this data as durable as possible, as fast as possible, you could literally just send that same write in parallel from the client to, like, five page stores. And because the page stores don't deal with transactionality, they only deal with durability, you, you can, if all five of them succeed, that's fine.

28:57

The page store will just store temporarily five times as much data, and then it'll be garbage collected. So you're paying more money, right? 'Cause you're essentially storing five times as much data.

29:05

Aaron Francis

Uh-huh.

29:05

Carl Sverre

But you, you can, the client has all the power. They can choose exactly which s- ... transactional semantics what they want, exactly what durability semantics they want, um, and they can, they can scale that in many different ways.

29:19

Aaron Francis

That's, okay, so in that scenario where the client's a little, a little paranoid and they send it off to five different page stores, do all five of those, you said it's idempotent, so do all five of them just write the same thing?

29:32

Carl Sverre

Sure.

29:32

Aaron Francis

Because it's all the same and it doesn't matter anyway?

29:34

Carl Sverre

Yep, pretty much.

29:36

Aaron Francis

Ah, fascinating. Okay. All right. So we've got, uh, the blobs underneath. We're working out to, we've got two Graft servers.

29:44

Carl Sverre

Mm-hmm.

29:44

Aaron Francis

Is there anything else between that and the client, or should we go to the client?

29:49

Carl Sverre

Yeah, so the important thing is to talk about the, like, the read side, right?

29:54

Aaron Francis

Okay.

29:54

Carl Sverre

So we've talked about the write side. We've, we've-

29:56

Aaron Francis

Yeah

29:56

Carl Sverre

... now we've gotten some, some data into our, into Graft, which basically means that it's in object store. Um, you can think of Graft as, like, the translation system. We talked a little bit about that. You can talk to Graft to access the data. Um, the read side is where the meta store becomes really important because the meta store, you can think of it as, you can talk to the meta store and you'd be like, "Hey, meta store, can you tell me if a particular volume has changed?"

30:22

Aaron Francis

Mm.

30:22

Carl Sverre

Like, that's a really important question to be able to ask in a, like, a replication world.

30:27

Aaron Francis

And time out, just clarification, volume in your terminology means what?

30:32

Carl Sverre

Volume is just a unit of- ... collect like of data in Graft. You could think of it-

30:38

Aaron Francis

Okay

30:38

Carl Sverre

... as a file, a SQLite database. It's like one contiguous block of data.

30:44

Aaron Francis

And is it, um, are, uh, are volume and file, file like co-terminal? Like, is a single file always a single volume, or does a volume hold multiple files?

30:56

Carl Sverre

So the answer is that vol- like, from a graphs perspective, Graft has no concept of files.

31:03

Aaron Francis

Okay.

31:03

Carl Sverre

Graft literally just has, there's volumes which have an ID and then a set of pages, and that's, that's the end of graphs perspective on the world.

31:11

Aaron Francis

So it's an undifferentiated pile of bits, basically.

31:16

Carl Sverre

That-

31:16

Aaron Francis

And are they fixed size? Is a volume a fixed size?

31:19

Carl Sverre

Volumes are dynamic. You can have a volume up, like pretty large volumes, like in the like terabytes range.

31:25

Aaron Francis

Okay.

31:25

Carl Sverre

Um, the... Is that right? Yeah, I know. At least a terabyte. I'm not, it's not massive. It's not like you can't have like an exabyte volume because-

31:33

Aaron Francis

Okay

31:33

Carl Sverre

... of some choices that I've made. Uh, but it's definitely in the very, very large size space. Um-

31:39

Aaron Francis

Mm

31:39

Carl Sverre

... the, but the individual objects inside of a volume are pages, and each page is a fixed size. Currently, it's fixed to 4K, so 4,096 bytes.

31:50

Aaron Francis

Okay. So you could have a couple of files in a volume, and those files would span multiple pages potentially.

31:59

Carl Sverre

Yeah.

31:59

Aaron Francis

Or you could have even two files in one page. So it's just, uh, or it's just a, uh, rigid way to organize, a rigid and agnostic way to organize the data. Is that fair?

32:13

Carl Sverre

Yes. It's just like a really convenient way to organize data. And then the client is responsible for mapping the logical concept of whatever domain they're working in to a Graft volume. So an example of that is, let's say you're writing like a file system driver that sits on top of Graft.

32:30

Aaron Francis

Mm-hmm.

32:31

Carl Sverre

The file system driver would decide how the relationship between, you know, all the files on your file system and the Graft side. You could, you could do... Graft, it doesn't care. You could have one volume per file. That would be a fine solution. Um, you could have, uh, one gigantic volume that you internally are sort of saying, you know, this file is this region of the, of the volume, and you could do that type of mapping.

32:54

You could do some hybrid approach where you have some collection of volumes which act as like almost like partitions. Um-

33:01

Aaron Francis

Mm

33:01

Carl Sverre

... there's so many, like so many different ways to do this, and the important thing is the Graft diagnostics that you can actually do the thing that makes the most sense for your application.

33:10

Aaron Francis

So volumes are light enough that you could do a volume per file.

33:14

Carl Sverre

So the overhead of a single volume in the system, like if you just create a volume and you literally store no data in it, the overhead is about like 24 bytes.

33:26

Aaron Francis

Okay, great. And, um, for, let's say, we'll get back to the read story, but let's say, um, let's say I create a volume and I wanna put a bunch of files in it. I'm doing the file store thing you were talking about. Do I need to then, uh, do I need to then say like, to Graft that this file is this size, therefore it occupies this part of

33:56

the volume, and if it gets bigger, then I have to move it around? Or how do you... You said, uh, at some point somebody's mapping between the logical and the physical. That sounds like a lot of work. Is that a lot of work?

34:08

Carl Sverre

It is a lot of work, and that's why, you know, people using Graft are probably gonna be using it through one of the Graft or like a third party driver that has done this work.

34:17

Aaron Francis

I see.

34:18

Carl Sverre

Um, and so currently the only driver for Graft is SQLite.

34:21

Aaron Francis

Mm-hmm.

34:21

Carl Sverre

Uh, and so it maps a single SQLite database to a single Graft volume-

34:26

Aaron Francis

Mm-hmm

34:26

Carl Sverre

... and it manages that relationship in a really efficient way. Um, I'm exploring the idea of doing a, like, a network block device, which is a Linux abstraction that would let me map, uh, a effectively like an arbitrary Linux file system to Graft.

34:42

Aaron Francis

Mm.

34:42

Carl Sverre

Um, I'm also exploring the idea of just exposing like a, like a file primitive where you just say, like, when you, in your, in your live, like in Python, you say like, new file, and internally it's just essentially allocating a Graft volume, um-

34:55

Aaron Francis

Mm

34:55

Carl Sverre

... per file. So there's just like a lot of different trade-offs. But yeah, you're, like, as a user, you're most likely gonna be using Graft through a, like at a higher level driver that will be managing-

35:05

Aaron Francis

Mm-hmm

35:05

Carl Sverre

... this relationship.

35:07

Aaron Francis

Okay, cool. That's super helpful. All right, back to the read story. So we got sidetracked because one thing you said was the client asks the meta store or the meta server, you know, what, what volumes have changed, and we got lost on volumes, but that's very helpful 'cause now I know what a volume is. So finish out the read story for me.

35:26

Carl Sverre

Yeah. So the, the important thing about partial replication, right? So this is a big driving requirement of Graft, is that clients can only read the portion of the volume that they care about. Um, the important thing about this when you're... Anyways, the important thing that Graft does is that when the client asks for changes, so it con- contacts the meta source says, "Hey, I'm interested in volume X, Y, Z.

35:50

Has anything changed? Like, has anyone written to this volume that I would be interested in?" And what the meta store replies is it replies with this sort of like super compressed, like packet. This packet critically contains no actual data. Like it doesn't contain-

36:05

Aaron Francis

Okay

36:05

Carl Sverre

... any of the data in the volume. It just sort of describes in a really, really concise way exactly which portion of the volume has changed since the last time the client pulled.

36:17

Aaron Francis

Okay. So since the last time the client has pulled, how does the meta store know? Am I sending that as the client or is the meta store keeping that state of the last time I pulled from it?

36:28

Carl Sverre

The client keeps its own sort of pull state.

36:30

Aaron Francis

Okay.

36:30

Carl Sverre

So the, the client can describe its pull state by simply specifying like the volume ID.

36:35

Aaron Francis

Mm-hmm.

36:35

Carl Sverre

And then there's this, like this concept inside Graft called a snapshot version So you just provide volume ID, snapshot version, you send that to the, to the metastore, so that's, like, very tiny amount of data.

36:45

Aaron Francis

Mm-hmm.

36:45

Carl Sverre

And then the metastore does some of its own computations, which are extremely cacheable, so it's very fast.

36:50

Aaron Francis

Cool.

36:50

Carl Sverre

Uh, and then the metastore responds with this little packet that says, "Hey, the new version of this volume is X." Like, you know, you've, you've missed out on 30 versions since the last time you pulled, and here's the total set of changes that have occurred since the last time you pulled.

37:09

Aaron Francis

The total set of changes. Okay. So run through this example with me. I am... We'll do a file, a file system example, 'cause that's easier to talk about than a database pages level example. So I'm a client, I'm sending off the volume ID is dog.jpg, probably is a UUID or a GUID, but we're gonna call it dog.

37:30

Carl Sverre

Mm-hmm.

37:30

Aaron Francis

So the volume is dog, the snapshot version I have is three. I'm sure it's more complicated than that, but we're gonna say dog and three. We send that to the metastore. The metastore responds and says, "Actually, dog's at 36. You've missed a bunch of stuff. People have been overriding this file. It is now brand new." So I get back as the client, dog 36.

37:51

What do I also get alongside of that? A list of the underlying pages that have changed? Or what, what else do I get?

38:00

Carl Sverre

That's actually exactly what you get.

38:02

Aaron Francis

Okay.

38:02

Carl Sverre

Um, you get a list of essentially p- effectively you get a list of page indexes that have changed.

38:08

Aaron Francis

Mm-hmm.

38:08

Carl Sverre

So if the volume has 100 pages in it, so it's 100 pages worth of data-

38:14

Aaron Francis

Mm-hmm

38:14

Carl Sverre

... um, and then since you've last synced, uh, let's say that a 30% of those pages have changed, then you'll get back this, like, representation that says, you know, page one, five, seven, nine, and so on-

38:27

Aaron Francis

Got it

38:27

Carl Sverre

... have changed. Um, and now what you, what you know, the important thing is that this allows Graft to, to basically turn replication into a cache coherency problem. Effectively, the client has some set of data cached from-

38:43

Aaron Francis

Mm-hmm

38:43

Carl Sverre

... like previous reads that it's done at older versions. It needs to know which of those previous existing reads can be reused.

38:53

Aaron Francis

Mm.

38:53

Carl Sverre

It needs to be able to know, oh, I already have page three, and page three hasn't changed since the last time I synced. Like I al- I, I already have it. And it wants-

39:00

Aaron Francis

And importantly, page three might hold the data that I'm querying, so I don't have to sync.

39:04

Carl Sverre

Exactly.

39:05

Aaron Francis

Oh.

39:06

Carl Sverre

And so-

39:06

Aaron Francis

Okay

39:06

Carl Sverre

... so now the client has all the data it needs. It knows which pages in its cache it can reuse at like an o- at, at like a n- at the new snapshot version. Like, it can essentially fast-forward pages to be like, oh, this page is also part of this new snapshot. And then it also knows which pages are no longer valid in its new snapshot version. And so it basically, when it receives that little representation saying, "Hey, all these pages have changed," it just immediately goes into its local cache and it just makes a bunch of annotations.

39:33

It says, "This page is good, this page is bad," and so on.

39:37

Aaron Francis

Mm.

39:38

Carl Sverre

And then when a read comes in, so when the client actually says, "Select star from T," or says, "Hey, you know, give me this volume or this portion of a volume"-

39:46

Aaron Francis

Right

39:46

Carl Sverre

... uh, Graft can basically use that data that it has, this sort of cache coherency data, to determine which pages it can reuse, like what you said, um, or which pages it needs to go and fetch from the server.

39:59

Aaron Francis

Okay. So then let's say, uh, the read comes in locally and there's already, I'm just gonna call it a flag. There's a flag-

40:10

Carl Sverre

Yeah

40:10

Aaron Francis

... on page three that says good, and a flag on page four that says bad or dead or old, tired, whatever. A read comes in and you're saying that your, your driver for SQLite Graft, um, helps you determine... Or I guess somewhere you have to decide, as SQLite is satisfying this query, it only read from page three, which means we're good to go.

40:36

Send it back-

40:36

Carl Sverre

Yeah

40:36

Aaron Francis

... super fast. In fact, it read from page four. What happens? Does your driver stop that in flight, go out and grab a new page four, and then satisfy the query and return it to the local client?

40:51

Carl Sverre

So the, the, the basic answer is yes. So when that p- when that request comes from page four at the new snapshot version, snapshot version, whatever, 36 that we've-

41:01

Aaron Francis

Mm-hmm

41:01

Carl Sverre

... received, um, then yeah, the, the client, like, ha- doesn't have this page. It cannot satisfy this query.

41:07

Aaron Francis

Right.

41:07

Carl Sverre

Uh, and so it fundamentally has to block and go and, go and get it. Now, another big aspect of Graft is making it possible for prefetching to be very efficient.

41:19

Aaron Francis

Mm.

41:19

Carl Sverre

So prefetching is the idea that if we already know approximately what we, what we are going to want, let's go and get that before the request comes in in the first place.

41:30

Aaron Francis

Hmm.

41:30

Carl Sverre

Now, with SQLite, you can solve prefetching in a couple of different ways. And I say solve in a loose way here, like-

41:36

Aaron Francis

Mm

41:36

Carl Sverre

... there's no, like, perfect, absolutely perfect prefetching architecture because it's, it's fundamentally sort of probabilistic.

41:43

Aaron Francis

Mm.

41:43

Carl Sverre

But um, but you can do pretty well. So what Graft does is that Graft has a built-in prefetcher, which basically identifies, automatically identifies and sort of learns access patterns that your app-

41:55

Aaron Francis

Hmm

41:56

Carl Sverre

... is doing on top of the SQLite database. So as you're using SQLite, you're essentially accessing the same pages over and over, right? Like, oh, we know-

42:05

Aaron Francis

Mm

42:05

Carl Sverre

... that that row that you're always loading every single time you get the new snapshot version is in page seven, right?

42:10

Aaron Francis

Right.

42:10

Carl Sverre

Like, we just, we always see you hitting that same page. Um, so if, if page seven ever, ever changes, let's just go get page seven. Like, let's not wait for your app to get it.

42:19

Aaron Francis

Cool.

42:19

Carl Sverre

Right? So this, this type of, like, learn automatically and then just, like, prefetch sort of aggressively can eliminate a lot of the perceived latency of the system. And then you can also do other things. You can actually take advantage of just knowing how SQLite organizes data, right? So Graft owns the data. It can actually look at how the SQLite B-trees are laid out.

42:43

It can look at how the indexes are laid out, and it can do things like prefetching an index, right? So its indexes-

42:49

Aaron Francis

Mm

42:49

Carl Sverre

... generally are s- like, it's, it's a s- a subset of the description, so it tends to be smaller than the corresponding table.

42:55

Aaron Francis

Mm.

42:55

Carl Sverre

So we can go and prefetch the index, which allows us to basically accelerate most of the query, right? Where your, your query's just instantly scanning the index. And then literally SQLite stores essentially the page index in the index-

43:08

Aaron Francis

Mm-hmm

43:08

Carl Sverre

... of what we're interested in. And so then we just go get that one page from the server. So it's reduced this, like, really bad problem of doing round trip per, per re- per request, which would be, like, the naive solution.

43:20

Aaron Francis

Mm-hmm.

43:21

Carl Sverre

It reduces that to maybe just, like, one round trip to get that, like, one critical page that we now know we need because of the index scan. Um, and Graft just does this automatically for you essentially.

43:34

Aaron Francis

So lay out for me who is doing the work here, because now we've got, we've got a client, we've got driver. We've, we've got, like, my client, then we've got the Graft SQLite driver, then we've got Graft client, then we've got Graft server.

43:55

So let's say on the client side, is it true that a lot of that intelligence that you just described is taking place in the Graft SQLite driver because it has domain knowledge about both Graft and SQLite, or is that built into, like, the Graft client itself?

44:14

Carl Sverre

So, um, currently, all the prefetching that's in Graft as of today, like if you go and download Graft-

44:20

Aaron Francis

Mm-hmm

44:20

Carl Sverre

... and you start playing with it, all of that prefetching is happening in, like, the generic Graft driver. So all it's doing-

44:26

Aaron Francis

Really?

44:26

Carl Sverre

... is basically completely generic, uh, pattern detection. So it knows nothing-

44:30

Aaron Francis

Okay

44:30

Carl Sverre

... about SQLite. It's basically just going like, "Oh, every single time the client gets a new snapshot version, it's always reading, like, three, five, and seven. Let's just go get three, five, and seven." Um, it also does some rudimentary, like, detection of scans, for example. So if you kick off a select-

44:44

Aaron Francis

Ooh

44:44

Carl Sverre

... star from T, it's gonna be like, "Oh, cool, like, we're scanning this whole B-tree. Let's just do it really... Like, let's do it in big chunks as opposed to-

44:52

Aaron Francis

Mm

44:52

Carl Sverre

... one page at a time, so we amortize the, like, latency as much as possible." Um, so it does all of that completely out of the box on any data structure. And then the, like, one of the things in my roadmap is to add a lot of these, like, more, like, SQLite intelligence features-

45:08

Aaron Francis

Mm-hmm

45:08

Carl Sverre

... where you add, like, SQLite specific prefetching, where you're, you, where you take advantage of knowledge. Like, I know the index is here.

45:14

Aaron Francis

Right.

45:14

Carl Sverre

Let's go get the index. Um, stuff like that. So-

45:17

Aaron Francis

So-

45:17

Carl Sverre

It's, it's designed to be like a layered system. You can just keep adding on layers and you'll just get... It'll amortize closer and closer to a better experience.

45:26

Aaron Francis

This, uh, that was not the answer I expected. I expected the SQLite driver is the only one with the knowledge to be able to do that sort of thing. But I guess this is one of those, um, one of those happy situations where choosing the correct architecture up front, and I'm sure you iterated on it, but we'll just assume that it was divine inspiration- ...

45:49

and you got the exact, you got the exact architecture-

45:51

Carl Sverre

Yeah

45:51

Aaron Francis

... up front. Um, so you have this relatively simple rudimentary architecture in terms of, like, how the files and the pages and the volumes and stuff are laid out, and that has, I think, correct me if I'm wrong, that has enabled this sort of like, uh, analysis intelligence stuff. Because under the hood, you don't know what a file is.

46:13

Carl Sverre

Yeah.

46:13

Aaron Francis

You don't care what a file is. You've got volume, and inside volumes are pages, and hey, if you're going to the same page all the time, I can see that. That's not that hard.

46:21

Carl Sverre

Yeah.

46:21

Aaron Francis

So this feels like, uh, I don't know if this was... Which came first, chicken or the egg? But this very, um, coherent, straightforward architecture sounds like it led to some pretty easy data analysis to make the whole system better. Is that fair?

46:38

Carl Sverre

That's absolutely right. Yeah. Graft is, Graft is designed, um, to be, like, to be s- to be built on top of. Like, it-

46:47

Aaron Francis

Mm

46:47

Carl Sverre

... it's designed to be this nice little, like, low-level thing that we can make very easy guarantees about. Um, like Graft can really easily guarantee that two different clients can see the exact same bits and bytes.

46:58

Aaron Francis

Mm.

46:58

Carl Sverre

Um, that type of property can be really hard if you're dealing with, like, other logical replication solutions, for example. Like, so there's, there's, there's all these-

47:06

Aaron Francis

Totally

47:06

Carl Sverre

... interesting properties, um, that you gain from having, like, a physical replication system, something that just works with bits and bytes at a really low level, uh, that are harder to do in other systems that operate at, like, the logical layer, where... And I s- when I say logical layer, I mean, like, when you're operating at, like, the individual row layer where you're-

47:27

Aaron Francis

Right

47:27

Carl Sverre

... where instead of when you're communicating, you're basically saying, "Hey, I added these 10 rows. You can store them however you want. These are just descriptions of rows."

47:35

Aaron Francis

Mm-hmm.

47:35

Carl Sverre

Um, when you're working at that layer, when you wanna do something like guarantee that two clients see the exact same thing, you need to have a lot more metadata. You might need to-

47:43

Aaron Francis

Totally

47:43

Carl Sverre

... scan the data to actually compare the results, um, this type of stuff. Whereas Graft can just do this, uh, at the bits and bytes layer, and if, if two clients have the same bits and bytes, then they're obviously seeing the same thing.

47:54

Aaron Francis

Yeah. Okay. Cool. That makes a lot of sense. So let's finish the entire, let's finish the entire life cycle. So, um, what's a common, what's a common use case we can talk about here? Would it be, like, a, like, a client device, like a phone's got a SQLite database doing a bunch of stuff and then sending it off to a central store and then onto a second client?

48:18

Is that a fair, like, right down the middle use case we can talk about?

48:21

Carl Sverre

Yeah. Uh, like device level, like apps basically. Apps running on your phone-

48:26

Aaron Francis

Okay

48:26

Carl Sverre

... I think would be great user, like, use cases for Graft. Um, like the main use cases I'm looking at are, uh, application use cases, so like apps running on your phone, a- or devices, like literally-

48:38

Aaron Francis

Mm-hmm

48:38

Carl Sverre

... like devices, like a scanning device in a factory, for example.

48:41

Aaron Francis

Cool.

48:42

Carl Sverre

Um, things which actually want a... have like a local copy of the data and be able to efficiently keep that in sync with a remote copy.

48:48

Aaron Francis

Mm-hmm.

48:49

Carl Sverre

Um, the next one is, like, web apps. So you have, like, your, your, like, Linears and Figmas of the world.

48:54

Aaron Francis

Mm-hmm.

48:54

Carl Sverre

Um, you know, you wanna be able to do fast local work and then synchronize that with other collaborators. Um, and then the third use case is this really interesting use case, which is essentially, um, you know, most high-skill companies have database replicas. You wanna be able to, like-

49:11

Aaron Francis

Mm-hmm

49:11

Carl Sverre

... you wanna be able to mirror your read somewhere else, uh, maybe closer to the user, like on the edge. Um, or you just wanna scale out your reads. You just wanna be able to not blast your main database with reads. Those are great reasons for database replicas. Database replicas have, uh, a downside, which is that they're quite expensive to maintain, because when you boot up a database replica, they generally have to replay the entire data set.

49:34

They need to basically become a mirror of the database. Um, with Graft, they could actually boot up and immediately start servicing queries without actually getting any of the data, right? So suddenly you have this idea that's very-

49:46

Aaron Francis

Interesting

49:46

Carl Sverre

... interesting, which is almost like a serverless database replica. Um, it still sees the exact same data, um, but you can spin up like 100,000 of them, uh, for the same cost as spinning up, like, one regular database replica.

49:59

Aaron Francis

Now, there's, there's your title for your next article if you wanna make a bunch of people- ... really mad just from the title. Serverless database replica, that's perfect. People are gonna hate that. You'll get them all to your blog, and then you have to-- they'll have to read to understand. So-

50:15

Carl Sverre

Thank you.

50:15

Aaron Francis

Let's-

50:15

Carl Sverre

That's a great idea.

50:17

Aaron Francis

Yeah. Let's-- I do wanna hear how this blog post went on Hacker News. We can save that for the end. Um, let's take the, the web app because that's very approachable for everyone. So you and I are both, uh, working in a web app. We'll, we'll call it, you know, Linear Clone, whatever. Um, and so you talked earlier about the heartbeat being one second, and we'll just keep it, we'll, we'll just keep it at that.

50:39

I know it's configurable. We'll, we'll keep it at that. Let's say I'm doing, um, I'm doing a ton of stuff locally, and I'm super fast, and I'm able to get, you know, 30 operations or writes or whatever, 30 writes inside of a second. You told me earlier that those are all going to the local client. So it's, so Linear still feels instant to me, but you, Carl, don't see it until it makes it off of my local client to Graft, maximum

51:10

wait, minimum wait. Well, uh, waits for a second, we'll say, and then makes it down to your client should you request them, I think. So did I, did I say all of that correctly?

51:24

Carl Sverre

Uh, yeah, sorry. Just g- messed up my computer a little bit. Um, yeah. Uh, yes. The, the, like, local experience for the clients is essentially we, we try to-- we decouple the, like, local read/write experience from-

51:38

Aaron Francis

Mm-hmm

51:38

Carl Sverre

... the synchronization experience. Um, so the clients experience, uh, very, very fast local writes, like the same as if they were using regular SQLite. Um, and their local reads, as long as the reads are available, are basically instant as well. Um, and then, and then that is internally sort of, there's like a background process that's essentially doing the synchronization with the server.

51:59

Aaron Francis

Okay. Okay. So that, that takes away that fear of everything's gonna take at least a second now.

52:06

Carl Sverre

Yes.

52:06

Aaron Francis

Or, you know, prob- on, on average, 500 milliseconds or something. Okay. Um, so then how do you handle, like, um, whenever we talk about sync, we always have to talk about conflicts. Um, and I will remind you and the audience that I have no computer science degree, and so when you said earlier- ... a cache coherence problem, I was like, "Yes, definitely, definitely, definitely." I have no idea what you're talking about.

52:31

So when we're talking about syncing, we have conflicts. What is your, what is your or Graft's answer to conflicts?

52:40

Carl Sverre

So Graft's answer to conflicts is this very similar answer to, like, a lot of other properties of Graft, which is that Graft wants the client to have all the control.

52:49

Aaron Francis

Okay.

52:50

Carl Sverre

Um, because just like the trade-off between latency and cost, just like the trade-off between, like, how often we sync, uh, versus the durability, like all these interesting trade-offs, just like the trade-off between how we do prefetching, right? Whether or not we want to prefetch super aggressively and maybe pull more data than we need. Um, all of these things we want the client to choose based on what makes sense for the client, and so-

53:15

Aaron Francis

Okay

53:16

Carl Sverre

... conflict detection is the same, right? Every single client will have slightly different semantics around conflict detection. We wanna basically make it possible for clients to sort of bring their own conflict detection. That's sort of Graft's perspective.

53:29

Aaron Francis

Mm-hmm.

53:29

Carl Sverre

So Graft by default does zero conflict management. It just rejects conflicts. So essentially-

53:37

Aaron Francis

Oh

53:37

Carl Sverre

... if, uh, if a client, if two clients are editing the same volume, the default case is that they both, uh, they both conflict. They, like, both s- they send the same write to the server or a different write to the server. The server just will basically accept whatever the first one reaches it. It'll be like, "Great, you win." And then the second one, the server will just reject.

53:57

Aaron Francis

All right. And that's if they come into the same one-second buffer?

54:02

Carl Sverre

Uh, no, it, it actually doesn't even have to be, like, uh, at the same time. Like, one client could write, and then if the next client writes at any time in the future-

54:11

Aaron Francis

Uh-huh

54:11

Carl Sverre

... then they, then the, the, the, like, basically, if you ever issue a write such that the write was not based on the latest version of the volume-

54:20

Aaron Francis

Got it

54:21

Carl Sverre

... then you're in conflict. You have done something-

54:24

Aaron Francis

So we both-

54:24

Carl Sverre

... without taking into account the latest state.

54:27

Aaron Francis

So client A and client B both have version 37 of a particular page.

54:33

Carl Sverre

Exactly.

54:33

Aaron Francis

Client A writes, and now the version is in-

54:37

Carl Sverre

38

54:38

Aaron Francis

... in Graft, it's in eight, uh, 38. And then client B says, "Hey, here are my changes to version 37," and Graft says, "Brother, we're on 38," and it just rejects it.

54:47

Carl Sverre

Perfect.

54:48

Aaron Francis

Okay.

54:49

Carl Sverre

So that's the default case. And the, the nice thing about the default case, right, is that it's very safe. Like, it, it is the... Again, it's like on the trade-off spectrum, it's like we've turned up safety to max and concurrency to the minimum.

55:02

Aaron Francis

Mm-hmm.

55:02

Carl Sverre

Because of course, what this basically requires is that when that rejection happens, like the client learns that it was basing all of its rights on like a, an outdated version of reality-

55:13

Aaron Francis

Mm-hmm

55:13

Carl Sverre

... then essentially what the client has to do is essentially pull the latest version. Okay, now I have version 38, and then essentially retry its, like, transactions on version 38, figure out if it's, you know, maybe, maybe it's fine-

55:25

Aaron Francis

If it's viable at all.

55:26

Carl Sverre

Maybe I don't even need to run these transactions 'cause someone else-

55:29

Aaron Francis

True

55:29

Carl Sverre

... like, you know, I'm editing a row and the row is no longer in the database, right? Like, again, like every single app has different-

55:36

Aaron Francis

Yeah

55:36

Carl Sverre

... semantics around what a conflict even means, right? In that case, this is like one of my favorite cases, is like if I'm editing a row locally and you delete the row, what should be the result, right? Like, if you commit first, the row is no longer there.

55:50

Aaron Francis

It depends.

55:50

Carl Sverre

Should my edit just get dropped because it doesn't make sense?

55:53

Aaron Francis

I don't know.

55:53

Carl Sverre

Or in some concurrency systems, the e- my update will actually recreate the row.

55:59

Aaron Francis

Yeah.

55:59

Carl Sverre

Like, it will essentially restore the row from, from death.

56:02

Aaron Francis

I, I could, I could argue either way. One, it was deleted and so it doesn't matter anymore. Two, I edited it, so I care about it, so you should resurrect it.

56:11

Carl Sverre

Exactly.

56:11

Aaron Francis

Like, yeah. I mean, it totally depends.

56:13

Carl Sverre

So it's a business logic thing, right?

56:14

Aaron Francis

Yeah.

56:15

Carl Sverre

It has to be in control of the developer because anything else is, is, is difficult to reason about. Like, if the system makes this decision for you, you know, then you have to either be in alignment with the system, which is just a lot... Like, you know, that's, that's, that's very restrictive. I prefer systems where I choose the precise semantics of these types of things. So-

56:33

Aaron Francis

Well, I-

56:33

Carl Sverre

... long story short, um, the default case for Graft is, like, you have to replay. You have to download the latest version-

56:39

Aaron Francis

Yeah

56:39

Carl Sverre

... rerun your transactions, figure out if that even, they even make sense anymore, and then replay the, the commit to the server.

56:46

Aaron Francis

And I guess that has to make sense because of how Graft is positioning itself as basically a very, like, a, a, a primitive. It is itself a primitive. And so-

56:59

Carl Sverre

100%

56:59

Aaron Francis

... because Graft has no knowledge semantics and doesn't care if it is, you know, dog.jpeg or, you know, MySQLite database, it can't really make intelligent decisions about how to handle conflicts because it's just a bunch of pages. Um, and so I guess this also means this puts some more, some higher level of importance on deciding how you're gonna lay out your volumes and your pages as

57:29

discrete, like, business objects because you could set up your system in such a way that things that aren't actually conflicts become conflicts a lot if you're trying to shove a bunch of stuff into one single page, if that makes sense.

57:43

Carl Sverre

Exactly. So, so there's, uh, with physical systems like this, like Graft, um, it's, it's very easy to, to organize the data in such a way that conflicts that aren't actually conflicts-

57:54

Aaron Francis

Right

57:55

Carl Sverre

... end up becoming conflicts, which is-

57:56

Aaron Francis

Yeah, which would be super annoying.

57:58

Carl Sverre

It would be super annoying. And so generally what you have to do is you have to find ways to, like, resolve these conflicts without having to do as much work as a full replay.

58:07

Aaron Francis

Hmm.

58:07

Carl Sverre

Um, and so there's a couple different ways to do this. The first way to do this is something that I'm going to be building into Graft, and this again will be a choice. It's not like an all or nothing decision. Um, the default of Graft will always be strict serializability, which basically is this full replay approach, where it's like-

58:23

Aaron Francis

Mm-hmm

58:23

Carl Sverre

... we just reject all conflicts. You have to replay the latest version, and that is because of safety. It's the most easy to reason about solution. And for, from a developer perspective, it's, it's, yeah, it has all these com- like, you have to, now you have to re- replay, but it's very easy to understand what the result of the system is.

58:41

Aaron Francis

And I think if there's one crime that you as Graft can't commit, it's losing data or corrupting data.

58:47

Carl Sverre

Yeah.

58:47

Aaron Francis

And so I do feel like maybe it's not the best user experience, but you're relying, you're relying on other people to build on top of Graft in that case. But your job is, don't muck with my data. So I like that so far.

59:00

Carl Sverre

Yeah. So the default will always be the safest option. Um, now, there, there are cases where you actually want to relax this model a little bit. Um, and one of those cases is basically if we think about like a, a graft, let's just talk about a SQLite database, right?

59:21

So let's just say you have a SQLite database. Um, it's a small database. It just has like 10 pages in it.

59:27

Aaron Francis

Okay.

59:27

Carl Sverre

And it's just one table, so it's just like a s- it's a super simple database. Um, now SQLite organizes rows into pages. So let's say we have one page contains like, let's say, 100 rows. We have 10 pages. We have 1,000 rows in the database. If, let's say I make a, a transaction on this database and I only ever read and write the first two pages of this database.

59:52

So I edit the first 200 rows or maybe I just edit two of the rows in the first 200 rows. So I've basically altered the first two pages. Um, and I've only critically read those first two pages. And then you do a transaction and you only read and write the last two pages of the database. So, so essentially think about it as like we've, if we've essentially only looked at small portions of this file-

1:00:14

Aaron Francis

Mm

1:00:14

Carl Sverre

... and we've only edited small portions of the file and critically n- we haven't overlapped-

1:00:19

Aaron Francis

Right

1:00:19

Carl Sverre

... either what we've read or what we've written. We're essentially very isolated.

1:00:24

Aaron Francis

Mm-hmm.

1:00:25

Carl Sverre

In this case, it would be acceptable in some, like if you're okay with a snapshot isolation, which is a particular set of like isolation semantics around like what clients can observe in a transaction. If you're okay with this, uh, the fact that we've essentially read different subsets, we haven't overlapped, and you're okay with the result Being that both of our commits just run as is, like, they, they essentially they run concurrently,

1:00:56

uh, Graft will, will support this case soon. Which basically means that instead of Graft rejecting the commit, it will n- it will detect this. It'd be like, oh, we've, both, both clients have read and written completely different subsets to the system. Um, we're gonna go ahead and commit this-

1:01:15

Aaron Francis

Hmm

1:01:15

Carl Sverre

... as if they committed, uh, like, on two different, like on each other. So they essentially created two different snapshot versions. Um, it's a really technical thing. Like, I, I, I, I think it's probably best to read my blog post for, like, the actual semantic details of, like, what this means-

1:01:33

Aaron Francis

Mm-hmm

1:01:33

Carl Sverre

... in practice, but there are things that Graft can do to, like, to help improve the latency. However, that still doesn't solve the-- it doesn't help you if two different users edit two different rows, so they didn't overlap, but those rows both exist in the same page.

1:01:50

Aaron Francis

Right.

1:01:51

Carl Sverre

You still have this conflict problem. Um, and so the solution to that is to add a layer on top of Graft, which is basically SQL sync. So SQL sync- ... right, is the m- the solution to how do we do collaborative-

1:02:08

Aaron Francis

Yeah

1:02:08

Carl Sverre

... multiplayer on top of a SQLite database, and still have super high frequency collaboration-

1:02:14

Aaron Francis

Yeah

1:02:14

Carl Sverre

... without having these conflicts. And so SQLite models, uh, models this problem as each client recording a log of all of their changes in a logical way. So they say the log basically is, I edited row 10.

1:02:28

Aaron Francis

Mm-hmm.

1:02:29

Carl Sverre

I, you know, I, like, added row 50. These are, like, logical changes, and then SQL sync can actually merge that log almost like other logical systems. So, like, CRDTs, you might have heard of, Conflict-free replicated data types. SQ- SQL sync can actually handle merging that log, log logically, and then apply those changes to a single Graft database in a consistent way.

1:02:58

Aaron Francis

You are a madman. Um, that's perfect. I love that. So now you have your bo- both of your ... And, and I guess this is why Graft exists, because you were building SQL sync to start, um-

1:03:11

Carl Sverre

Exactly

1:03:11

Aaron Francis

... and you ran into this, this issue. So tell me, um, I wanna hear how Hacker News received the blog post. But first, tell me what is, uh, what is-- what's the plan for Graft? What do you, what do you, uh, want to do? What do you need help with? What's the long-term vision? Where do, where do we go from here?

1:03:33

Carl Sverre

So, uh, the roadmap, um, I documented the roadmap pretty comprehensively in the blog post. If you wanna see all the gory details, go read the blog post. Um-

1:03:41

Aaron Francis

Which will be linked wherever you're listening to this.

1:03:43

Carl Sverre

Yes.

1:03:43

Aaron Francis

You can find it down below.

1:03:44

Carl Sverre

Uh, so, so but the, the high level is that I'd like there to be a fairly reliable managed service offering of Graft, um, basically just to make it easy for people to build, and, like, to, to start building on top of Graft.

1:03:58

Aaron Francis

Mm-hmm.

1:03:59

Carl Sverre

Um, I, I would love there to be a community of people using Graft and even collaborating on Graft. Um, there's a lot of, like, open features, so if you wanna get your hands dirty building, like, a database transactional storage engine, uh, Graft is, is, is open source and it's available for people to be able to play with. Um, and I also, one of the biggest features that I'm working on right now, and will be shipping very shortly, is basically making it so that Graft can be easily consumed in all of your favorite programming languages.

1:04:29

Aaron Francis

Mm-hmm.

1:04:29

Carl Sverre

So, uh, the PR that I have open right now will make, will basically make it so that you can NPM install, pip install, gem install Graft, um, and suddenly you have, uh, Graft SQLite. That'll be, like, the first iteration, will just be, like, the SQLite layer of a Graft. Um, but completely just in your, in your program language, super easy to use.

1:04:50

Like, you just NPM install it. You, you include it, you import it, and then suddenly the built-in SQLite in Node, for example, suddenly is Graft powered.

1:04:59

Aaron Francis

Cool.

1:05:00

Carl Sverre

Stuff like that.

1:05:00

Aaron Francis

Super smart. That is a great, that's a great way in, I think. Um, very smart. Okay. Um, all right. So if y'all wanna get involved, I'll leave a link to the repo. Is that probably best?

1:05:12

Carl Sverre

Yeah. Uh, the repo blog post would be great. Um-

1:05:14

Aaron Francis

Okay

1:05:14

Carl Sverre

... and then from there, you know, just, just start pulling, pulling things and, uh, and, and filing issues and filing discussions, and joining the Discord. Like, I'm, I'm here to, to interact with the community and to find, find interesting use cases that I didn't even think about.

1:05:30

Aaron Francis

Okay. And I will, I will, uh, give the pitch that Carl cannot. Carl's great to work with. So if y'all wanna get involved, if y'all wanna get involved in a super fun project with somebody who's, uh, wonderful to work with, he's not only been on the show twice. I have, I have worked with him on a- ... as a, as a contractor, so I am allowed to say that, that he's great to work with. So y'all, uh, check out the GitHub, check out the blog post down below.

1:05:53

Speaking of the blog post, how did it go on Hacker News? Did they like it or did they hate it? I have a guess, but you tell me.

1:06:00

Carl Sverre

Um, I, I think it went really well. Uh, I-

1:06:03

Aaron Francis

Oh, great

1:06:04

Carl Sverre

... I had, like, 600 and something upvotes on Hacker News.

1:06:07

Aaron Francis

It went crazy.

1:06:07

Carl Sverre

I was on the front page-

1:06:09

Aaron Francis

Yeah

1:06:09

Carl Sverre

... for like, 24 hours.

1:06:11

Aaron Francis

Geez.

1:06:11

Carl Sverre

Uh, and I ended up with, uh, the-- when I stopped counting, I was h- at around 100,000, um, unique readers. Um-

1:06:20

Aaron Francis

Wow.

1:06:21

Carl Sverre

Yeah. It was, it was good. I, I'm very happy with the launch.

1:06:25

Aaron Francis

Wow. What were the, um, besides, like, nitpicky stuff, what were the one or two, like, big things that they seemed to take away from it?

1:06:33

Carl Sverre

Yeah. I think a lot of people really under-- I- it was, I was very happy to see a lot of people really understood that the point was how do we build f- a partial replication engine-

1:06:43

Aaron Francis

Mm-hmm

1:06:43

Carl Sverre

... um, on top of physical replication, right? Like this, this weird hybrid approach. Um, and I, I, I understood from reading comments and from talking to people that people really got that, and they really liked-

1:06:54

Aaron Francis

Good

1:06:54

Carl Sverre

... that approach. Um, you know, there, there's definitely a lot of, um, very valid questions about con- like the- The sort of like s- the transactional semantics-

1:07:06

Aaron Francis

Mm

1:07:06

Carl Sverre

... of Graft. Graft is changing. Like, it's, it's fundamentally a different system than, than what exists. It is a, like, novel particular set of choices, and so it's, it's, it's a little bit harder to fit into the traditional, um, server side sort of like-

1:07:22

Aaron Francis

Sure

1:07:23

Carl Sverre

... like isolation story. You have to talk about it a little bit more complex. But if you're willing to take that leap and being like, "Oh, okay. Cool. We can, we can change how we think about some of this stuff. We have client side snapshot isolation. We have server side serializability. This gives us certain kinds of interesting properties that we didn't have before."

1:07:42

Aaron Francis

Mm-hmm.

1:07:42

Carl Sverre

If you're willing to sort of like work through that, then suddenly you have a system that can support SQL sync, but it can also support new and novel workloads-

1:07:50

Aaron Francis

Mm-hmm

1:07:51

Carl Sverre

... um, that exist really close to the edge and really close to users.

1:07:55

Aaron Francis

Very cool. Well, I am so happy that it went so well, and to have, uh, a completely novel idea and people still get the broad strokes, or in some cases the details, to have them understand that is, that's gotta be super encouraging. So well done. I, I told you this in text, but the blog post is very well-written. So, uh, I'm not surprised that it, it did well.

1:08:16

But, uh-

1:08:16

Carl Sverre

Thank you so much. I appreciate that

1:08:18

Aaron Francis

... I'm a little surprised they liked it. I mean, it is Hacker News after all. But this is like, this is Hacker News catnip. Like, this is highly technical, um, very well done. The blog post is well-written. But more than anything, like the actual thing, the implementation is very cool and novel and difficult, and they love that crap.

1:08:38

So, um, I guess in the end I'm not terribly surprised, but I am happy for you. So-

1:08:43

Carl Sverre

Thank you

1:08:43

Aaron Francis

... um, is there anything else you wanna say about, um, Graft, SQL Sync or anything else? And if not, where can people find you?

1:08:51

Carl Sverre

Um, no, I, I, uh, I would just love for people to take a look at Graft, uh, to play with Graft. Um, I'm hoping to have this, this PR up so that you'll be able to just really easily like install it into your favorite programming language as soon as possible. Um, I'm just looking for people who, who wanna try it. Let's, let's see what this thing can do, uh, and what can we build with it.

1:09:11

Um, so that's really the big ask. And in terms of finding me, um, you know, I'm, I'm Carl Sever, my full name, on like all the social media platforms. Uh, and of course, like please read the blog post. Uh, maybe star me on GitHub if, if you, if you like it. Um, all those good things.

1:09:27

Aaron Francis

Wonderful. Well, I'll leave, I'll leave links to everything that we've talked about along with your personal stuff, uh, down below.

1:09:34

Carl Sverre

Yeah.

1:09:34

Aaron Francis

And if you are watching on YouTube, there is an audio feed which I'll link below. If you're listening on audio, there's a YouTube video which I'll link below, um, so y'all can find everything that you need. And please, like I said, reach out to Carl. Go on GitHub and start hanging out, knocking out some issues. Um, this is, this is very cool. I'm very, I'm very impressed by what you've done, and thanks for coming on the show to tell us about it.

1:09:55

Carl Sverre

Thank you so much, Aaron. I always enjoy chatting with you. You have really excellent questions. So, um-

1:09:59

Aaron Francis

No, thanks. I, uh-

1:10:00

Carl Sverre

Yeah, thanks to all the listeners for listening to, to us chat.

1:10:03

Aaron Francis

Yeah, I, I don't know a lot, and I want to know a lot, and I feel like that's a good, that's a good recipe for questions. So there you go.

1:10:09

Carl Sverre

Really good recipe. Natural sequel.

1:10:10

Aaron Francis

All right. Well, until, until the third time that you're on, uh, we'll wrap it up today, and we'll talk to you again soon.

1:10:17

Carl Sverre

Cool. Thanks, Aaron.

1:10:18

Aaron Francis

See ya.

Databases

More videos on databases

All videos

Get the next one by email

I’ll send you some more. Not too many.

Join 7,500+ other readers.

Read past issues