October 20241:01:212.5k views

Creating a Postgres platform with Monica & Tudor from Xata.io

About

In this interview, I talk with Monica Sarbu and Tudor Golubenco from Xata about their journey from Elastic to founding Xata. We deep dive on building a Postgres hosting platform, handling schema changes, and how they've made their free tier economical.

Transcript

Everything we said

00:01

Aaron Francis

Okay. Welcome back to Database School. Uh, I am your host, Aaron Francis, and today, first time ever, we have two guests on the show. So it's growing. It's growing exponentially. It's gonna be a lot of fun here. Um, so we have, uh, Monica and Tudor here from Xata, and Monica is the founder of Xata, and Tudor's the CTO. And so we're gonna hopefully dive in super deep about how they met, how it got started, all the stuff that they're doing, and, um, I'll let, I'll let Monica describe, uh, what

00:31

Xata is and introduce herself, and then Tudor, we can throw it to you. So Monica, welcome.

00:36

Monica Sarbu

Yay. Uh, hi, everyone. I'm really excited to be able to, uh, be part of the show.

00:46

Tudor Golubenco

Hey, I'm Tudor. I am CTO of Xata. Nice to meet everyone.

00:50

Aaron Francis

Yeah. Thanks for being here. So Monica, tell us, give us the... But we'll, we'll dive in later. Give us the one-sentence, two-sentence pitch for what is Xata.

01:01

Monica Sarbu

Yeah. So what we are building is a Postgres database platform for developers. By a Postgres database platform, we mean that it's a fully managed Postgres service completed with additional, uh, features, uh, that kind of help developers build application fasters and also achieve, um, s- performance at scale.

01:23

Uh, and our focus currently is, um, basically, uh, schema changes, uh, and, uh, providing a, a best, uh, developer ex- workflow for our developers. Uh, so we have this, we have been building this, uh, open source project called pgroll that offers zero downtime reversible, uh, schema changes.

01:45

Uh, and our other key differentiations are basically, uh, major version upgrades. Uh, we also have, uh, a story that basically, um, synchronize the data from, um, Postgres to Elastic or a search engine to, to kind of provide an extensive full text search capability.

02:06

And yeah, basically what we are working is, uh, we have a few open source projects, pgroll, like I said, for zero downtime schema migrations. We also have pgstream that basically, uh, the idea is, um, uh, that you have a Postgres as your, um, source of truth, and then you want to replicate data from Postgres to other data source.

02:28

For now, we support OpenSearch and also Webhooks, uh, where we are planning to add other data source. And also we have pgcx, which basically is, um, uh, our framework to deploy, to develop, um, extensions in Postgres in C.

02:47

Aaron Francis

Yeah. So, uh, one of the interesting things that I wanna get to a little bit later is all of the open source work y'all are doing, 'cause all of that stuff you just described, you have open source work on, and it's just out there for people to use, which I think is super awesome. But you did mention there, you did mention Elastic, and I think both of y'all worked at Elastic. So Tudor, can you tell us about your, your background, and is that, is that where y'all met?

03:11

Because I feel like you were both ex-Elastic. So tell us that story.

03:16

Tudor Golubenco

We are both, uh, ex-Elastic, but actually we have met way before that. Um, we, we, we did join Elastic together, uh, because we were, uh, me and Monica, Xata is ki- our second company.

03:31

Aaron Francis

Okay.

03:31

Tudor Golubenco

The first company that, uh, we started was called Packetbeats, and this was, uh, an Elastic acquisition. We joined Elastic-

03:38

Aaron Francis

Mm

03:38

Tudor Golubenco

... in 2015. That's quite, quite some time, uh, since then. Um, uh, and yeah, me, me and Monica are actually husband and wife, uh, and we have met way back in Romania a few years before all that ha- all that happened.

03:57

Aaron Francis

There you go. Okay. Well, that makes a lot of sense then. So what was this first company, what was this first company that got acquired by Elastic? What were y'all doing there?

04:06

Tudor Golubenco

It's, uh, it was an open source monitoring tool. Uh, it was called, called Packetbeat because we were using, um, packet capture-

04:15

Aaron Francis

Mm

04:15

Tudor Golubenco

... and then, uh, getting observability data out of it. Uh, so for example, you could, uh, you could install this on a server that was running MySQL or PostgreSQL or something like this, and we were parsing the protocol and getting the information from, from, from the actual protocol. And the same, uh, or for HTTP and other protocols that we were supporting.

04:38

Um, and this is-

04:40

Monica Sarbu

Yeah, so-

04:40

Tudor Golubenco

... what the... Yeah, go ahead, Monica.

04:44

Monica Sarbu

So basically what we had, we were building is open source project, uh, was called Packetbeat, and we were using Elasticsearch to basically store all the met- ba- basically the data.

04:54

Tudor Golubenco

Mm.

04:54

Monica Sarbu

And then we de- uh, we decided to use Kibana, which was an open sou- it's still an open source, um, project that basically visualizes all the data. So this is, uh, with this kind of-

05:07

Tudor Golubenco

Mm

05:07

Monica Sarbu

... we were able to provide an open source full, uh, end-to-end monitoring experience for our users. Um, so I started PacketBeat-

05:17

Aaron Francis

Okay

05:17

Monica Sarbu

... um, and, and then Tudor joined me, uh, a year or two years after, or a year and a half afterwards. Uh, yeah. And then soon after we joined forces with Elastic and we, yeah, we had an amazing opportunity there to kind of grow, uh, the monitoring, um, um, uh, team and kind of instead of, in addition to kind of looking at the network traffic, we started to collect other types of data, like for example, metrics and logs in order to provide

05:47

a better, um, insights, uh, to our, our users. Uh, so basically this kind of became the observability, uh, that as it was called back then, but basically similar with what Datadog, for example, provides nowadays.

06:04

Aaron Francis

Gotcha. And so you're, you created this company, you get acquired, you're in Elastic probably having a nice time in Elastic having just been acquired. What possessed y'all to say, "We should go start a database company. That sound, that sounds fun and easy and carefree"? What, what did you look at out in either the market or your life or what that you decided this is what we wanna do next?

06:27

Hey, we'll get back to the interview in just one second, but since you're here, you like databases, you probably like Postgres. Let me tell you about Mastering Postgres. This is a course that I am teaching coming out October 15th. This is a way that you can master the most important part of your stack, your database. So go to masteringpostgres.com and sign up to hear when we release it.

06:51

Okay, back to the interview.

06:53

Monica Sarbu

Yeah. So it was again me. So, uh, I left Elastic af- after five or six years, uh, and I started this, um, like nonprofit organization that offers mon- uh, mentorship for underrepresented groups in tech. And my idea was, you know, basically to help as, as many people as possible. You know, we've seen that, uh, the tech, uh, environment is not as easy, um, on, on developers, especially the ones that are coming from

07:23

underrepresented groups. And basically my, my goal with this nonprofit was kind of to connect mentors with mentees and kind of, um, support each other. And yeah, when we were building this, uh, mentorship platform, this is something that, uh, me and Tudor and a few others were building, uh, we realized that databases are still, uh, not as easy as to be used as, as we expect it to be.

07:50

So in our entire career, we're working in the monitoring space, and we've seen on the other side of the table how to push, uh, data, uh, and kind of push, uh, databases to the limit. Um, and basically we realized that, you know, building applications, uh, is much more complicated that you would expect in 2020.

08:15

Uh, and I think that companies should be able to spend, uh, more resources on building the applications itself instead of building a database platform. And this is what I kind of, um, made me decide to build another company. Was not really the, the idea, but uh, I found there is an opportunity in the space, so that's why I decided to start Xata.

08:41

Aaron Francis

