July 20251:15:187.4k views

Vitess for Postgres, with the co-founder of PlanetScale

About

Sugu Sougoumarane, co-creator of Vitess and co-founder of PlanetScale, joins me to talk about his time scaling YouTube's database infrastructure, building Vitess, and his latest project bringing sharding to Postgres with Multigres. This was a fun conversation with technical deep-dives, lessons from building distributed systems, and why he's joining Supabase to tackle this next big challenge.

Transcript

Everything we said

00:00

Aaron Francis

Welcome back to Database School. I am your host, Aaron Francis. In this episode, I talk to the co-creator of Vitess and the co-founder of PlanetScale, the same person. His name is Sugu Marin. We talk about his time at YouTube and the invention of Vitess, moving on to PayPal, then founding PlanetScale, and finally, his time in the wilderness.

00:22

He took a little sabbatical, and then he comes back to create Vitess for Postgres. He's joining Supabase to bring Vitess to the Postgres community. You're really gonna enjoy this one. He's incredibly smart, but also very, very humble, um, and very thoughtful. So enough yapping from me. Let's enjoy this episode of Database School. This is kind of some, some breaking news, so I'm super excited to be here.

00:46

I am here with Sugu Marin. He is the co-creator of Vitess, the co-founder of PlanetScale, and he is back to talk, uh, with us about his next adventure. But before we get into that, we're gonna dive into a little bit about the history of Vitess, and then, uh, we'll talk about what's up next. So Sugu, thank you for being here.

01:07

Do you wanna introduce yourself a little bit?

01:09

Sugu Sougoumarane

Uh, sure, yeah. Uh, I'm Sugu, and, uh, I have been involved with databases, uh, for a pretty long time, I think, uh, since the '90s, I would say.

01:21

Aaron Francis

Wow.

01:22

Sugu Sougoumarane

Uh, I, where I, uh, I was working at Informix. Uh, and then I, uh, moved on to PayPal, uh, in the early days, uh-

01:33

Aaron Francis

Mm-hmm

01:33

Sugu Sougoumarane

... and, uh, took care of scalability there. And from there, I moved to YouTube, and that is where, uh, we, I co-created Vitess, uh, with, uh, my colleague, uh, Mike Solomon. Uh, this was because YouTube was falling apart, uh- ... on the database side, and we had to come up with something that would leap us ahead in terms of, uh, the troubles it was, uh, going through.

01:59

We can talk about that more later. Uh, but, uh, uh, eventually, uh, Vitess, uh, we decided to donate it to CNCF.

02:09

Aaron Francis

Hmm.

02:10

Sugu Sougoumarane

And, uh, by that time, Vitess had a lot of adoption. Uh, Slack had started using it, GitHub was using it, and, uh, more users were coming on board. Uh, at that time, Cash App was also using it. Uh, and so-

02:22

Aaron Francis

Oh, wow

02:22

Sugu Sougoumarane

... uh, we, uh... So it was time to, you know, uh, start a company, uh, fully dedicated to backing up, uh, this software, which is, uh, how I ended up co-founding PlanetScale with, uh, Jiten, who was also with me at YouTube. He was actually-

02:39

Aaron Francis

Hmm

02:39

Sugu Sougoumarane

... on the SRE side, uh, taking care of Vitess. And, uh, about three years ago, uh, by that time it had been 12 years since I was working on Vitess. And, uh, three years ago, I had successfully built a full team that was taking care of the project.

02:57

Aaron Francis

Mm-hmm.

02:57

Sugu Sougoumarane

And, uh, I said, "Okay, it is time to take a break." So I went on sabbatical. And, uh, recently, uh, this itch came back that I need to do something. And, uh, when I saw Postgres, I just couldn't control myself. And so here I am.

03:16

Aaron Francis

I love it.

03:17

Sugu Sougoumarane

Yeah.

03:17

Aaron Francis

That, uh, that is, that's a lot, and we're gonna cover it all. Let's start. Take me back, take me back to the YouTube days. So you're, you're at YouTube, um, and YouTube is taking off, and y'all just can't keep up. Everything's falling apart all over the place. And so what was the conversation like when, when you or you and your, your co-creator went to somebody and said, "What if we invented something, what if we invented something entirely new and wrote it from scratch?" Like, how did that come to be that that

03:48

was, uh, the, the solution that ended up working?

03:51

Sugu Sougoumarane

So that's, uh, that's actually a very good story. It was actually my co-creator who did this, uh, uh, who thought of this idea, who saying that this seems like a losing war. 'Cause every-

04:03

Aaron Francis

Hmm

04:03

Sugu Sougoumarane

... day we- was actually worse than the previous day. And, uh-

04:07

Aaron Francis

Oof

04:07

Sugu Sougoumarane

... and every time there was an outage, it was a database. So what he did was he, um, uh, he went to a Starbucks. It wasn't a Starbucks. It's actually a coffee shop called Dana Street in Mountain View. Uh, and, uh, wrote a huge spreadsheet, uh, I still actually have the spreadsheet, where- ... he listed all the problems that we were facing, and also all the problems we are going to face as this thing grows, and listed a bunch of solutions saying that,

04:37

"Okay, how do we solve this problem? How do we solve this problem?" And then you take a step back and look at everything. We knew what we had to build.

04:46

Aaron Francis

Hmm.

04:46

Sugu Sougoumarane

And, uh, the answer at that time was we needed a proxy layer that stands between the application and MySQL, and protect it.

04:56

Aaron Francis

Hmm.

04:56

Sugu Sougoumarane

That was kind of the high level statement, and that is kind of how, uh, Vitess was born. And, uh, we basically said that in order to build this, we need to, we need a very different focus from where we, where we are today, which is our focus was always like, how do we fight the next fire? Or how do we survive-

05:15

Aaron Francis

Mm-hmm

05:15

Sugu Sougoumarane

... till next Tuesday, you know? So those were the kind of, uh, thoughts that were in our mind. We actually pulled ourselves out of, uh, the day-to-day operations and said, "We are gonna take ourselves out. You guys are on your own. And, uh, we'll build this and come back with something that will, uh, solve all our problems." It was very ambitious.

05:38

Aaron Francis

So, yeah. But it worked. So you, you and your, you and your co-creator set up like a-

05:42

Sugu Sougoumarane

I can't believe it worked.

05:44

Aaron Francis

You set up a, a special unit, and you said, "We're not involved with firefighting. We're not involved with fixing problems." We're gonna do this big bet, and this big bet is we're gonna basically re- rewrite, not really, we're gonna write a proxy layer that pretends to be MySQL and sits between the application and the actual databases, and we will do a bunch of stuff in there.

06:10

So tell the people what exactly, um, just kind of at a high level, what is Vitess and why did that work? Like, what is it about Vitess that, that solved all of those problems?

06:22

Sugu Sougoumarane

So the, uh, what Vitess is today is nothing like what we initially conceived.

06:29

Aaron Francis

Okay.

06:30

Sugu Sougoumarane

It evolved, uh, kind of iteratively over time. Um-

06:35

Aaron Francis

Mm-hmm

06:35

Sugu Sougoumarane

... the initial conception of Vitess was just cluster management and protection of the database-

06:42

Aaron Francis

Okay

06:42

Sugu Sougoumarane

... is, is all, all we wa- all we wanted to do. And the biggest problem with the MySQL database at that time was connections, which is actually still a problem with Postgres, uh-

06:53

Aaron Francis

Mm-hmm

06:53

Sugu Sougoumarane

... now, but now there are solutions coming up. Uh, but that was a problem with MySQL also. So the first product that we built was just a connection pooler, uh-

07:04

Aaron Francis

Mm

07:04

Sugu Sougoumarane

... get, uh, traffic and pool it across, uh, just a few connections. And, uh, that took a while actually, uh, because we didn't build it as a simple connection pooler. We, we kind of knew that a dumb connection pooler will not take us far. We actually built an intelligent connection pooler that actually understood queries.

07:25

Aaron Francis

Hmm.

07:25

Sugu Sougoumarane

So we actually passed every query, 'cause we knew that we had to field queries, uh, judge them, as it were, saying that, "This is a bad query. We'll not let it go to the database." Uh, those were kind of the thoughts that we had, because the bad queries would be the ones that would actually take our databases down all the time. So that, that's the reason why we went, uh, one, one level above the immediate requirement.

07:50

And, uh, it took us about a year finally to, to get it launched.

07:56

Aaron Francis

Wow.

07:56

Sugu Sougoumarane

And, um, at that time, it was not Vitess, but what happened was once that, uh, server was out there in the middle, people realized, "Oh my God, there are things we can do here before- ... the query reaches the database."

08:13

Aaron Francis

Mm-hmm.

08:14

Sugu Sougoumarane

So feature requests started coming in, and slowly we s- And because we had the parser, we could do some very intelligent things with our queries. Uh-

08:23

Aaron Francis

Hmm

08:23

Sugu Sougoumarane

... and so that is kind of what led to the, uh, a large number of features that we could add to Vitess. Uh, without the parser, we wouldn't have been able to add them, and that eventually evolved into what Vitess is today, essentially emulating an entire database.

08:42

Aaron Francis

Mm-hmm. Yeah, so that's an interesting, uh, that was an interesting and insightful call there at the beginning to say, "Instead of just doing dumb connection pooling, we're gonna add a little bit of intelligence here to, like, inspect the queries." And it sounds like that was the thing, that was, like, the golden insight there.

09:03

And then once you have that server in the middle, you now have... I- it's like, um, you now have a new bucket in your brain where you can put things, right? And you're like, "Ooh, because we have this server in the middle, what if we did this, and what if we did that?" Whereas when that doesn't exist, your brain doesn't even think like, "Well, we can't do that because we're just talking to the database, and I'm not gonna go rewrite my SQL." But now that you have this thing, you can cast all of your hopes and dreams upon it.

09:31

So what were some of the first things that came in? You're in this, you're in this, you know, secluded team writing this thing, and you put it out to the world, and everybody's like, "Great, you solved some of our problems. Now can you do this?" What were some of the first few big ones that came in?

09:46

Sugu Sougoumarane

So the first one is adding a limit clause to every query that the application sent.

09:53

Aaron Francis

Interesting.

09:54

Sugu Sougoumarane

Because in OLTP, you are not expected to fetch 100,000 rows to serve your webpage.

10:02

Aaron Francis

Right.

10:03

Sugu Sougoumarane

So what we did was, uh, if your query had no limit clause, we would put one, and, uh, 10,000 was the limit. If the number of rows exceeded that limit, we would re- return an error saying that, uh-

10:16

Aaron Francis

Hmm

10:16

Sugu Sougoumarane

... "You exceeded your row count limit, so this query is invalid." So that actually, uh, um, that was actually one of the biggest problems in, uh, YouTube because, uh, people would assume, like, how many videos can somebody have? You, you'd have... And you would have a hypothetical answer.