So this, this story, uh, aligns very much with my experience, where you, you have an idea and you're doing a thing, and while you're doing that thing, you're noticing all of the things that I need to do the thing that I actually wanna do are very hard, and so I'm gonna go focus on building, you know, the infrastructure to make this thing easier. Um, and I find that, like, people are always like, "Oh, I don't have any ideas," or, "I, I'm, I'm just looking for a problem." And I'm like, just start, literally start anything, and the ideas, the problems will present

09:12

themselves. And so it sounds like that's exactly what happened to you.

09:14

Tudor Golubenco

And you are like, "Someone should really work on this. Too bad I don't have the time," right?

09:19

Aaron Francis

Exactly. Exactly. Once, once you're working on something, you see all the problems and you're like, "I can't work on all of it." So you, you're doing this nonprofit. Tudor, are you still at Elastic at that point while she's building up the nonprofit?

09:32

Tudor Golubenco

Uh, yeah. I was still at Elastic-

09:33

Aaron Francis

Okay

09:34

Tudor Golubenco

... at that point.

09:34

Aaron Francis

So she's ... I, I just love this story so much. So she's building up a nonprofit, you're at Elastic, and she comes to you and she's like, "Babe, we're doing it again." "We're starting another company." Tell, how did that, how did that happen, and what did you say?

09:48

Tudor Golubenco

Yeah. I, I guess I have a thing for, uh, projects at the beginning.

09:53

Aaron Francis

Mm-hmm.

09:53

Tudor Golubenco

I can hardly resist someone coming to, to, with an idea to me to not think about, you know, what it could be and, you know, how we could do it and what it reach it. I just love that part of it, you know-

10:06

Aaron Francis

Mm-hmm

10:06

Tudor Golubenco

... like the, the beginnings of everything. Um, uh, and I also, in Elastic I actually was kept looking for new projects to do-

10:17

Aaron Francis

Mm

10:17

Tudor Golubenco

... and things, you know, to, to, to start and so on. So it's just I have a thing for that. And then of course when especially if it's Monica that tries to convince me to do something, that she's usually -

10:27

Aaron Francis

Yeah. She-

10:28

Tudor Golubenco

... she tends to be successful in that.

10:30

Aaron Francis

Yeah, I think so. And, you know, you're married, so there's some sort of like marital, you know, requirement there that you say, "Yes, honey. Let's do it. That sounds awesome."

10:38

Monica Sarbu

Yeah. The, the-

10:38

Aaron Francis

So-

10:38

Monica Sarbu

... the real, the real story is like this. So I started Xata- ... and then, you know, I, I, uh, um, I managed to get two rounds of funding, and then I think I even raised... No, I think, uh, Tudor joined after I raised the first round, but I think before I raised the series A. And, and Tudor went back to, uh, to Elastic and he said like, "Oi, I need to leave." And they were trying to convince him to stay longer, and he said-

11:06

Aaron Francis

Mm-hmm

11:06

Monica Sarbu

... you know, uh, "I cannot really stay. Like, I have a duty to my wife, and I need to..." You know, and from my point of view-

11:13

Aaron Francis

Smart man. Good job, Tudor. Yeah.

11:15

Monica Sarbu

And from my point of view, uh, I think in my opinion, Tudor, uh, I mean, putting this on the side that we are married, but, uh, reality is that Tudor is the best CTO that I know over there, and he's, uh... Yeah, and you know, you always want the best person for the job.

11:32

Aaron Francis

Mm-hmm.

11:33

Monica Sarbu

And I think this has this, uh, unique combination of, you know, have a very good technical person, but also very good with, um, having a feeling, uh, what, what the future might look like and, you know, product-oriented person, which I think is very hard to get, uh, from a technical person.

11:54

Aaron Francis

This is the best. You guys, you guys are adorable. Okay. So Monica, you're out there on your own raising money. Um, where, where in the world are y'all located? And this was in what, 2020, 2021 that you were raising?

12:10

Monica Sarbu

Yes. For Xata, I was- So I started the company at the end of 2020. Um, so it was, uh-

12:19

Aaron Francis

Okay

12:19

Monica Sarbu

... we were in the pandemic times, in lockdown, so it kind of was kind of hard to even-

12:24

Aaron Francis

Mm-hmm

12:24

Monica Sarbu

... start a company, uh, on the legal side of things. So it took much longer than I expected. So, uh, basically in, um, we st- kind of in the middle of 2021 we started, basically. I hired the first employee, and we also had-

12:41

Aaron Francis

Mm

12:41

Monica Sarbu

... the first investment, um, the seed round, um, in middle of, yeah, July 2021.

12:49

Aaron Francis

Okay, and so you've done seed-

12:51

Monica Sarbu

So it was just me at the time.

12:52

Aaron Francis

Yeah. So you've done seed and series A. How far have you gone into the funding now? Have you raised-

12:58

Monica Sarbu

Uh, so we are-

12:58

Aaron Francis

... another round since then?

12:59

Monica Sarbu

No, we didn't raise another round. So we did a series A. We raised at the beginning of 2022, um, but we didn't raise any other round since then. We have-

13:09

Aaron Francis

That's amazing

13:10

Monica Sarbu

... quite, uh, many years of runway, so we are not raising another round for now.

13:16

Aaron Francis

That's incredible. And I looked at, you know, I, I've looked at your teams page, and y'all's team is growing, and you're currently hiring, and this, this is amazing. Congratulations. This is very cool.

13:26

Monica Sarbu

Thank you.

13:27

Aaron Francis

Mm.

13:27

Monica Sarbu

We are not a big team-

13:28

Aaron Francis

So-

13:28

Monica Sarbu

... but... Sorry.

13:30

Aaron Francis

No, go ahead.

13:32

Monica Sarbu

No, no, go ahead, you.

13:34

Aaron Francis

I was, I was just gonna say, so what was, um, when you, you, you hired this first person, what was your initial offering, uh, to the market? So what did you come out of the gate saying, like, "We have hosted Postgres," or was it something different than that? And, like, how did you get, how did you even get a foothold on the database hosting market so that people would start trusting y'all with giving, giving you your, their most important asset, which is their database?

14:03

How did you even convince people to do that?

14:06

Monica Sarbu

Actually, the initial pitch was a bit different. So the way I was pitching is that, um, you imagine a database that it's so easy to use for d- for developers, and it's somewhere between a-

14:17

Aaron Francis

Mm-hmm

14:17

Monica Sarbu

... a traditional database and Airtable. Uh, so you kind of-

14:21

Aaron Francis

Mm

14:21

Monica Sarbu

... get this functionality because during, uh, my work with this non-profit organization, we really, we really used Airtable, so we are building a solution on top of, of Airtable. And we really liked, you know, this, uh, spreadsheet-like UI, and I think this was really important, uh, to kind of see and manage the data in a visual way. So I basically, I wanted to apply all this, um, uh, experience that you as a user have with Airtable to a traditional database.

14:50

Um, because the idea is that, you know, you don't have to be a developer that needs to understand the internals of a database in order to manage one in production. Um, so this kind of the, the initial pitch was. And, uh, you know, after speaking with lots of, of, of, of people, you know, initially, basically I wanted to build the whole database on Elasticsearch, because theoretically you can achieve, uh, all the functionality that I wanted only from that.

15:19

And, you know, after speaking with-

15:21

Aaron Francis

Mm

15:21

Monica Sarbu

... uh, quite many people, now in the end we realized that we, we want to build a solution on top of Postgres and Elasticsearch. Why Elasticsearch? Because you get this full-text search, um, an extensive full-text search experience, and this, w- I think is very important when you have an application. And I think, uh, applications nowadays really suffer from a really nice, uh, full-text ex- experience.

15:47

So I wanted to bring this to all the applications. Uh, so that's why it was, this was kind of the, the first functionality that I wanted to bring, um, on top of the databases.

16:00

Aaron Francis

I like that. I like that. So your vision, your vision from the beginning was platform. It wasn't just hosted database, it was-

16:08

Monica Sarbu

Yes

16:08