10:36

Aaron Francis

Mm-hmm.

10:36

Sugu Sougoumarane

So you'd say, "Oh, just fetch all the videos." But, uh, there are people who have a huge number of videos, you know, for example.

10:44

Aaron Francis

Sure, yeah.

10:45

Sugu Sougoumarane

Uh, and so when this happened, uh, this protected a whole bunch of outages. Uh, another, uh, another really, really cool feature that we added in the beginning was, um, uh, this happened actually when, uh, uh, again, it's related to the number of videos. Uh, the YouTube index page, we used to highlight, uh, certain users-

11:10

Aaron Francis

Mm-hmm

11:10

Sugu Sougoumarane

... and show their videos in their homepage, in YouTube's homepage. So one of the users that got highlighted had 250,000 videos, and that query had no limit clause. So which means that every page hit would go and fetch those 250,000 videos.

11:30

Aaron Francis

Oh, dude. So when you, when you did this, when you, like, put this limit on there and stuff just starts hitting a hard wall, right? It's just like, "Sorry, that doesn't work." What do the application developers think at that point? Are they super happy that you've surfaced some sort of, like, error? Or, like, where's the...

11:52

A- as far as the internal teams go, you, like, put this blocker on the database, and then what happens on the, the application developer side?

12:01

Sugu Sougoumarane

Uh, not all of them were happy.

12:04

Aaron Francis

Yeah.

12:05

Sugu Sougoumarane

And I think we had some level of arrogance to-

12:08

Aaron Francis

Mm

12:08

Sugu Sougoumarane

... tell them to live with it.

12:10

Aaron Francis

Yeah.

12:10

Sugu Sougoumarane

We're not going to change this. And, uh, and I guess in our case, it came from the fact that protecting the database is more important than keeping one developer happy.

12:23

Aaron Francis

Mm-hmm.

12:24

Sugu Sougoumarane

Um, so, uh, yes, I think we might have pissed off a few developers Uh, when, uh-

12:34

Aaron Francis

I figured. So are you on... At that point, is that where, is it just the ops team that you're on? So it's, at that point, it's ops versus, you know, application developers?

12:42

Sugu Sougoumarane

Yeah. We, I was, uh-

12:44

Aaron Francis

Yeah

12:44

Sugu Sougoumarane

... yeah. We were kind of the, uh, it wa- at that time, we were the architecture team.

12:49

Aaron Francis

Okay.

12:49

Sugu Sougoumarane

So we also kind of dictated, uh, how applications were written, what rules to follow-

12:56

Aaron Francis

Mm-hmm

12:56

Sugu Sougoumarane

... to access the database. Uh, we were deploying software, so we were, we were kind of... Uh, later we, we, uh, became the ops team, but at that time, we were the architecture team. This is-

13:07

Aaron Francis

Yeah

13:07

Sugu Sougoumarane

... we're talking 2007. So

13:09

Aaron Francis

I know, that's why I was thinking probably Dev- DevOps probably wasn't around back then.

13:14

Sugu Sougoumarane

No, DevOps didn't exist though.

13:15

Aaron Francis

Yeah. So you're just ops or architecture. Man, that's so-

13:18

Sugu Sougoumarane

Yeah

13:18

Aaron Francis

... that's so interesting. Um, okay. So first one was, uh, taking this, you know, query that shouldn't ever exist and could result in degraded performance or just knocking the whole thing over and stopping it at the border and saying, "Sorry, you can't come in here. Error. Go fix your stuff." That seems pretty reasonable.

13:39

You said at the beginning, um, Vitess was fundamentally like smaller and way different than what it's grown into now. So how did you guide that, um, growing from a, an intelligent connection pooler to what it is now, which is this, this massive sprawling thing? Talk us through kinda like that journey of, I assume a few years.

14:02

I know that the whole thing's been running for several, but I have to imagine that first few years was, uh, was pretty active.

14:09

Sugu Sougoumarane

These are, these are good questions because, uh-

14:11

Aaron Francis

Oh, thanks.

14:12

Sugu Sougoumarane

No- nobody has asked these questions. How did... So when, yeah, when we first deployed, uh, Vitess, it was just vtablate, by the way.

14:20

Aaron Francis

Okay.

14:21

Sugu Sougoumarane

Um, and even vtablate faced a lot of, uh, obstacles because it was an additional layer, and it added latency.

14:30

Aaron Francis

Mm.

14:30

Sugu Sougoumarane

Uh, and 2011 is when we first launched. We s- we, we started working on Vitess in 2010. 2011, not Go 1.0 was not even out yet.

14:43

Aaron Francis

Hmm.

14:44

Sugu Sougoumarane

Uh, they were, I think Go 1.0 came out '12 or something. So we were launching on a non-launched version of Go, and it was not efficient. Uh, like, uh, I think, I think, uh, at that time the latency was like 10 milliseconds, which was-

15:03

Aaron Francis

Hmm

15:03

Sugu Sougoumarane

... like horrendous.

15:05

Aaron Francis

Mm-hmm.

15:06

Sugu Sougoumarane

Uh, now it's like sub-millisecond. But at that time... And we were on hard disks, by the way. There were no SSDs those days.

15:13

Aaron Francis

Hmm. So pause there for, for one second. What was the choice to go with Go, um, with it being so early? So it must have had some massive upsides that, that papered over all of these other problems. So what was the decision there?

15:28

Sugu Sougoumarane

It was, you won't believe, it was like, it was a very quick decision. Uh, I hated Java- ... and my co-creator hated C.

15:39

Aaron Francis

Great. I love it.

15:40

Sugu Sougoumarane

And we said, uh, not Python obviously, because this needs to perform.

15:46

Aaron Francis

Mm-hmm.

15:46

Sugu Sougoumarane

How about this new language called Go?

15:49

Aaron Francis

Incredible. God, I love how human it all is. Okay. So you all, you all picked Go because it was the mutually agreed upon non-hated language. Uh, it's still pre 1.0. Okay. So carry on. You're, you're working with Go. It's got a 10-millisecond latency, um, and you're starting to grow.

16:06

Sugu Sougoumarane

Yeah. And, uh, and fortunately, uh, uh, I would say when, when we later learnt about Go, we really, really liked the Go team's approach to the language.

16:20

Aaron Francis

Hmm.

16:20

Sugu Sougoumarane

They were, they were e- they were exactly... They were thinking exactly the way we were approaching problems. Like, you know, uh, like there is this fascination to complexity. We were like, "Things should be as simple as you can." You know? Like you should not complicate. So they were like, we were, we were pretty much in sync with them-

16:40

Aaron Francis

Mm-hmm

16:40

Sugu Sougoumarane

... so we really liked them. Um, and since they were also at Google, uh, they've caught wind that we are developing this, so they helped us quite a bit. So they worked, they, uh, they f- they actually prioritized our problems-

16:53

Aaron Francis

Cool

16:53

Sugu Sougoumarane

... uh, and worked very hard at making things work for us-

16:56

Aaron Francis

Mm

16:56

Sugu Sougoumarane

... which was pretty awesome. And, uh, so yeah. So we were, um, uh... So in vtablate things were, um, things we were basically mo- adding more features to vtablate and, uh, by that time YouTube was in a happy place.

17:13

Aaron Francis

Hmm.

17:14

Sugu Sougoumarane

But then came the first resharding experiment.

17:18

Aaron Francis

Hmm.

17:18

Sugu Sougoumarane

Uh, because, uh, we had, I think, uh, I don't, I don't remember anymore. I think we had eight shards, and we were going to 16. Uh, and, uh-

17:28

Aaron Francis

So quaint, so long ago. That's crazy.

17:32

Sugu Sougoumarane

Yes. And that was, uh, quite a nightmare. And then we said-

17:35

Aaron Francis

Oh, okay

17:36

Sugu Sougoumarane

... "Oh, you know what? We need to add resharding, make it part-

17:39

Aaron Francis

Hmm

17:39

Sugu Sougoumarane

... of Vitess." And, uh, so that's when we introduced this whole metadata layer-

17:45

Aaron Francis

Hmm

17:45

Sugu Sougoumarane

... where, uh, where we, we... Actually at that time it was Zookeeper. There was no etcd.

17:52

Aaron Francis

Hmm.

17:52

Sugu Sougoumarane

Uh, so Zookeeper, we used to store metadata in there and then use that to manage, uh, resharding, and that required the application to connect to R- uh, Zookeeper to figure out what to connect to, which made the application more complex.

18:05

Aaron Francis

Hmm.

18:07

Sugu Sougoumarane

So every time you reshard it, you had to basically push things to the ZooKeeper and re- force the application to re- to reload that information saying that, you know, "This is a new sharding configuration. You have to go there." And that's when we decided to introduce the vtgate layer.

18:22

Aaron Francis

Okay.

18:23

Sugu Sougoumarane

'Cause we can't be having, uh, changes in the resharding to affect the application. So we'll have this vtgate layer which will watch over this, uh, topology-

18:35

Aaron Francis

Mm-hmm

18:35

Sugu Sougoumarane

... and you just send traffic to vtgate, and vtgate will know which shard to send it.

18:42

Aaron Francis

Perfect. Okay, so-

18:42

Sugu Sougoumarane

And it was not a... Yeah.

18:44

Aaron Francis

No, go ahead.

18:45

Sugu Sougoumarane

It was, it was not a database connection. It was actually a specialized RPC connection.

18:52

Aaron Francis

Hmm.

18:53

Sugu Sougoumarane

Uh, because the application still had to know, uh, which shard, uh, which, uh... At that time we had this concept of a keyspace ID, which is-

19:01

Aaron Francis

Mm-hmm

19:01

Sugu Sougoumarane

... mapped to a shard. And the keyspace ID is now core to Vitess. Uh, so previously, the application would say, "Send this query to that shard." And we changed the API to saying, "Send this query to this keyspace ID," and vtgate would take the keyspace ID, look at the topology, and say, "Oh, that maps to this shard," and send it there.

19:22

So if you reshard it, then the application is unaffected. So that's-

19:26

Aaron Francis

I see

19:26

Sugu Sougoumarane

... what the vtgate layer brought, uh, brought in.

19:29

Aaron Francis

Okay. So you started, you started with the, the vt tablet, and then as a, as a function of the painful reshard, you introduced the vtgate. So for, for the people listening, at this point in the history, talk us through from the application to the actual data, where are we connecting and who's talking to whom?

19:51

Where does vtgate, vt tablet, and the running MySQL instance, where does that all fit in from the application all the way through?

19:59

Sugu Sougoumarane

So I should tell you the life of a query. I don't know if you've-

20:01

Aaron Francis

Yes

20:02

Sugu Sougoumarane

... heard of the life of stories.

20:03

Aaron Francis

Let's hear it. Let's hear it. That's perfect.

20:06

Sugu Sougoumarane

Uh, so the application uses gRPC. Actually, um, uh, in Google it is Stubby. Stubby, right? Stubby, yes. Uh, it's a -

20:18

Aaron Francis

You, you tell me. I don't know.

20:20

Sugu Sougoumarane

Yeah. It's, it's, uh, Google's version of gRPC.

20:23

Aaron Francis

Okay.

20:23

Sugu Sougoumarane

Uh, gRPC was born off that project. I should actually-

20:26

Aaron Francis

Hmm

20:26

Sugu Sougoumarane

... confirm the project. I think it is Stubby. Uh, anyway, so it connects to gRPC, uh, to one of the vtgates.

20:34

Aaron Francis

Okay.

20:35

Sugu Sougoumarane

And then sends a query, you know, select star. But in the query-

20:38

Aaron Francis

Yeah

20:38

Sugu Sougoumarane

... it says, "This query needs, belongs to this keyspace ID," which means that if it's a select from a user, it also says the user is, lives, has this keyspace ID. And so then vtgate says, "Oh, okay, let me go look up this keyspace ID in my topology."

20:54

Aaron Francis

Mm-hmm.

20:55

Sugu Sougoumarane

And the topology says, "Oh, this keyspace ID is in this key range, and that maps to this shard."

21:01

Aaron Francis

Okay.

21:02

Sugu Sougoumarane

And, uh, so okay. Then, uh, vt tablet says, "Okay, which are the vt tablets present that serve this shard?" That is also in the topology.

21:12

Aaron Francis

Mm-hmm.

21:12

Sugu Sougoumarane

And it gets a list, and it s- chooses one, uh, randomly. If it's a read query, it's a random choice, and then says, sends this query to vt tablet and says, uh, "Please, uh, serve this query for me."

21:25

Aaron Francis

Hmm.

21:26

Sugu Sougoumarane

And vt tablet has all the protection there. Like for example, if there's a limit clause missing, it'll add it. If it's an invalid query, it'll reject it. Uh, and then vt tablet sends the query to MySQL, uh, which serves your query, and the results are returned back to the application.

21:44

Aaron Francis

Life of a query. I love it. That's very easy. That's very straightforward. So is it fair to say that at this point in the history of Vitess, the vtgate, the vtgate just handles the pointing to the correct, uh, the correct vt tablet or shard or-

22:00

Sugu Sougoumarane

It had no parser like vt tablet did.

22:03

Aaron Francis

Okay. Yes.

22:03

Sugu Sougoumarane

It would not judge your query. It will, it was a pure router.

22:07

Aaron Francis

And so who, or rather how, is the application developer signaling to vtgate the, what did you call it? Keyspace ID-

22:16

Sugu Sougoumarane

The keyspace ID

22:17

Aaron Francis

... that is not mapped to shard, but is loosely mapped to shard by somebody else. How's the application developer saying, "This user, Aaron Francis, is in keyspace ID 123"? How, like, where does that come from?

22:29

Sugu Sougoumarane

So that knowledge was already present when we sharded, when we did the initial sharding.

22:35

Aaron Francis

Got it. Okay. Okay.

22:37

Sugu Sougoumarane

And, uh, there were two methods. Uh, one is the, the first sharding technique was hashing of the user, user ID.

22:45

Aaron Francis

Mm-hmm.

22:46

Sugu Sougoumarane

Um, actually the f- the, um, the first sharding technique was actually not a hashed user ID. It was actually a, a random assignment of a user ID to a shard, and a table that added that, a lookup table-

23:02

Aaron Francis

Mm-hmm

23:02

Sugu Sougoumarane

... that told you where that user lived. We moved away from that, and then, uh, changed it to a hash of the user ID.

23:10

Aaron Francis

Hmm.

23:10

Sugu Sougoumarane

So user ID would get hashed. That produces a keyspace ID, and then that keyspace ID is, uh, mapped to a range-based shard that was split, uh, in our case, uh, equally split, like 8, 16, uh-

23:27

Aaron Francis

Mm-hmm

23:27

Sugu Sougoumarane

... 32, 64, that way. Uh, that was for, uh, user IDs. But if you had a select by video ID, we wanted to keep our video IDs with our users.

23:39

Aaron Francis

Hmm.

23:40

Sugu Sougoumarane

Uh, for video IDs, you had to know which user ID the video ID belonged to, and we had a lookup table. You're smiling 'cause you know where this is going. Uh, and that video ID, so we would look up the table, find out the user ID for the video ID, and then do a hash-

23:58

Aaron Francis

Mm-hmm

23:58

Sugu Sougoumarane

... and send the query to, uh, the shard that had that user.

24:02

Aaron Francis

Okay. Um, and so where, where do we live now? Like, w- you know, this is, this is all groundbreaking at the time, but I'm sure looking back on it, you're like, "Oh my goodness. What, what in the world?" So where does, where does it live now that, um- The, I guess the, all of the pieces of Vitess and who is responsible for what.

24:24

Because from an outsider's perspective of somebody just, like, we'll say connecting to a planet-scale database, seems pretty easy to me. I don't really have to do anything. And so some of those components have gotten a lot smarter and taken a lot of that off of, like, the, I guess, the application developer. So what is the state of it, um, right now or when it became mature?

24:47

Maybe even not right now, but when it became mature, what, where, how do those components fit in with each other?

24:52

Sugu Sougoumarane

So the biggest leap that we made, which made, which transitioned Vitess from where it was then to where it is today, uh, was a, was a, a decision that that time that was really, really scary. Uh, this keyspace ID that I talked about-

25:12

Aaron Francis

Mm-hmm

25:12

Sugu Sougoumarane

... was physically present as a column on every table.

25:16

Aaron Francis

Mm-hmm.

25:17

Sugu Sougoumarane

And, uh, if you wanted to know what is the keyspace ID of a row, you could select that row and there is a column that said, "This is your keyspace ID." The question that I asked myself is, can we live without that column?

25:37

Aaron Francis

Hmm.

25:39

Sugu Sougoumarane

And, uh, which means that can we live without that column, and can we live with the fact that h- of hiding this from the application? What if the application didn't know the keyspace ID?

25:54

Aaron Francis

Mm-hmm.

25:55

Sugu Sougoumarane

Would the system continue to work as efficiently as it was before?

25:58

Aaron Francis

Mm-hmm.

26:00

Sugu Sougoumarane

Uh, and to push that question further, which means that if the application or the other, the, uh, the converse of that question is, can you compute the keyspace ID using the where clause of your select query?

26:15

Aaron Francis

Hmm.

26:16

Sugu Sougoumarane

And that question was hard to answer because SQL is unwieldy by nature.

26:24

Aaron Francis

Mm-hmm.

26:24

Sugu Sougoumarane

And can you say that this is going to work under all circumstances? Uh, and this keyspace ID was, uh, scary to get rid of because when we did resharding, looking at the keyspace ID was our only source of truth or-

26:42

Aaron Francis

Mm-hmm

26:42

Sugu Sougoumarane

... uh, was the only way we could decide where a row would go. If that keyspace ID was not present, would we be able to compute it on the fly without causing outages and problems and stuff? So it took a, it, it took a few months of pure thinking

27:01

Aaron Francis

Yeah.

27:02

Sugu Sougoumarane

To come to the conclusion that, yes, this can work. And-

27:06

Aaron Francis

So before we get into how it could work, what made you ask that question?

27:11

Sugu Sougoumarane

Because I was not happy that this, that you could, uh, at that time, that you could not write an ODBC driver that would connect to Vitess.

27:27

Aaron Francis

I see. Okay.

27:28

Sugu Sougoumarane

Because every query needed-

27:30

Aaron Francis

Mm-hmm

27:31

Sugu Sougoumarane

... a keyspace ID.

27:32

Aaron Francis

And so you were looking at, uh... I, I'm, I'm casting this upon you, so if this is wrong, tell me. You were looking at adoption, and you were saying, "Hey-

27:41

Sugu Sougoumarane

Yeah

27:41

Aaron Francis

... if this thing is gonna get adoption, we gotta play g- we gotta play the game, and we can't have custom, you know, connectors for everything."

27:50

Sugu Sougoumarane

Exactly. Yes.

27:50

Aaron Francis

I see. Okay.

27:51

Sugu Sougoumarane

We actually-

27:52

Aaron Francis

So-

27:52

Sugu Sougoumarane

Uh, uh, y- I, I'm surprised at how mature we were. We actually, at that time, felt that for Vitess to have a real future, even within YouTube-

28:04

Aaron Francis

Hmm

28:04

Sugu Sougoumarane

... it needs to be a- it needs to be adopted outside YouTube.

28:08

Aaron Francis

Oh. Hmm. That, that is very mature.

28:12

Sugu Sougoumarane

Yeah.

28:12

Aaron Francis

That's an interesting-

28:13

Sugu Sougoumarane

And, uh-

28:13

Aaron Francis

That's an interesting insight.

28:16

Sugu Sougoumarane

We felt that if, if YouTube was the only user of Vitess, eventually somebody is going to say, "Why maintain something this bespoke?"

28:26

Aaron Francis

Mm-hmm. Yep. Hmm.

28:28

Sugu Sougoumarane

So that, uh-

28:29

Aaron Francis

Pretty smart, pretty smart guys.

28:29

Sugu Sougoumarane

So that was kind of what motivated me to think that we need, we need a generic database API-

28:37

Aaron Francis

Okay

28:37

Sugu Sougoumarane

... for Vitess.

28:39

Aaron Francis

Okay. So you asked the hard question, and then you spent many months thinking about it, and then what happened?

28:47

Sugu Sougoumarane

Uh, that, that was actually one of the hardest problems for me to solve.

28:51

Aaron Francis

Hmm.

28:52

Sugu Sougoumarane

Uh, uh, essentially it w- it didn't stop there. Uh, what I had to do is go back and learn relational algebra.

29:03

Aaron Francis

Oh, gosh.

29:05

Sugu Sougoumarane

And

29:08

Aaron Francis

Oh, man.

29:08

Sugu Sougoumarane

And be, and figure out and prove to myself that sharding and combining those shards into a single unit-

29:20

Aaron Francis

Hmm

29:20

Sugu Sougoumarane

... can be modeled using traditional relational algebra. Uh, and that's why that was difficult. And then eventually mapped, mapping back, uh, the relational algebra back to SQL.

29:36

Aaron Francis

Mm-hmm.

29:37

Sugu Sougoumarane

I, I actually, the, the document should still be there on Vitess when I first wrote the initial, uh, document. It was, it was very... And then I, I, um, I wrote an enormous query and showed how this, like, uh, with all possible constructs of an SQL-