Aaron Francis

... let's build a platform that, uh, application developers need, including the database, but also importantly, at the very beginning, including full-text search, which you guys were super familiar with at that point.

16:21

Monica Sarbu

Exactly, yes.

16:22

Tudor Golubenco

Exactly.

16:24

Aaron Francis

Okay. And so then, Tudor, when did you come in in that kind of, in that kind of technical story, and what was your first... Like, when you came in, when your, when your lovely wife convinced you to quit your job and come do another, do another company, what did you, what did you come in and tackle first? Like, where was the product when you showed up, and what was that like, uh, coming in kind of after it had already started?

16:47

Tudor Golubenco

Mm-hmm. Uh, the product was definitely at the beginning, I would say. You know, like POC level.

16:53

Aaron Francis

Mm-hmm.

16:54

Tudor Golubenco

Uh, I think we did, we, we, we had, like, a few friendly users on, on the platform, but, uh, we haven't opened up to, to any real external, uh, external people. So it, it was at the beginning, and I think it was, uh, that's when it was still only, like, El- Elasticsearch based. Um-

17:14

Aaron Francis

Mm

17:14

Tudor Golubenco

... and then we look, we looked into, you know, like, the functionality that we wanted to have, the data model that we want to, to, to support. Um, but also some of the, not only the data model, but also we had, you know, like we had this vision that a, a database should be like, like an Airtable or like a-

17:33

Aaron Francis

Mm-hmm

17:33

Tudor Golubenco

... you know, like a Notion page or a Notion database these days. You know, you, you create it, you add your data into it, and then if, if you leave it and come back in two years' time, your data, you know it's, it's still there, and it still-

17:45

Aaron Francis

Mm-hmm

17:45

Tudor Golubenco

... works, and you, you're not nervous that, you know, may- maybe my instance-

17:50

Aaron Francis

Yeah

17:50

Tudor Golubenco

... gets shut down or-

17:50

Aaron Francis

It's a pretty, pretty important aspect. You want to, you want the data to still be there.

17:54

Tudor Golubenco

Right. Right. Uh, so we, and we wanted to offer this also to as many people as possible. So there's, there's actually quite a difficult set of requirements. Um, uh, but one of the things that you, back then when we, we said, "Okay, we, we need, we do need a relational database and something like Postgres and such," uh, was that we, in the data model that we had, we wanted to support relationships Natural, pretty natural.

18:22

You can do relationships, you know, like in, uh, in, in NoSQL stores as well, you know.

18:27

Aaron Francis

Mm-hmm.

18:27

Tudor Golubenco

Like there's, um, there's a lot of literature on how to do that. Uh, but for what we wanted to do, it was not a natural fit. It, uh, so, so, so that's why we, we said, "Okay, we're going to introduce Postgres." Back then it was still kind of like an implementation detail, if you want.

18:45

Aaron Francis

Mm-hmm.

18:45

Tudor Golubenco

Because, uh, we're, we are offering our own API on top of it, and our own SDKs and such. Um, uh, but that's kind of how we, you know, how we welcome Postgres into Xata. And since then, we're kind of moving more and more into, into, into Postgres.

19:03

Aaron Francis

Mm-hmm. And so at, at that point, um, how much experience did you have being, like, a Postgres DBA, or is this something you had to learn on the fly? Because, uh, I understand implementing it, implementing it as an implementation detail probably, probably protected you from, like, the full surface area of Postgres-

19:27

Tudor Golubenco

Exactly

19:27

Aaron Francis

... because it was kind of hidden behind, um, hidden behind your APIs and SDKs and that sort of thing. But suddenly, I mean, you have tons of experience with Elastic, you both do, but suddenly you're now, you're now a proper Postgres DBA. Was that terrifying, or is that something you had done before?

19:43

Tudor Golubenco

Uh, I have done parts of it before. Uh, and yeah, like it, it was MySQL I had in the, in one of the monitoring products we... I was-

19:54

Aaron Francis

Mm

19:54

Tudor Golubenco

... in the monitoring space before, even before Packetbeat. And there we were using MySQL, but we were pushing it quite a bit to the limits. And back then- ... you know, there was this, uh, uh, this constant MySQL versus Postgres debate-

20:09

Aaron Francis

Mm-hmm

20:09

Tudor Golubenco

... uh, sort of thing. And there were times when we would have liked to switch to Postgres, if you want. Um, so I had some, uh, you know, some DBA type of, uh, uh, experience. Um, but not, not exactly on Postgres and not all that much of it.

20:30

So yeah, it was, it was definitely a little bit scary. Uh, but-

20:34

Aaron Francis

I'm sure. That sounds terrifying. Good, good for you. So you're at this point where, you're at this point where Postgres is now in the stack somewhat as an implementation detail. Is this the, is this the point where, um, I think it's pgStream, is that the name of the, the one that does the, the data capture that-

20:56

Tudor Golubenco

The replication, yeah.

20:56

Aaron Francis

Okay.

20:57

Tudor Golubenco

Yeah.

20:57

Aaron Francis

Um, so is this-

20:58

Tudor Golubenco

Yeah

20:58

Aaron Francis

... is this the point where pgStream comes into existence? Or when does, when does this open source work start that takes the Postgres data and puts it into Elastic, and the, the platform begins to, like, coalesce around this?

21:15

Tudor Golubenco

So the technology, the pgStream technology, let's say, did exist, uh, back then in Xata. It's one of the, you know, kind of like one of the first things that we did. Uh, but it was not separated in an open source project. Um-

21:28

Aaron Francis

Gotcha

21:28

Tudor Golubenco

... and the pgStream open source project actually is quite new. We just released it, uh, maybe in May, uh, May this year.

21:37

Aaron Francis

Oh, wow.

21:38

Tudor Golubenco

Yeah, it's like-

21:38

Aaron Francis

That's exciting. I didn't know that.

21:40

Tudor Golubenco

Yeah, it's relatively new. Um, uh, but as I said, the actual code and technology, we have been using internally for quite some time, uh, by that point. And it's, the reason we open source it is, has more to do with our overall open source strategy. Uh, we did discuss it, you know, we could kind of flip the switch and make everything open source.

22:03

Aaron Francis

Mm-hmm.

22:04

Tudor Golubenco

But that's actually, you know, you are open source, but in a way that's really hard to deploy for people because they would-

22:10

Aaron Francis

Mm-hmm

22:10

Tudor Golubenco

... have to do everything that we're doing, and we know it's hard for us. So for a third party or someone else-

22:16

Aaron Francis

Mm-hmm

22:16

Tudor Golubenco

... it would be like, like next to impossible to keep everything running and so on. So we thought a most honest way of doing open source is to, let's separate, uh, the key functionality that we have, make them useful on their own as open source projects. Um, be, you know, like independent so you can, you don't have to use everything.

22:39

You can use only pgRoll or only pgStream, or other things that, that, that, that we're planning. Um, uh, you can use them individually. That's much easier to adopt.

22:50

Aaron Francis

Mm-hmm.

22:50

Tudor Golubenco

But if you want to have all of them in one cohesive platform, then probably, you know, Xata is the best choice for you. So that's kind of, uh, that's, that's the, that's the thinking behind it.

23:03

Aaron Francis

Yeah. That's, uh, I, I like that as a strategy because sometimes you will see companies say, "Hey, you can host it yourself," and you look at the requirements to host it yourself, and you're like, "I not only need to be a DevOps expert, I need three other DevOps experts-

23:17

Tudor Golubenco

Exactly

23:17

Aaron Francis

... to help me run this thing."

23:18

Tudor Golubenco

Yeah.

23:19

Aaron Francis

So Monica, tell me this, like, this open source philosophy, where did, where did this come from, and why, why did y'all decide to go down this route? Because open source is amazing and wonderful, but it also is a lot... Like, you have to do a lot. You have to manage a community, you have to manage repos, you have to, like, maintain codes of conduct.