29:54

Aaron Francis

Mm-hmm

29:54

Sugu Sougoumarane

... and showed how this maps to a relational operation, and how such a relational operation would work in a sharded database.

30:05

Aaron Francis

Gosh. This is fascinating. Okay. So, all right. Let me get, let me get my thoughts here. So you decided We're, we are going to, we're gonna parse the query, and then we are going to figure out what shard this needs to go to.

30:27

So we are going to become basically, like, you're gonna eat all of that pain on behalf of the application developers. And that's what, that's what takes it from Vitess is pretty useful but pretty specialized, to Vitess is extremely useful and the application needs to know even less, and Vitess will just do a lot more work.

30:48

And so did you push, um, the same query parser up to vtgate and use that?

30:55

Sugu Sougoumarane

Yes.

30:55

Aaron Francis

Or did you write... Okay, so you used that same one.

30:57

Sugu Sougoumarane

The parser is the same.

30:58

Aaron Francis

And then... Okay, so the parser's the same. And then you're gonna have to s- keep it high level. How did you determine from the query which shard it should go to? Just, you're gonna have to keep it up here for me, but tell me, just how did you do that?

31:12

Sugu Sougoumarane

So the, uh, yes. So the, uh, that was actually, uh, the... What I, what I implemented is not what is there today.

31:21

Aaron Francis

Okay.

31:21

Sugu Sougoumarane

Uh, but, uh, at that time... So the, the way, the way I started was, let's take the simple case. If it is a select statement-

31:33

Aaron Francis

Mm-hmm

31:33

Sugu Sougoumarane

... where your where clause is the sharding key-

31:38

Aaron Francis

Mm-hmm

31:38

Sugu Sougoumarane

... it is very straightforward.

31:40

Aaron Francis

We like that.

31:41

Sugu Sougoumarane

Yeah. So you start with that, and then you go to a slightly more complex construct, which is a join.

31:49

Aaron Francis

Mm-hmm.

31:51

Sugu Sougoumarane

Uh, the join is on the sharding key, and the where clause is also the sharding key. Then the query still goes to the same shard. That was the-

32:01

Aaron Francis

Mm-hmm

32:01

Sugu Sougoumarane

... like the next level of complexity. The third level of complexity is you select a query where you do the join on the sharding key, but there is no where clause.

32:14

Aaron Francis

Okay.

32:15

Sugu Sougoumarane

So if that happens, then you can actually... You don't have to break, you don't have to break that query up into smaller parts. You send that query to all shards.

32:26

Aaron Francis

Hmm.

32:27

Sugu Sougoumarane

Because, uh, without changing it, because, uh, all rows for each shard live within that rule.

32:35

Aaron Francis

Okay.

32:38

Sugu Sougoumarane

And the fourth level of complexity is when you realize, oh, the rows for this shard are not in the same place.

32:44

Aaron Francis

Hmm.

32:45

Sugu Sougoumarane

In which case, this is where relational, the relational ge- algebra came into play, where, can you identify parts within this complex query-

32:54

Aaron Francis

Hmm

32:54

Sugu Sougoumarane

... where you can say, "This portion, this part of this query can still be preserved and sent to a single shard"?

33:01

Aaron Francis

Mm-hmm.

33:02

Sugu Sougoumarane

Uh, or sent as is to multiple shards. Uh, so that was, uh, uh, that was the aha moment for me. Think that-

33:12

Aaron Francis

Yeah

33:13

Sugu Sougoumarane

... even if there is a complex query, you can identify parts that can be preserved as is and sent to individual shards.

33:20

Aaron Francis

Incredible. Incredible. So this, this is a, um... You know, I, I don't think learning about relational algebra and deconstructing queries is broadly applicable, but what you did is broadly applicable in that you started with, can we make the simple case work? Can we just make the easy one work? Yes, we can. Let's move on to slightly harder, slightly harder, until you have kind of this framework built up in your head to where you get to the hardest one, and you've kind of taken a few, yes, confidence-building, but

33:50

also, like, groundwork-building steps to get there such that you can tackle the hardest one there at the end. And is there a place still online where we can read this, you know, paper, relational algebra post, whatever? Is that still available somewhere?

34:07

Sugu Sougoumarane

I, uh, uh, I ha- I, I did a series, a video series. Uh, I lost my audience. I lost most of my audience, uh, about three-fourths of the way.

34:21

Aaron Francis

Okay.

34:22

Sugu Sougoumarane

It's still there on my website, uh, on-

34:24

Aaron Francis

Okay

34:24

Sugu Sougoumarane

... on my YouTube channel. Uh, because it is, it is a very hard problem.

34:31

Aaron Francis

Yeah. Sounds like it.

34:33

Sugu Sougoumarane

Uh, and, uh, unless you, you really, really ha- unless it's a matter of survival, uh, you would-

34:41

Aaron Francis

Yeah

34:41

Sugu Sougoumarane

... not want to put yourself through that pain.

34:44

Aaron Francis

Okay. Well, I'm gonna find that, and I'll leave a link down below. So if, uh, any of you fellow database nerds wanna watch it, I'll, I'll put a link down below. Um-

34:53

Sugu Sougoumarane

Yeah. It, it was not planned. It is pure freeform-

34:55

Aaron Francis

Mm-hmm

34:55

Sugu Sougoumarane

... where I said, "I'm just going to start talking."

34:58

Aaron Francis

I love it.

34:58

Sugu Sougoumarane

And I just kept talk- I, uh, an hour passed, I said, "Let's stop here."

35:02

Aaron Francis

Mm-hmm.

35:02

Sugu Sougoumarane

And then, and I think it's, like, six or seven parts, so like seven, eight hours of, uh, me just rambling. It's very-

35:09

Aaron Francis

Hmm

35:09

Sugu Sougoumarane

... boring. I would, I would not recommend that.

35:11

Aaron Francis

I very much doubt that.

35:12

Sugu Sougoumarane

And by the way, that uh, that actually, um, uh... I should talk about Andres, who is at, uh, PlanetScale. Uh, he is the, the first one who ingested that entire thing.

35:27

Aaron Francis

Wow. Okay.

35:29

Sugu Sougoumarane

And said, "You know what? There's a better way to do this." And he actually-

35:34

Aaron Francis

Oh, cool

35:35

Sugu Sougoumarane

... improved the query processing for Vitess.

35:37

Aaron Francis

Oh, man. I love that. I am very pro, uh, reading original source material, and in this case, watching original source material because, uh, like you said, nobody does it. And if nobody is doing it, there's a huge amount of, uh, there's a huge amount, uh, an advantage that can be gained when you go straight to the source.

35:58

Um, so it sounds like that happened at PlanetScale, which brings us to the PlanetScale years. 'Cause I, I wanna, I wanna talk about Vitess for Postgres, um, and spend a lot of our time there. So tell me, just as, as briefly or as long as you want to, you founded PlanetScale with a co-founder, and then you decided, "God, I need some time off," and you took three years off.

36:20

So let's lump those two things together, and tell me about that part of your story before you come back out of retirement for your triumphal return.

36:29

Sugu Sougoumarane

So, uh, I'll briefly explain, uh, how I, um, went into, uh, sabbatical retirement. Uh, I even called it retirement for a while. Uh, when, uh, when I co-founded PlanetScale with Jiten, I was the only one who left Google from the original Vitess team.

36:50

Aaron Francis

Oh.

36:50

Sugu Sougoumarane

So I was actually the sole... Actually, I was the sole maintainer of Vitess even, uh, by that time, uh, because YouTube was, uh, actually migrating to Spanner.

36:59

Aaron Francis

Hmm.

36:59

Sugu Sougoumarane

Uh, and that has nothing to do with, uh, with Vitess being bad. It is just a policy decision at Google that they wanted a uniform data store-

37:10

Aaron Francis

Mm-hmm

37:10

Sugu Sougoumarane

... and they didn't want to be maintaining, uh, something that is bespoke.

37:14

Aaron Francis

Mm-hmm.

37:15

Sugu Sougoumarane

Uh, so, um, uh, at that time, uh, I was the only one maintaining Vitess after the, uh -

37:24

Aaron Francis

Goodness

37:24

Sugu Sougoumarane

... and, uh, Vitess, by the way, is, uh, too complex to fit in one person's brain. That includes mine.

37:32

Aaron Francis

Yeah.

37:32

Sugu Sougoumarane

And the way I managed it was by actually time compartmentalizing, which means that I would allocate a few months to just one area of Vitess, and during that time, I was incapable of answering questions or helping anyone with anything else. And then I-

37:48

Aaron Francis

Fascinating

37:49

Sugu Sougoumarane

... would dump that out and move to something else.

37:52

Aaron Francis

Huh.

37:52

Sugu Sougoumarane

Uh, which is how I maintained it for, for about one and a half years or so. Uh, it was very stressful. But over this time, at PlanetScale, uh, I managed to find great people like, you know, Deepti, Andres-

38:07

Aaron Francis

Mm-hmm

38:07

Sugu Sougoumarane

... and the entire Vitess team, and they, uh, they ramped up very quickly. Uh, and uh, there was a time when I was outproducing the entire team, and, uh, by 2022, I could barely keep up with a single one of them. They were all-

38:24

Aaron Francis

Incredible

38:25

Sugu Sougoumarane

... outproducing me. And that's when I realized, you know what? I've succeeded

38:31

Aaron Francis

Yeah, no kidding.

38:32

Sugu Sougoumarane

I have built this team.

38:33

Aaron Francis

Yeah.

38:33

Sugu Sougoumarane

I need to take a break.

38:34

Aaron Francis

Okay.

38:34

Sugu Sougoumarane

By then it was, like, 12 years or so.

38:36

Aaron Francis

Oh.

38:37

Sugu Sougoumarane

So that's how I went on this sabbatical.

38:39

Aaron Francis

Okay. And so you've built up... That's incredible, by the way. Um, you've, you've built up this foundational piece of software, and you get these great people in. Um, and I, when I was at PlanetScale, worked with Deepti, uh, and I just love her. She's amazing. She's-

38:57

Sugu Sougoumarane

She's awesome.

38:57

Aaron Francis

She's wonderful. I'm sure the rest of the team is great, but I worked with Deepti, and she's, uh, she's a delight. So you built up this team of geniuses, and you-

39:05

Sugu Sougoumarane

She stole leadership away from me, which was- ... I thought was going to be the hardest part.

39:10

Aaron Francis

Well, she's doing a, she's doing a great job. Um, so you built up this team of geniuses, and you decided, all right, it's time to take a little rest. And then you go and do what for three years? Just chill out?

39:22

Sugu Sougoumarane

Yeah. Yeah. I-

39:23

Aaron Francis

Nice

39:24

Sugu Sougoumarane