23:39

There's just a lot of work with open source. So what is it about Xata, or potentially about the two of you, that you decided, hey, open source is gonna be one of our strategies?

23:49

Monica Sarbu

Yeah. So definitely we have been in the open source space for a really long time, and I've seen the power of building a community with Packetbeat, where basically you don't... I mean, at that point in time, you, we didn't have to do any marketing or anything. Like, we build a community in much easier. It's not similar nowadays because there are so many open source projects, but I feel, still think that it's important to have, uh, an open source story, especially when you are selling to developers.

24:19

So I knew from the beginning when I built Xata that I want to have an open source, uh, story, but I was not sure how that would be. And you know, at the beginning when you're starting a company, you kind of need to figure out multiple things. How you position our- yourself, what kind of functionality you need to build. So that's why I was trying to postpone that moment. And then when it was kind of clear for us that, um, you know, we are building this platform with this functionality, it was kind of, um, a more natural

24:49

decision that, you know, we are building one open source project that is, um, solves a specific pain point that people have with Postgres, and they work against a native Postgres. And I think, you know, for larger companies that they are not interested or they are not allowed to run any closed source projects or any SaaS offering, for them it will be important to be open source.

25:15

Um, but I know for most of the people, they also want to have, um, a u- a we- web interface or UI, uh, AI story, a UI story around it and then, you know, maybe it fits better if you're using the open source story part of a, of a SaaS offering. So I think-

25:34

Aaron Francis

Mm-hmm

25:34

Monica Sarbu

... um, with this idea, basically with the open source story that we have, we can kind of tackle all sizes, c- companies of all sizes. So for example, we can tackle the builders with our free generous plan that we put so much effort into this in making s- like we have the goal that we don't want to spend more than $2 per customer.

25:59

And then with the SaaS offering for SMBs, um, and then for large organizations that they are very strict with running open source, you know, they can, we can-

26:09

Aaron Francis

Mm-hmm

26:09

Monica Sarbu

... collaborate on them, uh, with, um, uh, other open source, uh, projects. This is something that, you know, in the, at, while I was at Elastic, we had, we had basically the Beats, what, uh, the Beats team. This is the, the, the name of the project I, we were working on.

26:26

Aaron Francis

Mm-hmm.

26:26

Monica Sarbu

And there we had a strong collaboration with eBay, and they, because of our open source strategy, they were able to, uh, com- you know, collaborate with us, and kind of we were able to test our, uh, our, our Beats or these, these agents that we mentioned, um, at a large scale because eBay is, has a much larger scale that you can, you don't, you cannot really have a way to, uh, to test this internally.

26:55

So I think it's important to have collaboration with larger companies because one is it helping you, you know, um, uh, test your product, but also kind of you can hear about their needs and kind of go the, move the product in a direction, um, that otherwise it maybe would be difficult for you to, to see this going to, to work.

27:20

Aaron Francis

See, this, this is really smart to me. This is very interesting because I think a lot of people potentially, yes, myself included, think open source is great for like the, the makers, the builders, the people who are just starting up and you're like, "Ah, I'm gonna pull some stuff off the shelf and put it together, and what a great, like what a great community we have.

27:41

This is awesome. As an individual, I can build stuff." Right? That's true. But what you're explaining is something that I haven't really thought about. That's also not the world that I live in, these big enterprise companies. But it gives you kind of a foot in the door and gives you a little bit of credibility. So like you were describing with eBay, um, you, they get to use some of your open source work, become familiar with you and your brand, trust the quality of the things that you're producing, potentially even start

28:11

to get support from you on that open source thing, and that makes the entire commercial adoption ramp a lot, uh, a lot smoother versus, "Hey, we're just these people off the street and trust us, we're good." It's like, no, we have this long history that you've been working with this tool, and now you're kind of evaluating this other commercial tool that we have. That is very smart, Monica.

28:31

Well played.

28:33

Monica Sarbu

Yes. And I also think-

28:34

Aaron Francis

Well played

28:34

Monica Sarbu

... it's important, I think you, you can succeed as a company if you have a big community, and you can achieve a big community-

28:42

Aaron Francis

Mm

28:42

Monica Sarbu

... not only by addressing builders, but different types of, you know, companies and sizes. And so that's why w- you know, that was the, the idea initially as well.

28:54

Aaron Francis

So let's stay on pgStream then. Um, Tudor, tell me what else are you either, uh, Xata proper, like internal companies, or what are you seeing other people use pgStream for? Because I imagine it opens some really interesting use cases, and I would love to hear like what people are doing with this. Uh, I'll, I'll read the tagline so the listener knows.

29:16

"Postgres replication with DDL changes." And so tell us what are people using this for out in the wild?

29:23

Tudor Golubenco

Yeah. Yeah, so the most, uh, the most common use case, the one that we use internally and that, that's the most polished for now is the replication to Elasticsearch or OpenSearch.

29:33

Aaron Francis

Mm-hmm.

29:34

Tudor Golubenco

Uh, and it does this, like logical replication comes with a set of gotchas in Postgres.

29:41

Aaron Francis

Mm.

29:41

Tudor Golubenco

Uh, and then on the other side, on the Elasticsearch side, there's a, there's a number of things that you need to do in order to, to have performant replication, and more importantly, actually be correct, you know, because you can have lots of inserts and updates and deletes, different order and so on. If you want to scale-

30:03

Aaron Francis

Mm-hmm

30:03

Tudor Golubenco

... you might process them in a different order. Elasticsearch in- internally might, might, might, uh, reorder messages and such.

30:12

Aaron Francis

Mm.

30:12

Tudor Golubenco

Uh, so you need to be careful on how to do it such that what you see on the Postgres side is exactly what it is on the Elasticsearch side as well.

30:22

Aaron Francis

Mm-hmm.

30:23

Tudor Golubenco

And that's what we, you know, like that's what we did and, uh, and improve over time in, in pgStream. Uh, now what, now that part can be, you know, that can be applied to other outputs as well, and, uh, you know, we're, we, um, uh, we're looking to support, uh, other m- ... things, let's say other output plugins as well, especially things like S3, you know, like Iceberg-

30:49

Aaron Francis

Mm-hmm

30:50

Tudor Golubenco

... uh, these sort of things. Uh, ClickHouse.

30:53

Aaron Francis

Sure.

30:53

Tudor Golubenco

Uh, although ClickHouse now have, has a pretty good technology internally, so we'll see if, you know, like, if it wouldn't be more smart to just tell people to use, use theirs.

31:03

Aaron Francis

Mm.

31:04

Tudor Golubenco

Um, um, uh, and other such outputs. There is an- one other interesting use case, which is for webhooks.

31:12

Aaron Francis

Mm-hmm.

31:13

Tudor Golubenco

Uh, it's something that we added kind of more like just an example output. We c- you know how to write an- ... output. Uh, but there's interesting that-

31:20

Aaron Francis

And people were like, "Yeah, I want, I want that. I wanna use webhooks," right?

31:24

Tudor Golubenco

Yeah, yeah. Yeah, exactly. Exactly. Because it's a, it's a simple way of, you know, calling these webhooks whenever there's a change in Postgres, and that can be on the data side, but also on, on schema changes, like adding a column or removing one or changing something about it. And you get called a, a, a webhook, and then you can have your Lambda process it or do, do, do whatever you want with it.

31:50

Aaron Francis

Very cool.

31:51

Tudor Golubenco

Yeah.

31:52

Aaron Francis

Yeah, that sounds awesome. The webhook, the webhook use case just obviously opens up the entire universe, which is very cool. Um-

31:59

Tudor Golubenco

Right

31:59

Aaron Francis

... so that is, uh, that's PG, pgstream, and then there's pgroll. So when did pgroll come along? And tell us kind of how pgroll... What it is and how it works.

32:13

Tudor Golubenco