... uh, I actually, I would call it I kind of reinvented myself.

39:28

Aaron Francis

Oh, cool. Tell me.

39:29

Sugu Sougoumarane

Uh, yes. I kind of look and behave like the same person. Uh, the way I would put it is I had, uh, I had a value system-

39:39

Aaron Francis

Hmm

39:39

Sugu Sougoumarane

... which I think was good. I think people appreciate it, but I don't think I was connected to it emotionally by myself.

39:47

Aaron Francis

Interesting.

39:48

Sugu Sougoumarane

It was more, more of a, more of a just a behavior. Uh, and, uh, what I did in the last three years are basically worked on connecting myself to myself. I don't know if that, if that makes-

40:04

Aaron Francis

Fascinating.

40:05

Sugu Sougoumarane

Yeah.

40:05

Aaron Francis

Can you give us any examples?

40:08

Sugu Sougoumarane

Uh, what would be an example? Um-

40:13

Aaron Francis

Maybe one of the values that you felt like was just behavior, but you weren't connected to.

40:19

Sugu Sougoumarane

Um, ah, empathy.

40:24

Aaron Francis

Okay.

40:25

Sugu Sougoumarane

Uh, when, when you, when you see someone in pain, for example-

40:29

Aaron Francis

Mm-hmm

40:29

Sugu Sougoumarane

... you empathize with them, uh, but do you actually feel what they are feeling?

40:36

Aaron Francis

Hmm.

40:38

Sugu Sougoumarane

Uh, sometimes you say, "Oh, something is bad, bad is happening to them," and then you go, uh, you know you have to, you know, you have to be nice to them, you have to say nice things. But do you actually feel what they are feeling?

40:51

Aaron Francis

Mm-hmm.

40:52

Sugu Sougoumarane

So those are the kinds of things that I worked on when-

40:55

Aaron Francis

Oh, cool

40:56

Sugu Sougoumarane

... when you say, you know, like understanding, truly understanding people's pains, you know?

41:00

Aaron Francis

Yeah.

41:00

Sugu Sougoumarane

Truly understanding people's joys, and actually relating to that is what I would... Uh, I actually, uh, the transformation was so, uh, fundamental to me that I actually went into a lot of voluntary work-

41:16

Aaron Francis

Hmm

41:16

Sugu Sougoumarane

... because now I understand, you know, why you have to work with other, other humans-

41:21

Aaron Francis

Mm-hmm

41:21

Sugu Sougoumarane

... you know, help others. So I, for a while, thought of do- going, uh, doing that full time until I felt that I started missing tech work also.

41:30

Aaron Francis

Hmm.

41:30

Sugu Sougoumarane

So I still do all of the voluntary work, but now I'm also doing, uh, all the technical work.

41:36

Aaron Francis

So this is... What a, what a, what a delightful story. So you go, you go off into, uh, you know, in, in literature, you go off into the wilderness, right? You go off into the wilderness, you reinvent, you rediscover, you find yourself, and then you have the original call that's, like, pulling you back. So you've, you've done the thing, and you've gone off, and you've, you've made yourself, uh, you've become more yourself, and then the siren song of the thing that you, that you walked away from starts calling back.

42:06

So tell me, what is it that, like, started to bring you back? And why was it Postgres this time instead of MySQL?

42:16

Sugu Sougoumarane

Uh, the, the idea of Postgres has always been sitting in, in the, in the back of my mind, and it was constantly nagging me. And it's not new. It's been there since, uh, 2020.

42:29

Aaron Francis

Oh, wow

42:29

Sugu Sougoumarane

Uh, uh, in 2020, uh, there were a few people from the Postgres community that talked to me and said, "You know, the... We need to figure out a way to..." Uh, there are actually even, uh, issues open in Git-

42:42

Aaron Francis

Mm

42:42

Sugu Sougoumarane

... in Vitess about it. Uh, they say, "This problem needs solving." And I was excited, I wanted to do it. And, uh, but then, um, I, I feel very guilty, but I had to say this, "We, we... I can't focus on this."

43:01

Aaron Francis

Sure.

43:01

Sugu Sougoumarane

I... There was too much to take care of at PlanetScale.

43:04

Aaron Francis

Mm-hmm.

43:05

Sugu Sougoumarane

Uh, too many, uh... Like, we were still making Vitess work with Vitess.

43:10

Aaron Francis

Mm.

43:10

Sugu Sougoumarane

Bringing up this, you know, b- making it, uh, making the serverless application work.

43:15

Aaron Francis

Mm-hmm.

43:15

Sugu Sougoumarane

So there was a lot of things going on. I, I was very sad to, uh, put an end to that project. As in, not-- I didn't put an end to it, I said, you know, "There'll be another time, but not now." And so that has been in the back of my mind. Even, even during my sabbatical, I've talked to people saying that, you know... Like, I reached out to an old, uh, Vitess contributor and told him, you know, "You start Postgres work." And nobody...

43:42

And, um, and so this has been slowly growing, and it became an obsession in the last couple of months when I realized-

43:51

Aaron Francis

Oh, wow

43:51

Sugu Sougoumarane

... Postgres is exploding.

43:53

Aaron Francis

Yeah.

43:53

Sugu Sougoumarane

And, uh, there are, uh, uh... I, um, I am an advisor to a company called Metronome, and they had an outage. They actually published, uh, their postmortem. I saw that, I said, "Oh my God. This, this, like, this problem needs to be solved today."

44:10

Aaron Francis

Hmm.

44:11

Sugu Sougoumarane

And so that's when I decided, you know, what can we do to, uh, to restart this project?

44:18

Aaron Francis

Mm-hmm. And I will say, I, I don't think you should feel guilty, but the thing that you told that person, "I can't do it right now, but someday," is now true. Now is the day. You're doing it.

44:28

Sugu Sougoumarane

Yes.

44:28

Aaron Francis

So I don't know if that issue is still open, but you gotta go find it, and you say, "We're back, baby." So you've had this, this bug in the back of your head for a long time. Let's bring, let's bring Vitess to Postgres. So talk to me about some of the, um... As you're now focusing on that, right? So it's been something that's been there the whole time, but now you're like, "Let's do this." What are some of the things, um, that you either want to do the same or differently from original or, or I guess current Vitess, which we'll just call Vitess, and we're gonna call

44:59

the new one MultiGress. Is that right?

45:01

Sugu Sougoumarane

MultiGress, yes.

45:02

Aaron Francis

MultiGress. Okay.

45:03

Sugu Sougoumarane

MultiGress.

45:03

Aaron Francis

So what are some things you want to do with MultiGress that are either the same or different than Vitess, things that worked great or things that you're like, "Man, now that I have a clean slate, let's redo it"? And to color that answer, what are some of the things about Postgres that require you to do something slightly different? So you can take that anywhere you want, but I wanna hear about your vision for MultiGress.

45:27

Sugu Sougoumarane

So let me talk about the things I feel like we, uh, we did not prioritize in Vitess.

45:36

Aaron Francis

Mm-hmm. Yeah. And this is no indictment, by the way. Vitess is a fundamentally successful project that is powering huge applications.

45:44

Sugu Sougoumarane

Yeah.

45:45

Aaron Francis

So, but you have a chance to start over, so go on.

45:48

Sugu Sougoumarane

The first one, compatibility.

45:52

Aaron Francis

Okay.

45:54

Sugu Sougoumarane

Uh, I would focus on compatibility. Make sure that, to the extent possible, every Postgres construct-

46:03

Aaron Francis

Mm

46:03

Sugu Sougoumarane

... works like before. Like, so MultiGress should feel and quack like a Postgres.

46:13

Aaron Francis

Love that. Yep.

46:14

Sugu Sougoumarane

That is, that is the highest priority. So when we built Vitess, that was not our goal, mainly because we thought Vitess would become its own standard and database.

46:25

Aaron Francis

Got it.

46:27

Sugu Sougoumarane

And that is not true. People, till even today, the first question they ask is, "How compatible is it with MySQL?"

46:33

Aaron Francis

Mm-hmm. Mm-hmm.

46:35

Sugu Sougoumarane

Uh, so that, that is, uh, one problem. The other one that we did not really pay attention to is approachability and usability.

46:46

Aaron Francis

Okay.

46:47

Sugu Sougoumarane

Vitess is a very, very complex piece of software.

46:51

Aaron Francis

Yeah.

46:52

Sugu Sougoumarane

Extremely flexible.

46:54

Aaron Francis

Mm-hmm.

46:54

Sugu Sougoumarane

Like, you could, you could go to Vitess and ask, "Can you do this very specific thing?" The answer is most likely yes.

47:01

Aaron Francis

Mm-hmm.

47:03

Sugu Sougoumarane

Uh, because all you have to do is take this piece, take that piece, put it together, and write a script, and it will do this for you.

47:09

Aaron Francis

Mm-hmm.

47:09

Sugu Sougoumarane

And there is this command line option that you need to change. Like, literally, if you do vt-tablet-edge, you will get like, uh, five pages of command line options. Uh, and yes. And you can change one of those to make Vitess do what you like.

47:24

Aaron Francis

Mm-hmm.

47:25

Sugu Sougoumarane

But that actually has been a huge barrier for adoption because it's daunting-

47:30

Aaron Francis

Yeah

47:31

Sugu Sougoumarane

... to think about bringing up a Vitess cluster. So that is the second problem that I would definitely want to address the new MultiGress. Um, what would be a third one? Let me see if I can bring up my notes here. I had some notes somewhere about it. Uh, I would say, uh, uh, the other problem would be, uh, something that we are still struggling with.

47:57

We actually, the... We finally have, uh, I should, I shouldn't say we, it's the Vitess team that did this, which is 2PC.

48:05

Aaron Francis

Okay.

48:05

Sugu Sougoumarane

Uh, so the Vitess, uh, workload has always encouraged, uh, not relying on two-phase commits, uh, distributed transactions, and, um, uh, because we have always believed that two-phase transactions are a slippery slope. Once we let you do it, you may, you know, go, go, uh, abuse it and actually end up in a state where you're not happy.

48:31

So we highly discouraged it to the extent that we didn't even want to support it.

48:35

Aaron Francis

Mm-hmm

48:36

Sugu Sougoumarane

And finally, I think the Vitest team realized that, uh, you know, we should support it, and they've added, you know, the support. And that's something that I would prioritize for, uh, in Postgres because again, it goes back to compatibility. If you-

48:49

Aaron Francis

Mm-hmm

48:49

Sugu Sougoumarane

... without 2PC, you're not going to have full compatibility. So those are the three things I would, uh, prioritize, uh, moving. Uh-

49:00

Aaron Francis

And-

49:00

Sugu Sougoumarane

Everything else I'll bring mostly.

49:02

Aaron Francis