Mm-hmm. Right. So pgroll, it's open source for one year now. We actually just realized-

32:18

Aaron Francis

Nice

32:18

Tudor Golubenco

... the, the, the other day that, uh, we have first published it one year ago. Um, and it's a zero downtime, like, online schema changes tool for Postgres. Um, uh, and the way it works is actually we think pretty novel, uh, and interesting. Um, uh, and I, I c- I can describe it quickly.

32:41

Uh, the idea is that-

32:42

Aaron Francis

Describe it quick- quickly or slowly. You can go into as much detail- ... as you want, Tudor. We've got time.

32:47

Tudor Golubenco

O- okay. That's great. That's great. Uh, uh, so our idea is to offer both the old version of the schema and the new version of the schema at the same time to the application, so that if you do a, a rolling update of your application, the application can say, "Okay, I'm at this version," so it gets served that version of the schema.

33:11

Uh, and the new version of the application will-

33:14

Aaron Francis

Nice

33:14

Tudor Golubenco

... see the new one at the same time, right? Because otherwise, you have to do this, and this is what everyone does today, you have to do changes in a backwards compatible way-

33:25

Aaron Francis

Right

33:25

Tudor Golubenco

... schema changes in a backwards compatible way, and have some sort of compatibility code in your code base-

33:31

Aaron Francis

Right

33:31

Tudor Golubenco

... to be, you know, like, if this column, if we are at this version, use this column, otherwise do something else or use this other column.

33:40

Aaron Francis

Right. There's like a, there's like a whole, I think it's like six or seven or eight steps of how you're supposed to do, you know, back-

33:47

Tudor Golubenco

Yeah

33:47

Aaron Francis

... you like change the code, you change the schema-

33:48

Tudor Golubenco

Yeah

33:48

Aaron Francis

... change the code-

33:49

Tudor Golubenco

Exactly

33:49

Aaron Francis

... change the code, change the schema. And it's, it's a whole, it's a whole mess.

33:52

Tudor Golubenco

Yeah, yeah.

33:52

Aaron Francis

And so this sounds-

33:53

Tudor Golubenco

Yeah, yeah

33:53

Aaron Francis

... interesting. Keep, keep going.

33:55

Tudor Golubenco

Right. Right. So, and now how do, how do you accomplish that? And, uh, uh, behind the scenes we use hidden columns. So we would-

34:05

Aaron Francis

Mm

34:05

Tudor Golubenco

... uh, let's say, let's take an example. Let's say you, you want to change the type of a column, you know.

34:10

Aaron Francis

Mm-hmm.

34:10

Tudor Golubenco

You have it as an integer, and you want to change it to be, uh, to a string or the other way around.

34:16

Aaron Francis

Mm.

34:16

Tudor Golubenco

Uh, we would add a hidden column with, uh, with, uh, uh, with a new n- name, like _pgroll and then the name of the original column.

34:27

Aaron Francis

Mm.

34:27

Tudor Golubenco

And then we'll start backfilling the data, applying any data conversion that you might have defined, and you can do that with SQL expression. So you know, if you want to change from int to string, that's pretty easy, and the other way around. But you might also do things like, I don't know, I have a name column and I want to split it in last name and-

34:49

Aaron Francis

Mm-hmm

34:49

Tudor Golubenco

... first name and last name, you can also do that via, just via SQL expressions. And we would backfill the data for you, uh, in this, uh, in this, uh, column. Uh, but at the same time, we create these views, and we create a view in which the, the column is mapped to the one in the physical schema, and then another view- ...

35:12

in which the column is, is mapped to this hidden column that we're backfilling, right? Uh, so then the application can choose, okay, which one do I want to use, which view I want to use. And that's done in Postgres. We group this in schemas, Postgres schemas.

35:28

Aaron Francis

Mm-hmm.

35:28

Tudor Golubenco

Uh, so you ch- you, you select your, uh, your, you know, like version by setting the search path. You set the search path-

35:36

Aaron Francis

Smart

35:36

Tudor Golubenco

... you know, like your CI, CI, uh, tool, sh- uh, would take the version and put it into a little bit of code. And, and you select your, your search path, and that, that gives you the, you know, the right schema where we are. Um, yeah, that's- ... you know, that's h- high level how, how it works. Uh-

35:57

Aaron Francis

That is exceedingly clever, I have to admit. I have never heard... Because what I, uh, everything I've heard, we talked about schema changes is that, you know, six, eight, whatever step process where a lot of the-

36:09

Tudor Golubenco

Mm

36:09

Aaron Francis

... a lot of the, like, uh, mental labor comes back onto the developer. Um, which, you know-

36:16

Tudor Golubenco

Right

36:16

Aaron Francis

... it's fine. We used to not, we used to not have any safe schema changes at all, so, like, we're one step better. But this, this reminds me... What does this remind me of? Um, uh, Stripe's API, right? So you can just say, like, for Stripe's API, you can say, "I'm version 2020-10-13," and you're like, "I'm using the October 13th version of the API."

36:37

Tudor Golubenco

Mm-hmm.

36:37

Aaron Francis

And somehow it just always works.

36:39

Tudor Golubenco

Yeah. Yeah.

36:39

Aaron Francis

And then with y'all it's like you're saying that by setting the Postgres search path, and so that's determining where, where it looks ... first, you can say, "I'm using the old version or the new version of the schema." And then what happens, what's the final completion step? Um, at some point, do you just drop the ghost or the old, the old stuff and do-

37:03

Tudor Golubenco

Right

37:03

Aaron Francis

... a whole switch out, and then everything's clean, and pgroll is out of the picture until the next-

37:07

Tudor Golubenco

Yeah

37:07

Aaron Francis

... time around?

37:08

Tudor Golubenco

Yeah. In pgroll terminology, you complete the migration.

37:11

Aaron Francis

Okay.

37:12

Tudor Golubenco

Uh, because for now to keep things simple, you can only do this one at a time. Uh-

37:17

Aaron Francis

Yeah

37:17

Tudor Golubenco

... so in order to move to the next schema change, you have to complete the previous one. Um, but you know, like, it makes sense to complete it whenever you have test-

37:27

Aaron Francis

Seems, seems reasonable.

37:28

Tudor Golubenco

Yeah. When- whenever you have tested your new application and you, you, you mark, "Okay, this, this is now done," you, you complete it, and then we delete the, uh, whatever temporary columns we might have used.

37:43

Aaron Francis

Mm-hmm.

37:44

Tudor Golubenco

Um, and the views. Now, the view w- the view of the version would, uh, still be in place, at least that's how it works now. Uh, it's possible to also remove the views. Some, uh, you know, like some customers are not very comfortable with having this view all the time.

38:01

Aaron Francis

Yeah.

38:01

Tudor Golubenco

So then you, you, we remove it, make it in the physical schema, and from then on everything works normal without the intermediate step. So we do it for the minimum amount of time. Um, uh, but yeah, there is definitely this, this complete step.

38:18

Monica Sarbu

And you can also roll back. I think that's also important to say, right? For, for example, for whatever reason you realize that, uh, the change is not, uh, um, good enough, that you can also roll back-

38:30

Tudor Golubenco

Mm-hmm

38:30

Monica Sarbu

... and then as if nothing has happened, um, in your application.

38:33

Tudor Golubenco

Yeah. The rollback is very quick.

38:35

Aaron Francis

It's pretty, pretty important. Yeah.

38:36

Tudor Golubenco

Yeah.

38:36

Aaron Francis

Pretty important. You know, as much as we like to think that, uh, we'll catch it all in tests or just using our powerful brain, it is pretty important to be able to roll back pretty quickly.

38:45

Tudor Golubenco

Yeah. Yeah.

38:45

Aaron Francis

And that's a very fast process, you said, Tudor?

38:48

Tudor Golubenco

Yeah, because you're basically just dropping the temporary columns and the extra-

38:52

Aaron Francis

Mm-hmm

38:52

Tudor Golubenco

... views, and then everything is, is back at the beginning now. So-

38:56

Aaron Francis

Okay

38:56

Tudor Golubenco

... you know, the process, the process of backfilling will take some time. Uh-

39:01

Aaron Francis

Mm-hmm

39:01

Tudor Golubenco

... but we also, you know, can rate limit that and do it slowly so that it-

39:05

Aaron Francis

Slow

39:05

Tudor Golubenco

... never impacts too much our production database. Uh, but, uh, if at any point before completing you realize, "Oh, something is not right," you can always roll back and it's in a, in an instant as it was before you started. That's a, I think it's a pretty, pretty big advantage.

39:25

Aaron Francis

This is pretty cool. You two are, you two are quite clever. So I wanna talk about, um, so I understand the origins of, like, Elastic coming out of the nonprofit and coming from your background, and that was kind of like the core thing, and then Postgres came in. The one thing, one thing that I found super clever was the blob storage. Um, so tell me, where did that, like, where did that come from, from like a, from a product side?

39:49

Who decided, "Hey, it'd be nice to be able to throw some giant files in here and have them end up on, you know, a proper blob storage place"? What, what was the product decision on that before we get to technical?

40:00

Monica Sarbu

I think this was the, um, our initial feature, and this is basically inspired from Airtable. You know, the idea is like, wouldn't it really be cool to kind of upload, uh, images in your, uh, in this spreadsheet-like UI as if you do this in Airtable, and this was kind of the initial-

40:21

Aaron Francis

Mm-hmm

40:21

Monica Sarbu

... uh, this initial idea was, you know, companies, they, um... So the goal, like, of this feature and other features that we are building was, you know, we want to minimize the times, uh, the time developer are spending in building the application, and-

40:38

Aaron Francis

Mm-hmm

40:38

Monica Sarbu

... uh, and this is one of them. So in order to support images in your application, you need to kind of build a custom solution, in a similar way for tech search. So this is what triggered me because we've seen at Elastic every other company is building the same database platform. You know, y- they have like a, um, relational database, and they have to, you know, synchronize the data from a relational database to, uh, to Elasticsearch, and this is not an easy operation

41:08

because you need Kafka.

41:09

Aaron Francis

Mm-hmm.

41:09

Monica Sarbu

It's kind of basically complicated. And my idea was like, why every company out there needs to reinvent the wheel when we can provide all this functionality out of the box? And this was kind of the, um, you know, the idea behind the images as well, which makes really good, uh, demos.

41:29

Aaron Francis

Yeah, I'm sure. Yeah, because I think every, every developer that's ever built im- image upload never wants to do it again, and every user wants image upload everywhere. They're just like, "Hey, can I throw an image here?" And you're like, "Why? No." So that, that makes sense to me, um, that the origin story is still, is still like, let's make a proper Airtable like, like experience with a little bit more power and controllability under the hood.

41:58

So the, the technical aspect of it is interesting to me. So from like an actual technical perspective, do these blobs end up on, is it specifically S3? And then what's left behind in the Postgres database?

42:12

Tudor Golubenco

Mm-hmm.

42:12

Aaron Francis

Is it just a pointer?

42:14

Tudor Golubenco

Right. Uh, so it's, uh, they are stored in S3. They are actually served through Cloudfl- through the Cloudflare, um, CDN-

42:21

Aaron Francis

Mm-hmm

42:21

Tudor Golubenco

... as well, which does caching, which, you know, uh, has, has some advantages, and it's also where we, we can perform image transformations. So it's-

42:31

Aaron Francis

Oh, cool

42:31

Tudor Golubenco

... not only, it's a little bit like, like Cloudinary. You know, not only you can request an image-

42:36

Aaron Francis

Okay

42:36

Tudor Golubenco

... but you can remay, request it at a certain resolution and size and so on. Um-

42:42

Aaron Francis

So you have blob storage plus CDN plus transformations.

42:45

Tudor Golubenco

Right. Yes. Yes. That's all in the file attachments features. Um, and what we store in Postgres is indeed basically like a, it's a JSON field with-

42:57

Aaron Francis

Okay

42:57

Tudor Golubenco

... this metadata, you know, like more or less a URL to, to where it is

43:01

Aaron Francis

Mm-hmm.

43:02

Tudor Golubenco

Uh, but we do have this, uh, ability of created, well, signed URLs, um-

43:09

Aaron Francis

Smart

43:09

Tudor Golubenco

... um, because the, the point of doing this, like you could, you could of course do it yourself as well, put a, put a, put- upload it somewhere, store the URL in the database, and that's more or less it. What we wanted to do a little bit extra is to, to make sure that if you have access to a database row, then you would have access to the images in it, uh, but not other images, right?

43:34

And to do that securely. Uh, so that's where we have this notion of signed URLs, that it's a-

43:40

Aaron Francis

Mm-hmm

43:40

Tudor Golubenco

... temporary URL that you get, and that gives you access to the, to the S3 through the CDN, so it's also cached. There's no performance penalty in doing this. Um, and those signed URLs expire, so y- they give-

43:54

Aaron Francis

Mm

43:54

Tudor Golubenco

... it gives you access to the files, but of only for some period of time, and you can get a- another one if you, if you need it. Um, yeah, that's, um, uh, that's the, you know, like the extra stuff we do-

44:07

Aaron Francis

Mm-hmm

44:07

Tudor Golubenco

... beyond just putting the, the URL there. Um, and then there's also like, for example, cleanup. That's also, uh... Because, uh-

44:15

Aaron Francis

Mm

44:15

Tudor Golubenco

... if you do this yourself, you de- the, you delete the row in the database. You cannot cascade delete to S3, right? So you have-

44:23

Aaron Francis

Right

44:23

Tudor Golubenco

... to do that in your application. In our case, we actually do that automatic-

44:27

Aaron Francis

Which never happens, by the way. Those files just get left behind-

44:30

Tudor Golubenco

Yeah, yeah

44:30

Aaron Francis

... forever.

44:31

Tudor Golubenco

They're just, they're, they're just left around. Yeah, exactly.

44:33

Aaron Francis

Yeah. This is, this is, this is very clever. So tell me, um, between, uh, amongst all of these, these features that, uh, the, the Xata platform offers, when people come to y'all, when, when customers come to y'all, or the customers that you currently have, what is it that they are most like... What, what are they looking for?

44:55

Like, why are they, why are they so excited? Because as, as a technical person, I'm listening to you talk and thinking, "This is incredible. Like, this is so clever. This is so genius." But from a business perspective, what do people come to y'all for primarily?

45:10

Tudor Golubenco

Yeah, and this is where we kind of separate a little bit through the personas that we're serving. And like we were discussing before, there's this builder's persona, uh-

45:20

Aaron Francis

Mm

45:20

Tudor Golubenco

... that would, th- you know, like would typically use something like Next.js, deploy on Vercel or Netlify, uh, uh, you know, indie hackers, non-profits, all, all these people. They, they like this wealth of functionality, you know?

45:37

Aaron Francis

Mm.

45:37

Tudor Golubenco

And the fact that they can develop quickly, uh, by using these features, especially people that, that realize when they're planning their, their application, "Well, I'm going to need search, I know already, and I am full text search, and I know I'm want to store files." Uh, so then, you know, they see Xata and say, "Okay, this is the perfect match.

45:59

It's, it's what I need. Uh, does, has this functionality built in. I don't have to worry about it's a serverless database." So, you know-

46:09

Aaron Francis

Mm

46:09

Tudor Golubenco

... like they, they worry about keeping it up and so on. It's a, it's a really good match, right? Then when you're going to more companies and teams type of personas, uh, they're less interested in this type of functionality, and they are a lot more attracted by, by our schema changes functionality.

46:30

Aaron Francis

Mm.

46:30

Tudor Golubenco