Yeah. That's, that's huge. That's a, that's a huge endorsement of Vitess. And so with the architecture of Postgres, does that make those things, um, harder, easier, or does it have no effect? Because MySQL and Postgres are fundamentally different beasts, and so you're not gonna be able to just grab it all and move it over. Does that make your life a lot easier, um, that you're now doing it for Postgres instead of MySQL?

49:29

Sugu Sougoumarane

Yes. I think the, there are a few reasons why it's easier. One is Postgres has much cleaner, has a much cleaner 2PC API. Very beautiful. I saw it. Oh my God. Wish MySQL was this simple.

49:44

Aaron Francis

Oh, man.

49:45

Sugu Sougoumarane

So, so that's, that's number one. Uh, compatibility, uh, I actually is going to be easier mainly because of how approachable the Postgres code base is-

49:59

Aaron Francis

Mm

50:00

Sugu Sougoumarane

... and how much tribal knowledge exists in Postgres about the Postgres engine itself.

50:05

Aaron Francis

Mm-hmm.

50:06

Sugu Sougoumarane

For example, if we wanted to implement stored procedures, we would basically have to do it for, uh, right now in Vitess, uh, we would have to do it from the ground up.

50:18

Aaron Francis

Mm.

50:18

Sugu Sougoumarane

But, uh, if we were doing it in Postgres, we can take the entire, uh, existing stored procedure implementation in Postgres and just transport it into Vitess.

50:30

Aaron Francis

So compare, compare the source code of Postgres and MySQL for me real quick. What is... I've, I've read horror stories on Hacker News about the source code for MySQL. What is the... And you said Postgres is so clean and understandable. What's going on there? What's the big difference?

50:46

Sugu Sougoumarane

I think the big difference is that, uh, there are not as many experts in MySQL-

50:53

Aaron Francis

Mm

50:54

Sugu Sougoumarane

... about the code because, uh, they are, uh, I don't even know. Like, for example, I wouldn't even know where to ask.

51:02

Aaron Francis

Mm.

51:03

Sugu Sougoumarane

Just, is there somebody who knows how this engine works? Uh, and, uh, whereas in Postgres, there are so many places to ask and, uh, uh, I would say it's, I, I would say it's the openness of the community.

51:20

Aaron Francis

Yeah.

51:21

Sugu Sougoumarane

Yeah. The Postgres community is-

51:22

Aaron Francis

Yeah, that makes sense.

51:23

Sugu Sougoumarane

Yeah. And, and also-

51:25

Aaron Francis

I've heard-

51:25

Sugu Sougoumarane

... the, the, yeah.

51:27

Aaron Francis

No, please.

51:28

Sugu Sougoumarane

Yeah. Like, uh, it feels like, uh, any question that you have, you can get it answered. Uh, probably the, um, and also the licensing, because it's Postgres License.

51:40

Aaron Francis

Mm-hmm.

51:40

Sugu Sougoumarane

I can freely copy it. If it's MySQL license, even if I see the code, I cannot copy it.

51:45

Aaron Francis

Gotcha. Well, that makes a huge difference.

51:48

Sugu Sougoumarane

Yes. Yeah.

51:48

Aaron Francis

I have heard, uh, I've heard amazing things about the, not the Postgres user community, I haven't heard bad things, but about the, um, Postgres hacker, I think, is what they call themselves. The Postgres hackers. I've heard amazing things about that community, the people that actually work down on the core, and how, um, everything is just done out in the open. You just, you know, you just put it on the mailing list, and you gotta talk to people and gather consensus.

52:13

But while that may sound like a slow and arduous process, it's all happening out in the open. And there are people that you can talk to, and you can find them at conferences or email them or hop on a call with them, and you can get all of that knowledge downloaded into your head. So that, that makes a lot of sense to me. So that part is gonna make your life a lot easier. Um, how are you or, or you and the team, and we should say that you have, you've joined Supabase to, to further this effort.

52:40

So how are you and whatever team you're building around yourself inside of Supabase, how are you going to, I guess, how are you going to develop it, structure it, organize it, both, like, your little new community that is, that is budding and the actual software project? Like, where... Are you re- are you gonna do, you know, VT Gates and VT Tablets?

53:02

Is all of that architecture coming over? So maybe start with the organization of the team and your decision to join Supabase, and then we can move into the technical organization.

53:12

Sugu Sougoumarane

Yeah. The, that's a, that's a great question. So I haven't, uh, uh... The idea, uh, my, my, my idea of joining Supabase is, like, you know, I have done this before.

53:25

Aaron Francis

Mm-hmm.

53:26

Sugu Sougoumarane

I, I was able to hire and train people.

53:28

Aaron Francis

Mm-hmm.

53:29

Sugu Sougoumarane

So, uh, building a team is not a problem.

53:32

Aaron Francis

Mm-hmm.

53:33

Sugu Sougoumarane

Uh, and there are also, uh, older contributors, uh, contributors that are out there that, uh, that I should be able to reach and, uh, get them on board. So I have confidence in building the right team and, uh, with the right people, uh, I know, uh, it won't be hard to, uh, bring them up to speed. Uh, so that part, I'm not worried at all with.

53:56

Aaron Francis

And is that your mandate inside Supabase? Let's go grab some, let's go grab some people-

54:00

Sugu Sougoumarane

Yeah. Let's grab some people-

54:01

Aaron Francis

... and form this Multigress team

54:02

Sugu Sougoumarane

... find, yeah, find the-

54:04

Aaron Francis

Cool

54:04

Sugu Sougoumarane

... the right talent, uh, get them, get them ramped up and do it.

54:08

Aaron Francis

So fun.

54:08

Sugu Sougoumarane

So that's the, that's the team strategy.

54:11

Aaron Francis

Okay.

54:12

Sugu Sougoumarane

And, um, the technical strategy, uh, what I want is Vitess to be a Postgres native project.

54:22

Aaron Francis

Okay.

54:23

Sugu Sougoumarane

Uh, in other words, uh, I should put a no MySQL sign. So we, what we, what we don't want is... Uh, there's two reasons. Uh, like one is anything MySQL specific is, um- Uh, we don't want to live with that, you know, for-

54:41

Aaron Francis

Right

54:41

Sugu Sougoumarane

... a project that is meant to last for many years for Postgres. So we don't want to inherit anything that we did just because it's MySQL. So that's one thing.

54:49

Aaron Francis

Yep, totally.

54:50

Sugu Sougoumarane

Uh, and the other thing is, uh, Vitess is an old project. It's 15 years old. It has legacy features-

54:58

Aaron Francis

Mm-hmm

54:58

Sugu Sougoumarane

... uh, that are either not in use or that we are supporting only because we don't want to break somebody.

55:05

Aaron Francis

Mm-hmm.

55:05

Sugu Sougoumarane

There's no reason to bring those in, also into this new project. So for these two reasons, uh, what we've decided to do was we are going to start from scratch, and we are going to import, copy over what we think we want, instead of-

55:20

Aaron Francis

Mm

55:20

Sugu Sougoumarane

... taking Vitess as is and retrofitting it to make it to work for Postgres.

55:25

Aaron Francis

Cool.

55:26

Sugu Sougoumarane

So we have-

55:26

Aaron Francis

So you, you, you get to do the thing that every developer always wants to do, and that is a rewrite.

55:31

Sugu Sougoumarane

Rewrite.

55:32

Aaron Francis

You get to start over. So you get to start over. But, but not only are you starting over, you're starting over with a, a solid foundation from which you can pull, and you're starting over with, uh, a mandate from a successful company so that you can actually go out and build the team, and you can spend the time to do this right.

55:52

Normally, rewrites are happening, you know, as the plane's on the way down, you're building the parachute, but you're not doing that here. You've got the time, you've got the bandwidth, you've got the space, and so where do you even begin? Like, you, you know, uh, in, in the beginning, you said, "We started, you know, the VT Gate, we started... Or the tablet or whatever. We start with select star where ID equals," and it's like, "Okay, we can do that." So in this situation, um, walk me through, like, what are you actually, where are you actually going

56:23

to start? What component or what, like, Postgres extension, or where's, where are you gonna get your hooks in?

56:30

Sugu Sougoumarane

The first one is actually to build a VT Tablet and a VT Gate.

56:35

Aaron Francis

Okay.

56:36

Sugu Sougoumarane

A very basic version of the two. And, uh, actually, our goal is to deploy it throughout Supabase. Like, which means that once this is ready, this will be the Supabase load balancer. This will be your Supabase front end, uh, unified. Uh, and the reason why we want to do this is because once you've got your connection, that connection stays until your database goes to 500 terabytes.

57:05

Aaron Francis

Mm-hmm.

57:05

Sugu Sougoumarane

You don't have to-

57:06

Aaron Francis

That's, that's the good stuff.

57:09

Sugu Sougoumarane

Yeah. You never have to know that your things are, are now completely different-

57:15

Aaron Francis

Mm-hmm

57:15

Sugu Sougoumarane

... underneath. And, uh, you basically, you should not know that you went sharded. You should not know-

57:21

Aaron Francis

Mm-hmm

57:21

Sugu Sougoumarane

... that, uh, all these transitions took place. It should be completely trans. So that, for that reason, what we want is Vitess to manage your, your life from the beginning till the end. So the-

57:33

Aaron Francis

Mm-hmm

57:33

Sugu Sougoumarane

... Supabase thing, you know, buildin' a weekend scale to millions.

57:36

Aaron Francis

Uh-huh.

57:36

Sugu Sougoumarane

You've just changed to, you know, buildin' a weekend scale to billions.

57:43

Aaron Francis

Oh, that's amazing. So you're gonna start, you're gonna start with, um, the router, which is the VT Gate, right? And that's the one that the outside world, the application developers will connect to, and it will hold that connection and serve as kind of like a, an opaque layer that's like, "Don't worry what's going on behind the curtain. We got it. We're in control."

58:03

Sugu Sougoumarane

Yeah.

58:03

Aaron Francis

"You connect to us. We'll handle the rest." So that's the... Are you gonna call them MG Gates for Multigress?

58:10

Sugu Sougoumarane

Uh, I think it's, uh, I think it's going to remain VT Gate. I looked at it. There is just too much VT in-

58:19

Aaron Francis

Yeah. I was gonna say, that's gonna not only be hard technically, but you are gonna continue to say VT Gate forever, I guarantee it.

58:26

Sugu Sougoumarane

That's true.

58:27

Aaron Francis

So yeah. So you're gonna start-

58:29

Sugu Sougoumarane

Yeah

58:29

Aaron Francis

... with the VT Gate, which is the router, and the VT Tablet, which sits next to, uh, in this case, Postgres, and handles the... Is it still handling the sort of, like, blocking of bad queries and stuff like that, this, this VT Gate?

58:43