So what we do with pgroll, uh, branching schema changes-

46:34

Aaron Francis

They want safety.

46:36

Tudor Golubenco

Yeah, yeah, uh, the safety of it, uh, and the replication to other d- different data stores, so, so-

46:42

Aaron Francis

Mm

46:42

Tudor Golubenco

... pgstream. We also have, we have some more nice things in the, in the, in the data platform. One is, um, uh, that you can move, uh, your Postgres database, your logical Postgres database, let's say, you can move it from one instance to another-

47:00

Aaron Francis

Mm

47:00

Tudor Golubenco

... from one physical Postgres cluster to another. Uh, and you can do that just by from the UI, you know. You just move.

47:07

Aaron Francis

Cool.

47:09

Tudor Golubenco

Kind of like take your bags and everything and move to this other one.

47:14

Aaron Francis

Mm.

47:14

Tudor Golubenco

And that's actually turns out to be quite useful for things like major version upgrades, because if you can-

47:19

Aaron Francis

Mm

47:19

Tudor Golubenco

... move between clusters, you can also move between clusters of different major versions, and we-

47:25

Aaron Francis

Mm

47:26

Tudor Golubenco

... we do that without downtime or, like, very, very minimal downtime. Uh, also for, for like testing, blue-green deployments, these sort of things is, um, these are the functionality that, uh, is more attractive to, to larger companies.

47:43

Aaron Francis

Monica, you mentioned branching there for a second. I don't think we've talked about branching. Tell us what, what branching is, um, and kind of the story behind that.

47:53

Monica Sarbu

Yeah. So the idea was, uh, this was kind of the, I think we d- branching was one of the first functionality that, uh, we, we had in the, in the company, and we were kind of inspired by GitHub. You know, is that if you are branching, basically, if you are creating a pull request in your application, it'll be really nice to have the schema changes that you do in your database associated with the change that you do in your application.

48:20

And this was kind of the first-

48:22

Aaron Francis

Mm

48:22

Monica Sarbu

... functionality we have been building. And this is something, uh, we were dreaming kind of from the day one to build a nice, uh, developer workflow, and that's why we kind of decided to start, uh, the initiative of pgroll, because imagine that you change your application, and this change requires a change in your, um, schema, and then it'll be-

48:44

Aaron Francis

Mm

48:44

Monica Sarbu

... nice that, you know, once you, when you want to, um, um, merge this in production, you do this with zero downtime. So this is something that we have been working for over a year. Uh, our solution is, like, currently is not perfect, and we want to make it even perfect than that. So there are a few things that we want to be able to do in order to achieve this, um, uh, whole developer workflow.

49:13

Aaron Francis

Mm-hmm. So I have one last, like, uh, technical question. Uh, uh, you mentioned, I think, Tudor, you said, I think, that your, your target for, I think it was free tier customers, is $2.

49:28

Tudor Golubenco

Mm-hmm.

49:28

Aaron Francis

How do you keep, how do you keep that free tier economic? Because we've seen companies eliminate those as the environment has changed. So how, how does that work, and how do you, like, how do you all think about the free tier as a company? So I guess that's two questions. How do you, how do you keep it economic, and why do you keep it around, is the other question.

49:51

Tudor Golubenco

Yeah. Yeah. Uh, yeah, and we're actually being quite open about it. Uh, we have a blog post published that actually goes into dollar amounts, you know, like what-

50:00

Aaron Francis

Oh, cool

50:00

Tudor Golubenco

... costs us what and, and how. Uh, a lot of people found it quite, quite interesting, so you can you can, you can-

50:08

Aaron Francis

Yeah

50:08

Tudor Golubenco

... you can look at that.

50:08

Aaron Francis

We'll link that. We'll, that'll be in the show notes for anyone listening. We'll link that up.

50:13

Tudor Golubenco

Uh, awesome. Um, and the way our approach to doing it is by using shared clusters. Uh, so this is, you know, like how you would do if you were to implement Notion or Airtable or something like this. So we use shared cluster and multi-tenancy inside the cluster. Um, uh, we have some, uh, uh, um, guardrails in place to mitigate the noisy neighbor problem because that's the,

50:43

you know, like the main reason for which you wouldn't do this, because of-

50:47

Aaron Francis

Right

50:47

Tudor Golubenco

... the nei- noisy neighbor problem. Uh, and there are also some security implications and such that we, that we have, have to deal with. Uh, but the point is, you know, we can put, uh, like 2,000 free tier databases on, on the same Postgres cluster, which then the Postgres cluster can be relatively big, you know? Uh, but still, you divide the cost by 2,000, so that's how you get to, you know, like-

51:12

Aaron Francis

It's pretty good

51:13

Tudor Golubenco

... like $2 per, per, per free user or something like this. Um, uh, and, um, yeah, I mean, that's, at a high level, that's it. Uh, um, now, yeah, the second part of the question is, you know, why do we keep it and such.

51:32

Aaron Francis

Mm-hmm.

51:32

Tudor Golubenco

And it's, uh, to some degree it's our origin story, uh, because we, this is the part that we are kind of missing, you know, like w- when, when Monica was doing this, uh, this nonprofit and such. Uh, and we actually have a quite a lot of nonprofits in, in the, in the meantime on the platform. Uh, so we we would definitely wouldn't want to disappoint them- ...

51:57

and so on. But to us, the more important thing is that we, we give people the occasion to, to test our platform-

52:05

Aaron Francis

Sure

52:05

Tudor Golubenco

... for how- however long they want, play with it. A lot of, a lot of developers use it for their personal project, and then they recommend it at work. Uh, so, you know, this is the, these are the benefits to the company, yeah, I think.

52:21

Monica Sarbu

Yeah. It's also important to mention here that also comes with high avail- high availability. So basically, if you are a person that want to have an idea, and you are building an application around it, and then you can also run it in production for free. This was important for us, not only to support nonprofit organizations, but also very, very small startups.

52:43

And as they grow, we can grow, uh, with them and, you know, they can move to a, uh, our pro plan, or they can move to a dedicated instance that we also provide. So this is something that I think it's unique with us because in all the other, um-

52:58

Aaron Francis

Mm-hmm

52:59

Monica Sarbu

... platforms, you can, um ... They don't really encourage you to run in production for free, um-

53:06

Aaron Francis

Right

53:07

Monica Sarbu

... in a free tier plan.

53:08

Aaron Francis

Right. Mm-hmm. Yeah, that is pretty unique, Tudor.

53:10

Tudor Golubenco

It's typically only for development, right, yeah.

53:13

Aaron Francis

Yeah. Because I think a lot of the other, to the extent that the other providers still have free plans, they're pretty, they're pretty hamstrung in that it's like, "Hey, you can use it, but it's gonna go to sleep," and then it's gonna take-

53:25

Tudor Golubenco

Right

53:26

Aaron Francis

... 10, 12, 30 seconds to wake back up or whatever. Um, so you found that you can keep the economics economical and that the funnel works, and so people are coming in, they're trying it. They're either, um, growing themselves up to a paid plan, or they're recommending it inside, uh, a company that actually uses a paid plan.

53:47

Monica Sarbu

Mm-hmm.

53:47

Aaron Francis

And so you find that this flywheel is pretty sustainable.

53:51

Tudor Golubenco

Mm-hmm. Yeah.

53:52

Aaron Francis

That's awesome.

53:52

Tudor Golubenco

Yeah, as long as we can keep, uh, the costs low, um, uh, that makes sense to us. And then the-

53:59

Aaron Francis

Mm-hmm

54:00

Tudor Golubenco

... the, the technology, the technology that we have developed, that is actually useful in a, in a number of places. For example, that's, that's the reason we did the, the moving of the databases from one cluster-

54:12

Aaron Francis

Oh, I see

54:12

Tudor Golubenco

... to another because we needed... This is part of, you know, how we, how we deal with noisy neighbors. We can-

54:18

Aaron Francis

Mm-hmm

54:18

Tudor Golubenco

... we, we can isolate them.

54:20

Aaron Francis

You evict them. You move, you move them to a new neighborhood, and they're not quite as noisy then, yeah.

54:24

Tudor Golubenco

Exactly, yeah. Exactly.

54:25

Aaron Francis

Okay.

54:25

Tudor Golubenco

But also, uh, when they upgrade to a pro plan, and then they want to be on a dedicated cluster, we don't want to tell them, "Well, you have to recreate your database and move your data."

54:36

Aaron Francis

Obviously, yeah.

54:36

Tudor Golubenco

It's just a button in the UI, and, and, and we do the, we do that for them. And that type of, you know, like the, that building block is actually interesting at certain scale as well. And then if you-

54:48

Aaron Francis

Mm-hmm

54:48

Tudor Golubenco

... if there's a co- company that, um, uh, has a, you know, microservices architecture, quite often they do this, uh, Postgres-as-a-service internally. Like they have-

55:01

Aaron Francis

Mm-hmm

55:01

Tudor Golubenco

... their internal Postgres-as-a-service. Uh, and then they can use Xata like that, uh, and it comes with all this functionality, and that keeps for them the cost minimal because the same, the same, uh, uh, uh, the, the same economics that we have done for us, they are also valuable for a company that wants to do this.

55:25

Monica Sarbu

And often this is a problem-

55:26

Aaron Francis

Okay, cool. That's interesting that... No, please.

55:30

Monica Sarbu

Often is a problem, right? So if you have, let's say, a company of 1,000 developers, and then you need to provide, uh, let's say, more than 500, uh, Postgres instances for each of these-

55:43

Aaron Francis

Mm.

55:43

Monica Sarbu

... their teams, then it becomes-

55:45

Aaron Francis

Mm

55:45

Monica Sarbu

... very expensive. So that's why this is what Tudor mentioned, that it's economical if they pro- if, if they offer, if they p- use something like the same functionality that we have been building with shared cluster.

55:58

Aaron Francis

Mm-hmm. And this is interesting because one of the things y'all keep mentioning is that, like, um, some of the, like, constraints or the realities of the free plan are driving, uh, like, engineering improvements or development improvements such that you can continue to offer that. And I think it- it's a, it's a nice way of framing it, 'cause some people would say, "The free plan is costing us engineering resources." Like-

56:24

Tudor Golubenco

Mm

56:25

Aaron Francis

... we had to invent this moving of a database thing because of the free plan. But it also turns out is quite useful for everyone else, and so that's a nice-

56:34

Tudor Golubenco

Right

56:35

Aaron Francis

... that's a nice, um, I guess, flywheel again, that that plan is spurring on some more engineering efforts there. Um, okay, so I have one, one last question for you. What is it like working as a husband and wife team? So you guys sit down for dinner. It's the end of the day. Y'all are in the same house, I presume, but separate rooms right now on this call-

56:57

Monica Sarbu

Yes

56:57

Aaron Francis

... so that you don't echo over each other. So you sit down for dinner at the end of the day. Do you just talk about Xata all night? Or like, what is it like working with your spouse on a company?

57:08

Monica Sarbu

Uh, I think, um... So when, so we have a daughter, and she is now 10.

57:13

Aaron Francis

Okay.

57:13

Monica Sarbu

And she used to be very-

57:15

Aaron Francis

Okay

57:15

Monica Sarbu

... uh, I think starting with, uh, five years old, she was like, uh, very strict, like, "Yeah, not work. Please don't talk about work," uh, uh "while we are, uh, spending the time together." So kind of she forced us, in a way, not to speak-

57:29

Aaron Francis

That's good. Good for her

57:30

Monica Sarbu

... as much about work. But we really like, um, kind of brainstorming together, and I think this is very-

57:37

Aaron Francis

Sure

57:37

Monica Sarbu

... powerful that, uh, the benefits that we get by knowing each other very well is that we are, I feel like we are a really strong team because we trust each other.

57:48

Aaron Francis

Mm-hmm.

57:48

Monica Sarbu

We have been working for many, many years together. Uh, and I think it's really nice the outcome that we get by brainstorming different ideas and different solutions together. And this is something that, you know, you always say that companies are stronger when the founders know each other. Uh, you know, either they were colleagues or, you know, they were sharing a dorm room whi- while they were in university.

58:16

Aaron Francis

Mm-hmm.

58:16

Monica Sarbu

I think, I think this is really, uh, valuable. And I know that maybe what we have here is unique, right? Because not many-

58:23

Aaron Francis

Mm-hmm

58:23

Monica Sarbu

... couples, uh, are a, capable of working together. But I think it really works for us because we also grew up together and we kind of, uh, um... Yeah, we grew up together, and I think this was also very important.

58:37

Aaron Francis

Wait, so how many years have you two known each other?

58:41

Monica Sarbu

24.

58:42

Aaron Francis

Oh, wow.

58:44

Monica Sarbu

24 years. No, for 24 years we are together. Uh, we know each other for longer than that.

58:52

Aaron Francis

That is wild. Yeah, this is very rare. This is extreme. I mean, just, like, working with your spouse or starting a company with your spouse is very rare, but knowing each other for that long and doing this many companies together and... This is, that's very, very cool. So you guys, you guys have something special here, and I'm, I'm really excited for y'all.

59:14

Um, is there anything-

59:15

Monica Sarbu

Thank you

59:15

Aaron Francis

... else you want to leave, leave the people with? Um, where, where can we find you both online, um, and any last words before we wrap?

59:27

Monica Sarbu

Tudor?

59:27

Tudor Golubenco

Yeah, so I, uh, we are Xata.io. Uh, definitely check that out. Uh, otherwise, uh, we are both on X or, or Twitter. Um, I, I'm trying to spend las- less time there, but, uh - ... but we are there

59:44

Aaron Francis

Is it working? Are you spending less time there? 'Cause I'm not.

59:48

Tudor Golubenco

Yeah. The, the, the reason it's working for me is that, uh, I got a new phone and didn't install it on my, on, on the phone.

59:55

Aaron Francis

Ah, smart.

59:57

Tudor Golubenco

At some point, probably I'll do it again. Uh, but-

1:00:00

Aaron Francis

You will

1:00:00

Tudor Golubenco

... uh, but for the moment, uh, uh, I, I don't have it as an app, uh, so it's only, only on the computer and on the website and such. Um-

1:00:09

Aaron Francis

Okay, perfect.

1:00:09

Tudor Golubenco

Yeah, so-

1:00:09

Aaron Francis

So tell us your username on, username on Twitter.

1:00:12

Tudor Golubenco

I'm Tudor_G.

1:00:15

Aaron Francis

Tudor_G. Okay. And Monica, where can the people find you?

1:00:19

Monica Sarbu

So you can find me on Twitter and also LinkedIn. I'm not so, um, active on Twitter. Uh, maybe I should be more, but I, I don't really find the time. It's a challenge. Uh, but I'm more active on LinkedIn, as silly as it sounds. Um, but, uh, you can find my full name, Monica Sarbu, on both platforms.

1:00:41

And definitely we are available on Discord and on Twitter, and, uh, feel free to send us, uh, um, your feedback if you have any idea of other features that you would like to see in Xata or any feedback about the current features that we have in Xata. I would love to hear from you.

1:01:02

Aaron Francis

Wonderful. All right. We will leave links to all of that down in the show notes, and thank you both for doing this. First time we've had two guests, and it was perfect. We'll never do it again 'cause we can't top this, but this was, this was a delight. So thank you both, and we'll talk to you soon.

1:01:18

Monica Sarbu

Thank you, Aaron.

1:01:18

Aaron Francis

Awesome.

1:01:19

Tudor Golubenco

Thank you, Aaron.

1:01:20

Monica Sarbu

Bye.

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