Sugu Sougoumarane

Yes. Uh, some of those actually, uh, we may actually not port all those features.

58:49

Aaron Francis

Mm-hmm.

58:50

Sugu Sougoumarane

Uh, because many of the, uh, like, uh... Uh, that's actually a good question. I, uh, we may not port it initially because we don't see, uh, we don't see any, not, we don't see many people using those features anymore for one reason or another.

59:07

Aaron Francis

Got it. Interesting.

59:07

Sugu Sougoumarane

I think-

59:07

Aaron Francis

Okay

59:08

Sugu Sougoumarane

... I think when we were there, because we were pushing the databases to the limit, these-

59:13

Aaron Francis

Mm-hmm

59:13

Sugu Sougoumarane

... we were very sensitive to these changes.

59:15

Aaron Francis

Mm-hmm.

59:15

Sugu Sougoumarane

But once you are scaled out, uh, I don't think it's as big a deal.

59:20

Aaron Francis

Okay. Cool.

59:21

Sugu Sougoumarane

Uh, is my guess. Yeah.

59:22

Aaron Francis

So that raises my next question, which is, which are... If you had to put, like, a punch list of these are the three things that we definitely have to have to hit 0.1 release or whatever, um, so what, do you have those in mind? And if not-

59:38

Sugu Sougoumarane

Yes

59:38

Aaron Francis

... just off the top of... Okay, let's hear them. What are, what are the big guys that you're trying to hit?

59:43

Sugu Sougoumarane

Uh, the, the VT Tab- VT Tablet and the proxy layer.

59:48

Aaron Francis

Mm-hmm.

59:48

Sugu Sougoumarane

Uh, we, uh, what I want, where, where I want to be is being able to serve sharded queries.

59:57

Aaron Francis

Okay.

59:58

Sugu Sougoumarane

Um, maybe not stored procedures.

1:00:02

Aaron Francis

Mm-hmm.

1:00:02

Sugu Sougoumarane

Maybe. Don't know.

1:00:04

Aaron Francis

Mm.

1:00:04

Sugu Sougoumarane

But at least queries. The, the-

1:00:07

Aaron Francis

Okay

1:00:07

Sugu Sougoumarane

... for insert, update, you know, delete-

1:00:09

Aaron Francis

Mm-hmm

1:00:10

Sugu Sougoumarane

... select. Uh, those, those four queries in a fully sharded Postgres.

1:00:16

Aaron Francis

Okay.

1:00:16

Sugu Sougoumarane

Uh, so that would be what I would call my MVP.

1:00:21

Aaron Francis

Okay. That's your North Stars. You wanna be able to serve sharded queries.

1:00:26

Sugu Sougoumarane

Yes.

1:00:27

Aaron Francis

Okay.

1:00:27

Sugu Sougoumarane

Transparently.

1:00:28

Aaron Francis

Transparently, right.

1:00:29

Sugu Sougoumarane

Yeah.

1:00:29

Aaron Francis

With no knowledge from the application developer, which is-

1:00:32

Sugu Sougoumarane

Yeah

1:00:32

Aaron Francis

... what, what makes Vitess work, in my opinion. Um, so what about, like, what about the next features? Are you thinking, d- does that include resharding? Um, and how much of... I, I guess this is, this is an interesting This is an interesting situation you find yourself in, 'cause you're coming into a mature company that has a lot of features.

1:00:54

And so are you going to be trying to pull some of those features and put them into Multigress? Or how, how does that interplay kind of work within Supabase?

1:01:06

Sugu Sougoumarane

Well, the advantage is, uh, Supabase treats Postgres as a black box.

1:01:11

Aaron Francis

Okay.

1:01:12

Sugu Sougoumarane

And we become that black, black box. So-

1:01:14

Aaron Francis

Hmm

1:01:15

Sugu Sougoumarane

... outside that block, black box, it doesn't matter what Supabase is doing. Uh, they would just connect to Multigress now. Uh, so the rest of Supabase is not affected by, uh, by what we do underneath.

1:01:30

Aaron Francis

That's a nice integration point. I'm thinking about something like, um, like database branching. Does that not feel like it crosses over between maybe what Supabase is already doing and where Multigress is gonna come in? Or is that something you, you have thought about? 'Cause I have to imagine there are some places where it's gonna be kind of blurry as to who's responsible.

1:01:53

Sugu Sougoumarane

Uh, that's a good question. Uh, I actually don't know how database branching works in, uh, Supabase. Uh, but I would presume that at the end of the day, even if you branch the database, you're going to create another one-

1:02:12

Aaron Francis

Sure. Mm-hmm

1:02:12

Sugu Sougoumarane

... like with the same schema. So I think it will still work fine by the fact that Multigress is a black box that-

1:02:21

Aaron Francis

Mm-hmm

1:02:21

Sugu Sougoumarane

... masquerades as Postgres. You want to create a copy, you create a copy, and Multigress will create a copy for you. Uh, so you should not care that it is, uh, a sharded Postgres under, under the covers is, would be my-

1:02:36

Aaron Francis

Yeah. Okay

1:02:37

Sugu Sougoumarane

... the way I would approach it. But, but wh- what you say has a point. Like, uh, some of these abstractions, you know, are, may not be-

1:02:46

Aaron Francis

Mm-hmm

1:02:46

Sugu Sougoumarane

... as perfect. Uh, in which case, uh, I am in Supabase, so I could go talk to the team and we-

1:02:52

Aaron Francis

Yes, you could

1:02:53

Sugu Sougoumarane

... work something out, you know?

1:02:54

Aaron Francis

Yep. Oh, I can't wait to have you back-

1:02:56

Sugu Sougoumarane

Yeah

1:02:56

Aaron Francis

... in a year to figure out how all this stuff finally plays out. This is so fascinating to me. So, um, where, where are you... Where's the project right now? Your announcement came maybe last week. I, I feel like it was pretty recent. Last week, the week before, something like that.

1:03:11

Sugu Sougoumarane

Yeah, yeah.

1:03:11

Aaron Francis

You are now inside of Supabase. Talk to us about the status of both the project and the team.

1:03:17

Sugu Sougoumarane

Well, I learned two days learning Mac because- ... I had previously I was previously-

1:03:27

Aaron Francis

Mm

1:03:27

Sugu Sougoumarane

... a Linux user.

1:03:28

Aaron Francis

Okay.

1:03:30

Sugu Sougoumarane

Uh, for, I think I, uh, I last used Mac, like, uh, oh, at least over 10 years ago. So, so I'm, I'm, I'm-

1:03:37

Aaron Francis

I'm just, I'm just laughing 'cause you're like, you're like one of the foremost, like, computer science brains in the world, and you join this company and you're like, "I don't know how to... What is this thing? I don't know what this is." Okay. So you got a little bit of a learning curve. You're on a Mac. All right. That's a good start.

1:03:55

Sugu Sougoumarane

Yeah.

1:03:55

Aaron Francis

Now what?

1:03:55

Sugu Sougoumarane

But I am, uh, I am making, while, you know, uh, I, I can still type, so I am making- I'm actually making a feature list. I'm making a project plan.

1:04:06

Aaron Francis

Okay.

1:04:06

Sugu Sougoumarane

I'm making, uh, um... I'm, I'm also ta- talking about, uh, some, uh, some, making some core changes that the old Vitess has that the new Vitess, you know, need not have.

1:04:20

Aaron Francis

Mm-hmm.

1:04:20

Sugu Sougoumarane

Or some ex- some cool extensions-

1:04:22

Aaron Francis

Mm-hmm

1:04:22

Sugu Sougoumarane

... uh, that we don't have the luxury to do with the old Vitess, that we can do with the new, because we now have a clean slate. So I'm brainstorming with myself right now because there's nobody else. Uh, uh, and, uh, so I'm doing that, um, which is, uh, pretty exciting.

1:04:39

Aaron Francis

Yeah. So you're getting to dream.

1:04:40

Sugu Sougoumarane

Free to dream, I would say is pretty exciting.

1:04:41

Aaron Francis

You're getting to dream a little bit. Yeah.

1:04:43

Sugu Sougoumarane

Yeah.

1:04:43

Aaron Francis

It sounds fun.

1:04:45

Sugu Sougoumarane

Yeah.

1:04:45

Aaron Francis

So in your, in your wildest dreams, let's not talk about reality. In your wildest dreams, where do you see Multigress going? Um, either from, like, a, um, adoption and impact standpoint or from a feature standpoint, where you're like, "You know what? I don't even wanna say this out loud, but wouldn't it be crazy if..." Um, so as you're in this dreaming phase and planning and trying to, like, map out what is going to be a, a huge contribution

1:05:15

to the database ecosystem, what are these things that you're like, "Oh, that would be incredible"? Do you have any of those that you're thinking of?

1:05:23

Sugu Sougoumarane

I think the, uh, this dream may sound simple, but my dream is, uh, someone coming in and being able to say, "This is just Postgres."

1:05:38

Aaron Francis

Hmm.

1:05:41

Sugu Sougoumarane

Except that it can scale massively.

1:05:44

Aaron Francis

Mm-hmm.

1:05:45

Sugu Sougoumarane

If, if not-

1:05:45

Aaron Francis

And I will, uh, I will say that that is a simple dream from, like, a consumer's perspective, but probably a big, hairy, audacious goal from, from your perspective, right?

1:05:57

Sugu Sougoumarane

It's actually, yeah.

1:05:57

Aaron Francis

It has to feel like a huge goal.

1:05:59

Sugu Sougoumarane

It's, it's, it's almost, almost unachievable. But can you do it, right?

1:06:06

Aaron Francis

Yep.

1:06:07

Sugu Sougoumarane

Yeah.

1:06:08

Aaron Francis

That's what makes it so fun.

1:06:08

Sugu Sougoumarane

But it should not, they should not know, they should not feel like, uh, it's a different, uh-

1:06:14

Aaron Francis

Mm-hmm

1:06:14

Sugu Sougoumarane

... different system. Uh, 'cause that hurt us so much in Vitess. Uh-

1:06:18

Aaron Francis

Yeah. Yeah.

1:06:22

Sugu Sougoumarane

But, uh-

1:06:22

Aaron Francis

Yeah

1:06:22

Sugu Sougoumarane

... o- other than that, like, um, uh, I, I want to see, uh... I mean, this is something that Vitess is totally capable of. I would like to see databases that run into the petabytes-

1:06:35

Aaron Francis

Mm-hmm

1:06:35

Sugu Sougoumarane

... comfortably.

1:06:37

Aaron Francis

Yep. Yep. Okay. Those are good goals. I like that. I especially like the focus on, um, and maybe, maybe this is your empathy showing, the focus on the compatibility. Because one of the frustrating things is- ... connecting to a, a Vitess cluster or PlanetScale database and, you know, finding out, oh, this, this doesn't work.

1:07:00

Like, I can't do correlated subqueries or whatever weird things that, you know, we developers like to do. Um, and they've been hammering pretty hard on compatibility, but to hear that as, like, a founding principle for Multigress is, uh, I think that is, that seems directionally correct to me. Because for every, for every Sugu who wants to, like, build out a brand-new database, there are five million developers that just wanna run a database, and they just want it to work.

1:07:29

And so having compatibility be so high up on the list, uh, seems like a wise decision from, from my point of view. But I know that that's gonna be super hard from your point of view. Um, and so that's what makes it a good goal, and that's what makes it exciting. You're gonna have to sit around for three months and think about things again.

1:07:46

Sugu Sougoumarane

Simple and hard.

1:07:48

Aaron Francis

Yes, exactly. And from, from the perspective of building the team, um, is there anything, is there anything you wanna say to anyone that might be listening of people you're looking for, or how's that process going? Or, like, where are you trying to pull these people? How big of a team are you gonna start with? Tell me about your, your team-building thoughts.

1:08:09

Sugu Sougoumarane

The, uh... I've, I've always liked, uh, smaller teams.

1:08:15

Aaron Francis

Okay.

1:08:15

Sugu Sougoumarane

I would say something, uh, something in the range of 5 to 10 people has-

1:08:20

Aaron Francis

Mm-hmm

1:08:20

Sugu Sougoumarane

... uh, is what I would say the sweet spot. Um, I still feel proud that, uh, Vitess has never had a team size greater than 10, for example, even if-

1:08:31

Aaron Francis

That's crazy

1:08:32

Sugu Sougoumarane

... like, in its crazy period. And we were able to compete with all other distributed systems with just-

1:08:36

Aaron Francis

Mm-hmm

1:08:36

Sugu Sougoumarane

... such a small team.

1:08:38

Aaron Francis

Mm-hmm.

1:08:38

Sugu Sougoumarane

So, uh, so I believe in the power of, uh, efficacy of a single engineer-

1:08:44

Aaron Francis

Mm-hmm

1:08:44

Sugu Sougoumarane

... uh, being able to, you know. I think a small team works so well together, uh, that they can outperform extremely large teams.

1:08:53

Aaron Francis

Mm-hmm.

1:08:53

Sugu Sougoumarane

Right? So Vitess has proven that. And that has been the case even, uh, in my previous lives, both at YouTube and PayPal.

1:09:02

Aaron Francis

Mm-hmm.

1:09:02

Sugu Sougoumarane

Uh, so I would say, like, uh, 5 to 10 people would be the number of people I have in mind. And, uh, uh, and anyone, uh, I would say anyone that, uh, has worked on Vitess, uh, will obviously be welcome.

1:09:22

Aaron Francis

Mm-hmm.

1:09:22

Sugu Sougoumarane

And, uh, but if you're-

1:09:23

Aaron Francis

Is, I assume it's all gonna be the same stack. It's all gonna be Go, same as Vitess-

1:09:27

Sugu Sougoumarane

It's, it's the same, yeah

1:09:27

Aaron Francis

... 'cause you're gonna pull it over. Yeah

1:09:28

Sugu Sougoumarane

You'll be copying a lot of code, a lot of code-

1:09:30

Aaron Francis

Cool

1:09:30

Sugu Sougoumarane

... from Vitess. As a matter of fact, 90% of Vitess is actually agnostic of MySQL. Most people don't know this.

1:09:36

Aaron Francis

Oh.

1:09:37

Sugu Sougoumarane

Uh, because that's how we built Vitess, with, uh, we did not want to get locked down with MySQL-

1:09:43

Aaron Francis

Smart

1:09:43

Sugu Sougoumarane

... until we were pressured to, which is why it was not compatible-

1:09:47

Aaron Francis

Mm-hmm

1:09:47

Sugu Sougoumarane

... 'cause we did not want to do anything specific to MySQL.

1:09:50

Aaron Francis

Mm-hmm. That makes sense.

1:09:51

Sugu Sougoumarane

And then later we said, "Okay, you know, we'll, we'll do, we'll start working towards that."

1:09:55

Aaron Francis

So are you actively hiring right now? Like, are there-

1:09:59

Sugu Sougoumarane

Yes, we are actively-

1:10:00

Aaron Francis

Okay

1:10:00

Sugu Sougoumarane

... hiring. There is a link in the, uh, blog post that, uh-

1:10:05

Aaron Francis

Perfect

1:10:05

Sugu Sougoumarane

... uh, at, uh, Supabase. So if you are interested, uh, click on that link and, uh, please apply. And, uh-

1:10:14

Aaron Francis

Wonderful

1:10:15

Sugu Sougoumarane

... yeah. We have already a bunch of applicants here-

1:10:18

Aaron Francis

I bet. Yeah

1:10:19

Sugu Sougoumarane

... uh, interviewing a few, so, uh, yes. And at some point or time, we will actually, uh, say we, uh, we have enough because I don't-

1:10:28

Aaron Francis

Yeah

1:10:28

Sugu Sougoumarane

... I don't want to build a big-

1:10:29

Aaron Francis

Yeah. 5 or 10 is not very many. Um, well, I'll leave a, I'll leave a link down below for anyone that has either worked with Vitess or is a super Go genius or anything like that. If you wanna apply-

1:10:39

Sugu Sougoumarane

Or anybody-

1:10:39

Aaron Francis

... please do

1:10:40

Sugu Sougoumarane

... distributed systems or, uh, deep database knowledge.

1:10:44

Aaron Francis

Perfect. Yes. I'll, I'll leave a link below for all of that. So speaking of your blog post, you kinda came out of nowhere. You've been, you know, you've been out in the wilderness, and then you come back and you're like, "By the way, I'm joining Supabase and we're, we're doing Multigress." What was the response like to that? I mean, I saw it, but tell me from your point of view, what was the, the, um, the public's reaction to that announcement?

1:11:08

Sugu Sougoumarane

It was over... I was-- It was overwhelmingly positive.

1:11:12

Aaron Francis

Yeah.

1:11:12

Sugu Sougoumarane

I did not expect-

1:11:14

Aaron Francis

That's what I saw

1:11:14

Sugu Sougoumarane

... uh, I did not like, uh... You know, I, I, I, I kind of felt like a, like I come from the MySQL world. I thought I may not be accepted by, uh-

1:11:25

Aaron Francis

Mm-hmm

1:11:26

Sugu Sougoumarane

... the Postgres community. So I'm, I feel very humbled that they, like, the, the people are welcoming me, so I will keep that in mind. Uh, so I, I, yeah. So I did not... So I'm, yeah. I didn't expect to be welcomed this well, and, uh, I will respect that for sure.

1:11:47

Aaron Francis

I think that is, uh, a testament both to you and your proof of work and to the Postgres community, um, that, that they're so excited to have you, um, become, like, a pretty fundamental part of it, doing this massive project. So I'm glad to hear... That's what I saw from the outside, is everybody was like, "Oh, this totally rules." And I'm glad to hear that that's, that that was, uh, felt by you as well because I think it is, it is well deserved.

1:12:13

Um, so I don't wanna take up too much more of your time, but tell me, is there anything else about Multigress or things you're looking forward to or things that are exciting for you, or anything else you wanna leave, um, the audience with? Any just kind of broad thoughts or, um, anything like that?

1:12:33

Sugu Sougoumarane

Oh, that's, uh, I never thought about that. Uh, I think you covered everything that I, I wanted to say. Uh, and, uh, I would say that I, uh, I would talk about, you know, if you are interested, yeah, we are definitely looking for talent.

1:12:53

Aaron Francis

Yeah.

1:12:53

Sugu Sougoumarane

Definitely looking for talent is-

1:12:55

Aaron Francis

Wonderful

1:12:55

Sugu Sougoumarane

... at this point. My, my top, the, the top of my mind is that

1:13:00

Aaron Francis

Okay. Well, if you wanna, if you're listening and you wanna work with a thoughtful genius, I'll leave some links down below to where you can find Sugu. Um, I have to say, I have to tell you, um, you should be incredibly proud of all the things that you have done. It, it... You are, um, you're extremely thoughtful, but also clearly massively intelligent, and the stuff that you have done is, is very impressive.

1:13:24

And so I hope that you feel that. Um, I know that, you know, you worked on it for 12 years and then had to be like, "I gotta take a step back." But I hope you're coming back with tons of energy, and I hope you feel like, man, this is going to be great, because I think it is, and I think you should be super proud of all the stuff that you've done.

1:13:43

Sugu Sougoumarane

Oh, thank you very much.

1:13:44

Aaron Francis

Yeah. And thanks, thanks for coming on here. Um, I'll leave links down below for everything we've talked about so people can, uh, people can find out more. And tell us, um, just as we go here, where can people find you online if they want to connect?

1:14:00

Sugu Sougoumarane

Uh, you can find me on, uh, LinkedIn, Sugu.

1:14:05

Aaron Francis

Okay.

1:14:05

Sugu Sougoumarane

You can find me on, uh, X.com, S-Saugau.

1:14:09

Aaron Francis

Okay.

1:14:10

Sugu Sougoumarane

And, uh, where else do I go? I think I'm on Reddit also.

1:14:15

Aaron Francis

Okay.

1:14:16

Sugu Sougoumarane

Uh, Saugau.

1:14:16

Aaron Francis

Okay.

1:14:17

Sugu Sougoumarane

S-Saugau.

1:14:17

Aaron Francis

Perfect.

1:14:18

Sugu Sougoumarane

Yeah.

1:14:19

Aaron Francis

Perfect. So if you wanna go see his Reddit comments, go over there. I'll leave the links to all of that down below. Um, thank you all for listening-

1:14:26

Sugu Sougoumarane

I've not been very socially active, by the way. Uh-

1:14:28

Aaron Francis

Yeah

1:14:28

Sugu Sougoumarane

... I, I, now I am. I realize that I should have been more active.

1:14:33

Aaron Francis

Ah, I don't know. I think, you know, if you're gonna go on sabbatical, logging off seems like the right thing to do. So we'll, uh, we'll say that that was the right thing to do, but now you're back, so people can, people can go on LinkedIn and Twitter or Reddit, I suppose, and find you, um, if they wanna hang out. So thank you, Sugu, for being here. This has been just a, this has been a delight.

1:14:53

This has been so much fun. I hope you, I hope you enjoyed this.

1:14:56

Sugu Sougoumarane

You made this as much fun for me, too.

1:14:58

Aaron Francis

Oh, good. Well, that's very nice. Um, if y'all are listening on audio, there is a video on YouTube, and if you're listening on YouTube, there is an RSS audio only feed. I'll leave links to both in the show notes or the description. Until the next time, we'll see you later.

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