1
00:00:05,300 --> 00:00:09,360
[CLAIRE] Welcome to Talking Postgres, a monthly podcast for developers who love this database.

2
00:00:10,020 --> 00:00:14,660
I'm your host, Claire Giordano, and in this podcast, we explore the human side of Postgres,

3
00:00:15,260 --> 00:00:20,720
databases, and open source, which means why do people who work with Postgres, like Adam,

4
00:00:21,200 --> 00:00:25,939
do what they do, and how did they get there? I want to say thank you to the team at Microsoft

5
00:00:25,960 --> 00:00:27,900
for sponsoring today's conversation.

6
00:00:28,860 --> 00:00:30,880
Now, today's guest is Adam Prout.

7
00:00:31,380 --> 00:00:33,880
He is a distinguished engineer at Microsoft.

8
00:00:34,320 --> 00:00:36,140
He works on Postgres on Azure,

9
00:00:36,560 --> 00:00:39,680
and specifically, he's one of the founding architects

10
00:00:39,940 --> 00:00:42,860
of Azure HorizonDB, which is currently in preview,

11
00:00:43,400 --> 00:00:45,240
which is Microsoft Speak for Beta.

12
00:00:46,059 --> 00:00:50,120
Previously, Adam was co-founder and CTO of SingleStore,

13
00:00:50,480 --> 00:00:52,740
which those of you who've been around for a while

14
00:00:53,260 --> 00:00:55,160
remember was originally called MemSQL.

15
00:00:56,000 --> 00:01:01,460
Adam lives in Canada, and early in his career, he also worked on SQL Server.

16
00:01:03,120 --> 00:01:06,680
Basically, his entire career has been spent in relational databases.

17
00:01:07,540 --> 00:01:08,780
So welcome, Adam.

18
00:01:09,800 --> 00:01:10,660
[ADAM] Thanks for having me on, Claire.

19
00:01:11,660 --> 00:01:17,720
[CLAIRE] All right, so today's topic is from MemSQL to HorizonDB, an engineer's journey.

20
00:01:20,060 --> 00:01:24,720
So this isn't going to be an advertisement for HorizonDB nor for MemSQL, but it's really

21
00:01:24,800 --> 00:01:28,720
to talk about your whole journey across all these relational databases.

22
00:01:30,260 --> 00:01:35,720
So I thought we'd start with your origin story, even before you maybe got into databases, but

23
00:01:35,820 --> 00:01:37,960
just as a developer, how did you get started?

24
00:01:39,120 --> 00:01:39,700
[ADAM] Sure, yeah.

25
00:01:39,920 --> 00:01:44,560
I think I probably had a more traditional path than maybe some of your other guests.

26
00:01:44,600 --> 00:01:45,780
I listened to some of your other shows.

27
00:01:46,040 --> 00:01:51,260
But my dad was a programmer in the 60s, 1960s, so in the punch card era.

28
00:01:52,180 --> 00:01:56,800
And he started his own software company in the 1980s called PFW.

29
00:01:58,040 --> 00:02:23,320
And so I always had my dad look up to and kind of teach me some stuff about programming. So we always had PCs in our house in the very early days of the PC. I think we had a 386 or 286 or maybe both. And it had basic on it. So you remember basic came with this little monkey guy that threw the banana and you tried to hit the other guy. And it came with the code for that. So you could kind of mess around with it in basic.

30
00:02:25,500 --> 00:02:31,000
And so that, yes, yes.

31
00:02:26,060 --> 00:02:29,280
[CLAIRE] Did you print your name in big letters?

32
00:02:29,530 --> 00:02:31,280
The big A's.

33
00:02:32,120 --> 00:02:34,639
Yeah, I mean...

34
00:02:33,160 --> 00:02:40,180
[ADAM] Yeah, I don't know if I printed my name, but yes, that was the easiest thing to program in basic was just to have kind of the blocks form some pattern on the screen.

35
00:02:40,440 --> 00:02:45,260
You know, I don't remember if it was my name, but yes, that's the type of programs I was making.

36
00:02:45,440 --> 00:02:46,280
That's about all I could do.

37
00:02:46,380 --> 00:02:51,840
But yeah, it taught you about, you know, loops and, you know, logic and if statements and whatnot.

38
00:02:51,880 --> 00:02:58,740
And in high school, I switched to C++ because this was the 90s and object-oriented programming

39
00:02:59,700 --> 00:03:06,460
was all the rage and C++ was the relatively new cool thing to learn.

40
00:03:07,120 --> 00:03:16,980
And the first kind of production app I built was a scheduling app for the office of my high school.

41
00:03:16,980 --> 00:03:18,580
I don't even remember what it was scheduling.

42
00:03:18,840 --> 00:03:22,580
It was something about teachers that would be absent for the day and other teachers would

43
00:03:22,580 --> 00:03:25,120
have to fill in if they couldn't get a supply teacher or whatnot.

44
00:03:25,320 --> 00:03:29,100
But the vice principal would have this app to figure out who was free.

45
00:03:29,160 --> 00:03:32,600
And I wrote it for him as a project for my computer class.

46
00:03:33,580 --> 00:03:35,040
And that was my first production code.

47
00:03:35,180 --> 00:03:37,520
That was in C++ just because I wanted to use C++.

48
00:03:37,640 --> 00:03:39,540
I don't think it actually needed C++.

49
00:03:39,660 --> 00:03:40,900
It could have been written in something else.

50
00:03:41,020 --> 00:03:49,260
But and from there, I kind of knew like in high school, I wanted to study computer science in university.

51
00:03:49,520 --> 00:03:52,120
And that's what I went and studied at University of Waterloo.

52
00:03:54,660 --> 00:03:55,920
And that was fun.

53
00:03:55,980 --> 00:03:56,600
I did grad school.

54
00:03:57,060 --> 00:03:59,380
I did a master's degree there, a little bit of grad school.

55
00:03:59,440 --> 00:04:03,480
I wanted to see if, you know, if academia was a thing for me.

56
00:04:03,640 --> 00:04:09,960
It turns out it's not that I had a bad time in grad school, but it was I don't know what the right.

57
00:04:10,000 --> 00:04:12,860
It's like I prefer to ship production software.

58
00:04:13,070 --> 00:04:14,520
It's a little too experimental.

59
00:04:14,690 --> 00:04:17,700
It was hard to tell what you're doing mattered

60
00:04:18,440 --> 00:04:20,500
because you're just kind of playing with, you know,

61
00:04:20,680 --> 00:04:22,860
toy systems, not working on real production systems.

62
00:04:23,630 --> 00:04:25,360
So that's when I jumped to Microsoft.

63
00:04:25,610 --> 00:04:27,940
And so working on SQL Server.

64
00:04:28,080 --> 00:04:30,740
So that's kind of my little arc, but I say kind of traditional,

65
00:04:30,960 --> 00:04:33,380
you know, follow, follow in your dad's footsteps.

66
00:04:33,600 --> 00:04:39,720
It's kind of a traditional approach to becoming a software engineer.

67
00:04:42,040 --> 00:04:48,340
[CLAIRE] Sometimes people follow in their mom's footsteps. It can happen, I'm just saying. I

68
00:04:48,620 --> 00:04:56,140
followed in my dad's footsteps too, so don't get me wrong. But, yeah, all right, let's stay

69
00:04:56,240 --> 00:05:02,939
focused here. So did you do anything extensively with databases while you were at

70
00:05:02,960 --> 00:05:08,460
University of Waterloo or was it your first job at Microsoft in SQL Server that really

71
00:05:08,960 --> 00:05:12,400
kind of brought you into this space and hooked you? It must have hooked you.

72
00:05:13,320 --> 00:05:18,080
[ADAM] Yeah. I mean, at Waterloo, I kind of knew I wanted to work on systems programming. So

73
00:05:18,220 --> 00:05:23,680
either compilers or operating systems or databases. And at that point, I didn't have a strong opinion

74
00:05:23,860 --> 00:05:28,200
on which. It's like, okay, let's just... So that's where I interviewed at all the companies you would

75
00:05:28,320 --> 00:05:31,680
think of if you wanted to work on those things. I even interviewed at Sun Microsystems. Sun was

76
00:05:31,780 --> 00:05:38,700
still alive back then. And I ended up at Microsoft mostly because that team impressed me the most.

77
00:05:38,700 --> 00:05:45,640
I was not really optimizing for like money or prestige or anything.

78
00:05:46,140 --> 00:05:46,900
It was my first job.

79
00:05:46,900 --> 00:05:51,440
I wanted to join a team that I felt like I could learn the most the fastest about systems programming.

80
00:05:52,240 --> 00:05:56,140
And the SQL Server team was the one that impressed me the most where I felt like I

81
00:05:56,140 --> 00:05:57,120
could learn the most the quickest.

82
00:05:57,240 --> 00:05:58,080
So that's where I went.

83
00:05:58,580 --> 00:06:02,400
That was my first real, like real building of databases experience.

84
00:06:02,640 --> 00:06:02,740
Right?

85
00:06:02,840 --> 00:06:06,920
The app that I built for the school office, that was using ODBC.

86
00:06:07,060 --> 00:06:11,380
ODBC was new back then. Now it's like some ancient technology. Everyone ignores it.

87
00:06:12,440 --> 00:06:16,540
And it was talking to like a Microsoft Access database or some tiny little database.

88
00:06:18,380 --> 00:06:24,480
So I had to toy a little bit with building apps around databases, but yeah, I didn't really get

89
00:06:24,590 --> 00:06:30,220
into it until I joined Microsoft to work on SQL Server. I guess it was the early 2000s.

90
00:06:33,140 --> 00:06:37,140
[CLAIRE] Obviously, there's something about it, though, that has hooked you, besides the fact that

91
00:06:37,240 --> 00:06:41,500
systems. You didn't leave databases to go off and switch to compilers or

92
00:06:42,060 --> 00:06:46,640
operating systems or anything like that. You've stayed in this space. So do

93
00:06:46,740 --> 00:06:48,160
you know what the appeal is?

94
00:06:49,620 --> 00:06:58,720
[ADAM] I didn't maybe recognize it at the time, but most engineers that start working on databases get kind of hooked because there's so many.

95
00:06:59,460 --> 00:07:07,140
If you take a look at the spectrum of computer science, there's bits and pieces of that inside of database.

96
00:07:07,270 --> 00:07:10,920
So there's language runtimes and compilers inside of databases, right?

97
00:07:11,040 --> 00:07:16,580
The SQL language has the same steps you would have if you were building a compiler for C++ or Rust.

98
00:07:16,740 --> 00:07:19,480
It's a little more primitive, but the steps are there.

99
00:07:20,340 --> 00:07:24,820
And it has all kinds of algorithms for in-memory data structures and on-disk data structures.

100
00:07:25,540 --> 00:07:33,200
And depending on the database you're working on, distributed systems, you know, consensus algorithms, Paxos, Raft.

101
00:07:33,200 --> 00:07:35,500
So there's such a breadth of things.

102
00:07:36,320 --> 00:07:43,040
So you're pretty well not working on the same little narrow domain, you know, year in and year out.

103
00:07:43,080 --> 00:07:48,600
You're kind of jumping around, you know, whatever issue happens to pop up.

104
00:07:48,920 --> 00:07:50,820
Maybe today you're working on some network protocol.

105
00:07:51,140 --> 00:07:53,000
Tomorrow you're working on some on-disk data structure.

106
00:07:53,080 --> 00:07:59,240
Today, you're working on something in the query optimizer, so you get quite a bit of exposure to different

107
00:07:59,440 --> 00:08:03,640
things, so that's why I say the database, once I started working on it, is like, wow, why would I

108
00:08:03,700 --> 00:08:09,160
want to work on a compiler? That's such a more narrow domain than databases, right? I can get exposure to

109
00:08:09,220 --> 00:08:15,120
compilers and operating systems. SQL Server very famously has its own operating system layer

110
00:08:15,940 --> 00:08:21,859
mostly because I think Windows was fairly primitive when it was built. It's called the SOS, SQL OS.

111
00:08:23,200 --> 00:08:25,480
So it has its own little mini operating system that it comes with.

112
00:08:26,180 --> 00:08:27,340
It's like all these things are there.

113
00:08:27,400 --> 00:08:31,040
I just, you know, you don't need to leave the database space to get exposure to them.

114
00:08:35,300 --> 00:08:37,159
[CLAIRE] So you were at Microsoft for a number of years.

115
00:08:37,700 --> 00:08:54,200
By the way, I love what you just said, and it's probably going to turn into a great quote because there are so many interesting bits and challenging problems in databases and in Postgres specifically, which is, of course, the database that I pay the most attention to.

116
00:08:55,340 --> 00:09:11,880
But I guess I want to jump ahead. I can't remember how many years you worked on SQL Server at Microsoft, but I do know that at some point you left and you co-founded MemSQL and currently called SingleStore, but then called MemSQL.

117
00:09:11,920 --> 00:09:15,920
And I've never asked you, is there an interesting founding story there?

118
00:09:16,400 --> 00:09:23,480
Were you eating pizza in Paris and there was a conversation and all of a sudden it happened?

119
00:09:23,510 --> 00:09:24,460
What's the story?

120
00:09:24,790 --> 00:09:25,480
Is it interesting?

121
00:09:26,560 --> 00:09:27,720
[ADAM] I don't know if it's that interesting.

122
00:09:27,860 --> 00:09:30,100
I remember how I said I joined Microsoft

123
00:09:30,300 --> 00:09:34,240
because I felt like it had the highest quality people

124
00:09:34,380 --> 00:09:35,100
that I could learn from.

125
00:09:35,340 --> 00:09:37,300
So a bunch of those folks,

126
00:09:37,540 --> 00:09:39,520
some of them had already left SQL Server,

127
00:09:39,720 --> 00:09:41,220
but it was a bunch of SQL Server folks.

128
00:09:41,320 --> 00:09:42,160
Some of them were at Facebook

129
00:09:42,580 --> 00:09:43,800
because Facebook was pre-IPO

130
00:09:43,960 --> 00:09:46,300
and it was the cool place to go back then.

131
00:09:47,360 --> 00:09:48,319
And we just got together

132
00:09:48,320 --> 00:09:56,280
and we were looking at kind of market signals and saying, and we were seeing other databases get funded, like seed funded.

133
00:09:56,330 --> 00:09:57,360
I was like, hmm, interesting.

134
00:09:57,530 --> 00:09:59,920
So the market is funding database startups right now.

135
00:10:00,600 --> 00:10:04,940
There was a couple small acquisitions that happened before that, which is usually what causes more funding.

136
00:10:05,660 --> 00:10:08,460
It's like, hmm, we can get funded to do a database startup.

137
00:10:08,570 --> 00:10:12,560
And we just started brainstorming where we thought there was an opportunity.

138
00:10:14,560 --> 00:10:19,220
And in that time, MySQL was much more dominant than Postgres.

139
00:10:19,540 --> 00:10:21,560
This is like early 2000s.

140
00:10:21,560 --> 00:10:23,920
So the LAMP stack was the big thing.

141
00:10:24,920 --> 00:10:26,540
Linux, Apache, MySQL, PHP.

142
00:10:26,840 --> 00:10:28,040
No one talks about LAMP now.

143
00:10:28,080 --> 00:10:30,420
No one's talked about LAMP for, I don't know, a long time.

144
00:10:30,720 --> 00:10:31,520
So it's gone.

145
00:10:31,620 --> 00:10:34,900
But at the time, doing MySQL, it was everywhere. [It was everywhere.]

146
00:10:35,220 --> 00:10:40,240
So we said, hey, we'll do a MySQL compatible, but distributed,

147
00:10:40,380 --> 00:10:42,740
because MySQL obviously doesn't scale out.

148
00:10:43,800 --> 00:10:45,120
And this was the NoSQL era.

149
00:10:45,600 --> 00:10:47,480
MongoDB was out there saying web scale,

150
00:10:47,790 --> 00:10:49,560
SQL databases don't scale, blah, blah, blah.

151
00:10:49,720 --> 00:10:51,520
All these things that we know are false now

152
00:10:51,680 --> 00:10:53,060
because there's so many examples

153
00:10:53,420 --> 00:10:56,420
of successful distributed databases, SQL databases.

154
00:10:57,420 --> 00:10:58,600
But back then, there wasn't one.

155
00:10:58,700 --> 00:11:00,460
So we're like, hey, we can combine these things together

156
00:11:01,940 --> 00:11:03,740
and it looks like we could get funded.

157
00:11:04,680 --> 00:11:06,900
And that's just kind of how it started.

158
00:11:07,000 --> 00:11:08,760
We wanted to try our own thing, I guess.

159
00:11:10,260 --> 00:11:11,820
I mean, that's one of the pluses and minuses

160
00:11:11,850 --> 00:11:13,560
of big company versus small company.

161
00:11:13,660 --> 00:11:17,020
But we were like, we were experienced engineers, I would say.

162
00:11:17,100 --> 00:11:17,560
It's like we're new.

163
00:11:17,700 --> 00:11:19,840
We're like five to 10 years experience.

164
00:11:20,130 --> 00:11:21,500
We kind of knew how to build stuff.

165
00:11:21,770 --> 00:11:23,440
But at Microsoft, that's still kind of junior.

166
00:11:23,740 --> 00:11:27,040
Like Microsoft is maybe unique a bit.

167
00:11:27,100 --> 00:11:29,840
And it's like there's so many people with multiple decades of experience.

168
00:11:30,110 --> 00:11:31,580
And they're kind of the decision makers.

169
00:11:31,770 --> 00:11:32,940
And you have to kind of convince them.

170
00:11:33,050 --> 00:11:37,080
And Microsoft, fairly conservative place at starting new products.

171
00:11:37,940 --> 00:11:42,080
So to do something like we wanted to do, there is just no way we'd ever be able to do it

172
00:11:42,190 --> 00:11:42,800
inside of Microsoft.

173
00:11:43,100 --> 00:11:47,260
So that's why we said, okay, let's just do a startup and maybe it'll fail.

174
00:11:47,540 --> 00:11:49,080
Maybe it'll last a couple of years,

175
00:11:49,220 --> 00:11:52,380
but at least we'll get some experience in doing something completely different

176
00:11:52,640 --> 00:11:54,420
because we were all at big companies at the time,

177
00:11:54,920 --> 00:11:56,800
doing something different than big company stuff.

178
00:11:56,970 --> 00:11:59,020
So it turns out it's still going.

179
00:11:59,200 --> 00:12:02,020
It's 15 years later.

180
00:12:03,220 --> 00:12:05,080
None of the initial founders are still there,

181
00:12:05,240 --> 00:12:09,580
but it's a sustainable business and it'll probably keep going for a while.

182
00:12:11,360 --> 00:12:21,360
Then, you know, they're still trying to grow it bigger, but you know, that's one of the reasons I ended up leaving is I couldn't find a way to grow it any bigger. And so it was time to do something different, different challenge.

183
00:12:24,740 --> 00:12:30,120
[CLAIRE] So maybe that's part of the answer to the next question I have, which is why did you come back

184
00:12:30,160 --> 00:12:31,700
to Microsoft from SingleStore.

185
00:12:32,240 --> 00:12:34,080
I mean, you just touched on

186
00:12:34,840 --> 00:12:36,420
why you were ready to leave SingleStore,

187
00:12:36,780 --> 00:12:38,220
but why did you come back to Microsoft?

188
00:12:38,340 --> 00:12:40,600
You could have gone anywhere in the world.

189
00:12:41,420 --> 00:12:43,460
[ADAM] Yeah, I still want to work on databases for the reason.

190
00:12:43,980 --> 00:12:45,180
I just think it made sense.

191
00:12:46,180 --> 00:12:48,620
Even though the AI thing had started at that point,

192
00:12:48,700 --> 00:12:49,680
this was like three years ago.

193
00:12:50,220 --> 00:12:55,920
So chat, oh yeah, almost like two and a half, something like this.

194
00:12:51,240 --> 00:12:53,420
[CLAIRE] Has it been three years that you've been back?

195
00:12:57,320 --> 00:12:59,440
[ADAM] But I left, I took a couple months off.

196
00:12:59,660 --> 00:13:03,000
I wanted to take a little break, career break,

197
00:13:03,140 --> 00:13:04,260
which I think was very nice.

198
00:13:04,420 --> 00:13:05,940
So I took three or four months off between.

199
00:13:06,060 --> 00:13:08,700
So it's been almost three years since I left though.

200
00:13:09,800 --> 00:13:14,080
[CLAIRE] I'm always recommending to people when they're between jobs that they take at least two weeks

201
00:13:14,200 --> 00:13:18,880
off, which some people don't do. Some people leave a job on a Friday and go to the new company on the

202
00:13:18,980 --> 00:13:25,380
Monday, and I'm like, no, no, this is your one chance to not have to read email, not have to get

203
00:13:25,400 --> 00:13:31,060
behind, not have to worry about the fact that you might be missing something. Just

204
00:13:31,620 --> 00:13:34,020
go sailing in Greece, do something.

205
00:13:34,960 --> 00:13:35,400
[ADAM] Yeah, exactly.

206
00:13:35,880 --> 00:13:38,360
Just have a blank slate in your mind.

207
00:13:38,480 --> 00:13:38,900
Yeah, it was nice.

208
00:13:39,020 --> 00:13:40,240
I just read a whole bunch of papers.

209
00:13:40,560 --> 00:13:42,200
I always have a queue of papers.

210
00:13:43,540 --> 00:13:46,500
And when I'm working, I can maybe read one a month or something.

211
00:13:46,620 --> 00:13:48,300
So that queue just gets bigger.

212
00:13:48,480 --> 00:13:50,600
It never gets, I'll never empty it out.

213
00:13:50,660 --> 00:13:53,160
But I did a bunch of work to empty it out in between jobs.

214
00:13:54,040 --> 00:13:55,360
But I was swinging back.

215
00:13:55,400 --> 00:14:00,040
So I think that the reason I came back to Microsoft was I wanted to stay in databases.

216
00:14:02,459 --> 00:14:03,900
And so I was looking around.

217
00:14:04,000 --> 00:14:05,160
I want to go back to a big company.

218
00:14:05,220 --> 00:14:07,440
So I'd been in a startup for 13 years.

219
00:14:07,500 --> 00:14:12,640
I wanted to go back to a big company, mostly because at the startup, I saw the journey from

220
00:14:12,800 --> 00:14:19,200
nothing to hundreds of millions of revenue and thousands of customers. And at a startup,

221
00:14:19,380 --> 00:14:23,800
that's a difficult journey. You don't have the brand name of a big company to piggyback on.

222
00:14:24,360 --> 00:14:29,600
But I never got to see the journey above that. Can we take a service from hundreds of millions

223
00:14:29,660 --> 00:14:36,479
to many billions or millions of customers? And that's something that's much easier to do at a

224
00:14:36,500 --> 00:14:42,380
company. Some startups do achieve that, but it's exceedingly rare. You know, Snowflake,

225
00:14:42,500 --> 00:14:48,600
Databricks obviously have achieved that. But at a big company, I mean, most of Microsoft

226
00:14:48,960 --> 00:14:56,160
database products have that scale. And so I knew Shireesh, I think you had on your show before, who

227
00:14:56,340 --> 00:15:02,699
runs the databases team. He's the CVP and runs the relational databases team because he had worked

228
00:15:02,720 --> 00:15:07,580
at SingleStore for a bit. So we had worked together and he was pitching this new thing

229
00:15:07,780 --> 00:15:11,120
that they want to do, which was HorizonDB, a new Postgres service. They were going to

230
00:15:11,320 --> 00:15:16,360
invest big in it. We're going to build a team around this thing and build it from the ground up.

231
00:15:17,419 --> 00:15:22,560
And the existing Postgres service that Microsoft already has called Flexible Server was growing

232
00:15:22,740 --> 00:15:27,300
very fast. There was a lot of validation that we could build a very big Postgres business.

233
00:15:28,360 --> 00:15:29,640
And so I wanted to see that journey.

234
00:15:30,880 --> 00:15:32,420
So it was kind of lining up.

235
00:15:32,540 --> 00:15:33,620
I had a boss.

236
00:15:34,120 --> 00:15:36,700
I didn't know Affan, but a management chain

237
00:15:36,820 --> 00:15:39,140
that I trusted, which I think is important at a big company.

238
00:15:39,180 --> 00:15:41,440
You kind of want to trust your upper management.

239
00:15:42,940 --> 00:15:44,860
And saying they're going to invest in an area

240
00:15:45,000 --> 00:15:46,560
I'm interested in, a new database service.

241
00:15:46,820 --> 00:15:50,480
And it was Postgres, because HorizonDB is a Postgres service,

242
00:15:50,900 --> 00:15:53,220
which is a service I knew a little bit about Postgres

243
00:15:53,460 --> 00:15:55,620
before this point, but I haven't dived deep

244
00:15:55,760 --> 00:15:56,900
into the code or the community.

245
00:15:57,520 --> 00:15:58,740
So it was a chance to learn that.

246
00:15:59,830 --> 00:16:01,680
So it was basically all these things were coming together.

247
00:16:01,790 --> 00:16:06,480
It was just like kind of the perfect opportunity to do.

248
00:16:06,690 --> 00:16:09,220
I probably couldn't have found something better.

249
00:16:09,230 --> 00:16:12,160
I did look around and see what I could, but there was nothing even close.

250
00:16:12,440 --> 00:16:14,380
So that's how I came back to Microsoft.

251
00:16:15,600 --> 00:16:22,880
[CLAIRE] Awesome. Yeah, I will make sure to drop a link to the episode with Shireesh Thota into the show

252
00:16:23,000 --> 00:16:31,780
notes. It was fun to hear his journey. A lot of time spent working on databases for him as well

253
00:16:32,140 --> 00:16:34,840
before he took on his current leadership role.

254
00:16:36,840 --> 00:16:38,980
Okay, so when you came back to Microsoft,

255
00:16:40,280 --> 00:16:43,280
I imagine it was quite different from the company you left.

256
00:16:43,290 --> 00:16:44,180
Were there any surprises?

257
00:16:44,650 --> 00:16:47,060
Is there anything that struck you?

258
00:16:47,310 --> 00:16:49,860
And I know you, just to give context to anyone who's listening,

259
00:16:50,700 --> 00:16:53,220
you're part of the Azure Databases organization

260
00:16:53,700 --> 00:16:55,040
and specifically the Postgres one.

261
00:16:55,780 --> 00:16:59,520
You work predominantly remote and you're based in Canada.

262
00:16:58,040 --> 00:17:18,060
[ADAM] Yeah. I mean, when I left, like SQL Server, I was working on SQL Server, but the database business was primarily an on-prem business, like packaged software that you sold and people installed it.

263
00:16:59,880 --> 00:17:03,220
[CLAIRE] And I would say you probably have teammates all over the world in different places.

264
00:17:05,620 --> 00:17:06,380
So surprises?

265
00:17:18,780 --> 00:17:39,660
[ADAM] They had a cloud offering in the works, but it was a very small, it was kind of like a skunkworks effort. They were just trying to get it off the ground when I left. But now flip to today and almost all of the effort is around the services. Obviously, Postgres, we don't sell it on-prem at Microsoft. You can't buy support from us or something. We only sell the services.

266
00:17:39,880 --> 00:17:47,200
But even SQL Server has four very big successful services built around SQL Server, and they still have the on-prem.

267
00:17:47,580 --> 00:17:49,320
It's not there.

268
00:17:49,600 --> 00:17:55,080
But the emphasis on running the services in live site, none of that was there.

269
00:17:55,280 --> 00:17:57,420
Azure barely existed when I left.

270
00:17:57,580 --> 00:18:03,720
So that's quite a change to how things work.

271
00:18:06,100 --> 00:18:08,200
I mean, we weren't on call when I left.

272
00:18:08,240 --> 00:18:11,480
There was no on-call for the engineers and now there's on-call.

273
00:18:11,640 --> 00:18:14,980
So that was the biggest change.

274
00:18:15,080 --> 00:18:16,360
But I think that's true.

275
00:18:16,760 --> 00:18:19,900
If you wanted to work on databases anywhere, I think that's the same.

276
00:18:21,100 --> 00:18:23,820
Any of the big companies now, this is the way they tend to operate.

277
00:18:25,980 --> 00:18:27,460
So that's quite, quite different.

278
00:18:29,620 --> 00:18:53,180
[CLAIRE] I know from a conversation that we had, I think the first time I met you, which was at an offsite up in Redmond in like your first six months. But what one of the things you told me is that you were surprised to learn about Azure Database for PostgreSQL and just how big that business is or, I don't know.

279
00:18:53,240 --> 00:18:57,180
I mean, maybe it just wasn't on your radar when you were at SingleStore.

280
00:18:58,600 --> 00:18:59,860
But I don't know.

281
00:18:59,559 --> 00:19:04,380
[ADAM] Yeah. Yeah. Yeah. I remember that conversation. I wasn't much into the Postgres community. [I was.]

282
00:19:04,480 --> 00:19:09,280
I was in the, MemSQL is MySQL compatible. So I was kind of more on that side of the fence.

283
00:19:10,040 --> 00:19:13,080
And in the end we were just selling to big businesses. Nobody cared that we were MySQL

284
00:19:13,360 --> 00:19:18,160
compatible by the time we renamed a SingleStore, but we were kind of our own thing. But yeah,

285
00:19:18,360 --> 00:19:23,459
people did not associate Postgres with Microsoft in, at least in Silicon Valley, that's

286
00:19:23,480 --> 00:19:31,560
I was before I came. I moved back to Toronto a little bit before I joined Microsoft. So in Silicon

287
00:19:31,840 --> 00:19:39,060
Valley, everyone would use Amazon and maybe a few people would use Google. And so I was surprised the

288
00:19:39,300 --> 00:19:46,320
size, the scale and maturity of the Flexible Server, the existing Postgres business, the size of the

289
00:19:46,340 --> 00:19:48,600
service and the maturity of it, the feature set of it.

290
00:19:50,920 --> 00:19:54,300
And I also didn't know that Microsoft supported open source

291
00:19:54,600 --> 00:19:59,480
Postgres to the extent it does, which like a lot of the folks

292
00:19:59,560 --> 00:20:04,520
you've had on the podcast, like these, these guys are a whole team.

293
00:20:01,220 --> 00:20:06,080
[CLAIRE] Oh, you mean that we have a whole team of open source contributors and committers?

294
00:20:04,680 --> 00:20:09,620
[ADAM] Yeah. That is very unique thing. Like, I

295
00:20:09,740 --> 00:20:16,300
mean, that it's like a group of people that are paid just to do

296
00:20:16,300 --> 00:20:21,320
thing they would probably do anyways. I mean, they have to pay their bills, so they need someone to

297
00:20:22,280 --> 00:20:28,800
pay them, but they're working on open source. Obviously, we consult with them and on HorizonDB,

298
00:20:28,980 --> 00:20:33,820
we consult with them on various things on how we want to do it and whatnot, but their day job,

299
00:20:34,000 --> 00:20:39,760
where they're typing code is open source. They're not typing code on our closed source stuff, but

300
00:20:39,940 --> 00:20:45,420
that's very unique. I don't know. I've never seen, to this scale, I don't know how big the

301
00:20:45,440 --> 00:20:50,920
the community. A good number of engineers are employed this way. I think that's a very

302
00:20:51,030 --> 00:20:57,320
unique thing. I had no idea the extent to which Microsoft had committed to the open source

303
00:20:57,620 --> 00:21:05,460
community for Postgres and yourself too. That's mainly your job, your day job. You're going

304
00:21:05,460 --> 00:21:07,360
to how many conferences a year? I don't know.

305
00:21:09,080 --> 00:21:10,440
[CLAIRE] As many as I can.

306
00:21:12,520 --> 00:21:18,860
Yeah, it's interesting because a number of the people that were acquired as part of the

307
00:21:19,020 --> 00:21:22,340
Citus Data acquisition, they have startup DNA in their blood.

308
00:21:22,790 --> 00:21:27,940
And many of them have gone off to work, you know, after being at Microsoft for a number

309
00:21:27,960 --> 00:21:32,320
of years, they went off to go found a startup or join a startup or get back into that world.

310
00:21:32,880 --> 00:21:38,760
But I'm still here. And one of the reasons I'm still here is just because it's, I love working

311
00:21:38,890 --> 00:21:44,200
with the Postgres community and on the upstream open source project. And so it's wonderful that

312
00:21:44,620 --> 00:21:52,260
Microsoft will pay me to do that. And I just think it's a privilege. Obviously, I do some things that

313
00:21:53,020 --> 00:21:57,820
aren't just for the upstream project. So my job, unlike the committers that you just referred to,

314
00:21:57,860 --> 00:22:02,440
where 95% of their time is focused on the open source project.

315
00:22:02,640 --> 00:22:03,100
I don't know.

316
00:22:03,260 --> 00:22:05,180
I've never figured out the percentages.

317
00:22:05,760 --> 00:22:09,400
Am I 60/40? 40/60? Whatever.

318
00:22:10,080 --> 00:22:11,680
But it's still a privilege and I love it.

319
00:22:11,900 --> 00:22:13,540
So I am still here.

320
00:22:16,340 --> 00:22:18,720
So the title of this episode is

321
00:22:19,140 --> 00:22:22,720
From MemSQL to HorizonDB, an engineer's journey.

322
00:22:23,640 --> 00:22:31,100
And I think I would like to ask you to share a definition of Azure HorizonDB for anybody

323
00:22:31,480 --> 00:22:35,600
listening who maybe either hasn't heard of it or isn't quite sure what it is yet.

324
00:22:37,130 --> 00:22:41,600
[ADAM] Yeah, it's a more cloud native service built around Postgres.

325
00:22:41,720 --> 00:22:46,660
So if you want to think of Flexible Server, that's our existing Postgres business.

326
00:22:47,480 --> 00:22:52,680
We mostly take open source Postgres. I think there's something like 12 very small patches

327
00:22:53,280 --> 00:22:57,080
inside of Postgres, like little tweaks to the security model here and there so we can run it

328
00:22:57,080 --> 00:23:02,660
as a service. But by and large, it takes Postgres, it takes Azure. So Azure VMs, Azure managed disks,

329
00:23:03,400 --> 00:23:09,299
Azure Blobstore, builds a control plane. And basically everything is off the shelf if you

330
00:23:09,320 --> 00:23:10,280
you want to think of it that way.

331
00:23:10,960 --> 00:23:12,680
Where HorizonDB, we're looking at what--

332
00:23:12,780 --> 00:23:14,880
if we open this up a little bit and say,

333
00:23:15,140 --> 00:23:17,300
we're OK with making some changes to Postgres,

334
00:23:19,060 --> 00:23:21,000
and we're OK with making some changes to Azure

335
00:23:21,400 --> 00:23:23,360
so that the two can fit together very nicely,

336
00:23:23,560 --> 00:23:26,040
so we can have a more cloud-native Postgres.

337
00:23:26,940 --> 00:23:30,520
So things like very specific storage systems for transaction

338
00:23:30,720 --> 00:23:34,420
logs that are low latency, do quorum commits,

339
00:23:35,260 --> 00:23:37,420
and are much faster than an Azure managed disk

340
00:23:37,430 --> 00:23:38,400
that you just get off the shelf.

341
00:23:38,560 --> 00:23:42,560
the managed disks weren't designed to store transaction logs. This is one example. There's

342
00:23:42,570 --> 00:23:46,040
like five or six examples where we're willing to say, "Hey, we're going to make some changes to Azure.

343
00:23:46,380 --> 00:23:50,720
We're going to make some changes to Postgres. We're going to try to make those two puzzle pieces fit

344
00:23:50,820 --> 00:23:57,100
together very cleanly." Whereas Flexible Server is very, very compatible with Postgres. It's like

345
00:23:57,310 --> 00:24:03,740
almost just normal Postgres, open source Postgres, community Postgres. And so in that form factor,

346
00:24:03,760 --> 00:24:10,080
it was hard for us to do this because that's the way customers buy Flexible Server. They pay for an

347
00:24:10,120 --> 00:24:15,860
Azure VM. The VM type is exposed to the customer. In HorizonDB, it's not. You're paying for cores,

348
00:24:16,160 --> 00:24:22,080
but it's more hidden from you. We have more flexibility in that form factor to make changes

349
00:24:22,320 --> 00:24:28,320
to both Azure and Postgres. I know that's more than a sentence, but this makes some changes to

350
00:24:28,480 --> 00:24:33,100
both to give you capabilities that are just hard to give you. Because remember, Postgres is this

351
00:24:33,120 --> 00:24:38,320
amazing piece of software. It's designed to work everywhere. It's designed to work on-prem, on like,

352
00:24:38,540 --> 00:24:43,280
I lost track how many operating systems it supports. Definitely, it's not designed to

353
00:24:43,400 --> 00:24:49,080
run in any of the clouds. It runs well, but it's not like there's people back, whatever, 30, 40 years

354
00:24:49,260 --> 00:24:54,000
ago when Postgres started, it's like, "I'm in cloud. Let's design Postgres for cloud." So that's

355
00:24:54,100 --> 00:24:59,740
kind of the long and short of it, is just letting us make some changes on both sides so we have a

356
00:24:59,760 --> 00:25:04,420
system that really fits together and make Postgres run as best as we can in Azure.

357
00:25:07,240 --> 00:25:11,640
[CLAIRE] You mentioned 30 years. So I just want to pause for a second and tell anybody who's listening that

358
00:25:12,060 --> 00:25:18,100
this year is the 30th anniversary of the start of the Postgres open source project.

359
00:25:14,580 --> 00:25:14,960
[ADAM] Nice.

360
00:25:14,960 --> 00:25:15,080
Please.

361
00:25:18,200 --> 00:25:21,860
[CLAIRE] So yeah, people are pretty excited about that milestone.

362
00:25:22,130 --> 00:25:28,620
And I know at PGConf.dev in a couple of weeks in May, which is the annual development conference

363
00:25:29,040 --> 00:25:33,000
for the Postgres open source project, there will definitely be some celebrating around that

364
00:25:33,120 --> 00:25:34,320
30 year birthday, which is cool.

365
00:25:36,180 --> 00:25:37,840
Okay, so can I try to summarize?

366
00:25:38,450 --> 00:25:43,620
Azure HorizonDB, just to give context to everybody, tell me if I'm getting this right.

367
00:25:43,740 --> 00:25:49,500
It is, it's still in preview, which is beta, which means if you're going to look right now

368
00:25:49,720 --> 00:25:54,800
on the day we publish this episode for the documentation on like the Microsoft Learn portal,

369
00:25:54,980 --> 00:25:58,900
which is where all the docs are for the Azure services, you will not find it yet because

370
00:25:59,080 --> 00:26:04,940
it's in private preview, private beta, but it, it, it'll be coming out at some point.

371
00:26:06,159 --> 00:26:08,020
And then you'll be able to see the docs.

372
00:26:08,240 --> 00:26:13,700
So they're not there yet, but they will be soon, but it is a second Postgres managed service

373
00:26:13,720 --> 00:26:17,720
on Azure and it employs shared storage.

374
00:26:18,940 --> 00:26:20,980
And it has, you're trying to,

375
00:26:21,140 --> 00:26:22,860
what's that puzzle piece analogy you just used?

376
00:26:23,160 --> 00:26:25,000
That you're trying, in HorizonDB,

377
00:26:25,180 --> 00:26:27,440
you've made some changes to how Azure works

378
00:26:28,060 --> 00:26:30,460
and you're making some customizations to Postgres

379
00:26:31,060 --> 00:26:33,120
so that those puzzle pieces fit together really well.

380
00:26:33,240 --> 00:26:35,400
And it's hyper-optimized presumably

381
00:26:35,900 --> 00:26:37,540
for running in the cloud.

382
00:26:37,680 --> 00:26:38,360
Did I get it right?

383
00:26:38,380 --> 00:26:38,980
[ADAM] Yep.

384
00:26:39,170 --> 00:26:40,660
We're running in Azure very specifically.

385
00:26:40,840 --> 00:26:42,120
We're using lots of things.

386
00:26:44,820 --> 00:26:47,980
that are only available in Azure that make the system easier to build.

387
00:26:48,160 --> 00:26:51,180
If we were going to build it on AWS, we wouldn't be able to build it this way.

388
00:26:53,240 --> 00:26:56,040
So it's very, because we don't, we're just, hey, we're Microsoft.

389
00:26:56,360 --> 00:26:58,800
We're not trying to sell this thing on someone else's cloud.

390
00:26:58,980 --> 00:27:02,840
So we can, that's part of what we can do here. [Of course.]

391
00:27:02,840 --> 00:27:07,700
We can say, hey, let's make the architecture simpler because we only need to run in Azure.

392
00:27:09,080 --> 00:27:16,240
[CLAIRE] Okay, so it sounds like when you were recruited, there was already internal discussions about

393
00:27:16,900 --> 00:27:23,960
creating this new offering. But I presume you joined early enough that you can speak to

394
00:27:24,040 --> 00:27:29,080
why? Why we created it? Yeah? Why?

395
00:27:25,390 --> 00:27:25,600
[ADAM] Yep.

396
00:27:28,450 --> 00:27:32,220
So part of it was market signals.

397
00:27:32,460 --> 00:27:39,620
So this split, having a very compatible Postgres and then kind of a more cloud native

398
00:27:39,640 --> 00:27:45,100
Postgres where it's not quite the same. It's going to perform a little differently. It's going to have

399
00:27:45,280 --> 00:27:50,260
maybe some of the extensions won't work. That split was already there. So Amazon has that split.

400
00:27:50,440 --> 00:27:57,460
Google has that split. And since we started the projects, I lost track of how many Postgres services

401
00:27:57,700 --> 00:28:06,020
are there. Snowflake has one. Databricks has one. So the demand for this more cloud native Postgres,

402
00:28:06,600 --> 00:28:13,820
it was clear. Everyone looks at DB-Engines, for example, this very famous ranking of databases and

403
00:28:14,000 --> 00:28:21,460
shows the Postgres popularity going up and MySQL and Oracle going down. And SQL Server, unfortunately,

404
00:28:21,480 --> 00:28:27,180
is also going down a little bit, unfortunately, for Microsoft. So, yeah, the market demand was

405
00:28:27,320 --> 00:28:32,019
definitely there for the system. And Azure just had this gap. We had Flexible Server, it's growing

406
00:28:32,040 --> 00:28:38,460
well, but we can really service the extreme top end of the market. So Postgres is kind of like this

407
00:28:38,600 --> 00:28:44,500
very cool database where developers love it. So your smaller apps, your Supabases, your

408
00:28:44,800 --> 00:28:50,260
your Herokus and all these guys. And then at the very top end, it's also a target for Oracle migrations.

409
00:28:51,160 --> 00:28:57,540
So your big iron tier zero, tier one apps that, you know, must be always on and have lots

410
00:28:57,560 --> 00:29:02,040
of scalability requirements like this OpenAI, which I think, I don't know if it's been talked

411
00:29:02,160 --> 00:29:08,460
about on your podcast, but OpenAI runs part of ChatGPT on Flexible Server, the existing Postgres

412
00:29:09,580 --> 00:29:13,840
service. And there's some blog posts out there. I would check them out. It's pretty neat to see how

413
00:29:13,870 --> 00:29:18,280
they do it at the scale they run at. I lost track of how many read replicas they have now. It's like

414
00:29:18,320 --> 00:29:26,100
a hundred or hundreds. But that is common, right? And so we knew we needed to build a little

415
00:29:26,120 --> 00:29:31,500
bit of a different system for those very enterprise-grade workloads that are coming to Postgres,

416
00:29:31,660 --> 00:29:38,040
they're coming from Oracle, or they're just being written on Postgres. If it's a new app today,

417
00:29:38,420 --> 00:29:45,520
Postgres is what people choose by and large. So the market demand was there and Microsoft had a

418
00:29:45,680 --> 00:29:53,780
gap here. Flexible Server doing very well. As I said, amazing. I just had no idea. I don't think

419
00:29:53,800 --> 00:29:58,260
think I'm allowed to say the scale of it, but someday you guys will get clearances to

420
00:29:58,330 --> 00:30:02,640
say how many cores or how many VMs or whatever, but it's big. It's a big thing, big numbers.

421
00:30:04,360 --> 00:30:10,900
So we had a lot of validation that if we build a more enterprise-focused server, not to say

422
00:30:10,940 --> 00:30:15,500
Flexible Server isn't, but again, we just can't make the changes to Postgres that we want to

423
00:30:15,640 --> 00:30:22,840
make in Flexible Server. So we had the kind of the market signals that there was demand.

424
00:30:23,300 --> 00:30:24,920
Microsoft is very conservative about this.

425
00:30:24,970 --> 00:30:28,120
Like Amazon launches new database services every month.

426
00:30:28,120 --> 00:30:30,880
I just lose track of them and they kill them off like a couple of years later,

427
00:30:31,000 --> 00:30:33,140
if they don't take off, Microsoft does not do that.

428
00:30:33,380 --> 00:30:38,040
Microsoft, when they launch something, they put a lot of effort behind it.

429
00:30:38,800 --> 00:30:43,140
And it's because they have very firm belief it's going to work.

430
00:30:44,200 --> 00:30:46,040
And then we'll just keep going.

431
00:30:46,370 --> 00:30:47,100
We won't stop.

432
00:30:47,480 --> 00:30:48,760
That's just the Microsoft way.

433
00:30:48,880 --> 00:30:51,820
We may be a little behind because we don't act first.

434
00:30:53,020 --> 00:30:55,120
But once we do act, we act in a big way.

435
00:30:55,700 --> 00:30:57,980
So I think you'll see that with HorizonDB.

436
00:30:58,140 --> 00:31:00,780
You're going to look at this, you know, some of the stuff in the preview and think,

437
00:31:01,120 --> 00:31:03,040
maybe that's kind of similar to my existing system.

438
00:31:03,200 --> 00:31:04,800
But there's lots of things coming.

439
00:31:06,400 --> 00:31:09,960
Stuff that I can't even talk about today yet beyond that's in the works.

440
00:31:10,260 --> 00:31:12,680
And, you know, you'll see it showing up in the next year.

441
00:31:12,700 --> 00:31:13,620
It's not that far away.

442
00:31:14,720 --> 00:31:17,560
So, yeah, that was the reasoning.

443
00:31:18,240 --> 00:31:23,540
And Shireesh, as I mentioned, was kind of the guy really behind this, which is a big deal and interesting thing for you.

444
00:31:23,600 --> 00:31:28,240
I'm sure you maybe asked him about this, but SQL Server is a ginormous business for Shireesh, like a huge.

445
00:31:28,720 --> 00:31:30,800
Again, can't tell you. It's just unbelievable how big it is.

446
00:31:30,820 --> 00:31:36,040
So the fact that he's willing to invest in Postgres just tells you the belief he has in it, right?

447
00:31:36,240 --> 00:31:42,980
Because he already has this massive database business in SQL Server, and he's also willing to invest in Postgres.

448
00:31:43,140 --> 00:31:45,260
He's not just saying, no, no, no, you guys should all use SQL Server.

449
00:31:45,400 --> 00:31:49,420
He's willing to say, wow, there's a big piece of the market that wants Postgres and we need to be there.

450
00:31:49,750 --> 00:31:52,300
In spite of us having this massive SQL Server business.

451
00:31:54,120 --> 00:31:59,260
[CLAIRE] You know how a lot of times people view the world from their own little vantage point?

452
00:31:59,640 --> 00:32:02,180
You know, what does that mean for me?

453
00:32:03,900 --> 00:32:05,580
And so I'm human.

454
00:32:05,900 --> 00:32:07,640
I fall into that bucket as well.

455
00:32:07,740 --> 00:32:11,940
But one of the things I really like about Shireesh is that even though he has this big

456
00:32:12,220 --> 00:32:17,680
engineering and product job where, you know, he owns the whole Azure Database business at

457
00:32:17,820 --> 00:32:24,000
Microsoft, I also know within the Postgres space, he appreciates the community work that I do.

458
00:32:24,180 --> 00:32:26,300
He took the time to be on this podcast.

459
00:32:27,300 --> 00:32:33,000
If I ever get stuck or I ever get in trouble, not that I misbehave, but you know what I

460
00:32:33,100 --> 00:32:33,200
mean?

461
00:32:33,260 --> 00:32:34,460
I could turn to him for help.

462
00:32:34,780 --> 00:32:40,400
He supports our Postgres open source upstream project work and backs it.

463
00:32:40,760 --> 00:32:41,960
And that is just huge.

464
00:32:42,220 --> 00:32:43,400
And I really, really appreciate it.

465
00:32:43,560 --> 00:32:45,700
So that's the world according to Claire.

466
00:32:47,120 --> 00:32:51,780
[ADAM] No, I'm with you on the engineering side. He's 100%. I mean, that's one of the reasons I joined,

467
00:32:51,940 --> 00:32:57,100
because I knew if he said we were going to do this, that he meant it. So he's definitely on

468
00:32:57,180 --> 00:33:04,000
the engineering side also getting us... Headcount these days is not easy to come by at any of the

469
00:33:04,100 --> 00:33:07,960
big tech companies, all the layoffs and stuff. So getting us headcount to work on this was

470
00:33:08,700 --> 00:33:11,740
something he had to do quite a bit of work. So...

471
00:33:12,920 --> 00:33:13,860
[CLAIRE] And successfully.

472
00:33:14,800 --> 00:33:15,480
[ADAM] Successfully, yep.

473
00:33:16,170 --> 00:33:19,500
[CLAIRE] Okay, so let's talk about database architecture.

474
00:33:20,120 --> 00:33:25,000
I really liked one of the things I was listening to this talk you gave as I was preparing for

475
00:33:25,240 --> 00:33:25,640
today's episode.

476
00:33:25,760 --> 00:33:31,300
You gave a talk, one of the database tech talk series that Andy Pavlo organizes at Carnegie

477
00:33:31,520 --> 00:33:31,760
Mellon.

478
00:33:32,500 --> 00:33:37,140
Every year or every semester, I should say, there's always like a different theme and a

479
00:33:37,240 --> 00:33:41,060
different title to the tech talk series.

480
00:33:41,440 --> 00:33:47,480
And I think this particular semester, which is where you just recently gave your presentation,

481
00:33:48,260 --> 00:33:52,540
the title is PostgreSQL vs. The World, which I just love.

482
00:33:54,040 --> 00:33:57,280
But you gave a talk about HorizonDB there.

483
00:33:57,700 --> 00:33:58,900
And in the beginning of that,

484
00:33:59,020 --> 00:34:02,300
and I'll make sure to link to that presentation in the show notes,

485
00:34:02,440 --> 00:34:05,660
because I think you do a really good job explaining things.

486
00:34:07,540 --> 00:34:11,760
And in a way that I think makes sense to both experts

487
00:34:12,080 --> 00:34:14,899
and maybe even people who are students or who are new.

488
00:34:15,440 --> 00:34:18,960
I think you communicate well at both layers at the same time.

489
00:34:19,560 --> 00:34:20,620
Okay, enough of the compliments.

490
00:34:22,139 --> 00:34:23,780
But you said in the beginning, you said,

491
00:34:23,870 --> 00:34:26,320
okay, I'm only going to go knee deep into this topic.

492
00:34:27,139 --> 00:34:30,240
And so maybe I'm only looking for a knee deep answer to my question.

493
00:34:30,370 --> 00:34:34,560
But I want to know how to think about the HorizonDB architecture

494
00:34:35,040 --> 00:34:38,220
relative to other similar architectures.

495
00:34:38,480 --> 00:34:40,020
What's different about it?

496
00:34:40,200 --> 00:34:41,280
What's interesting about it?

497
00:34:41,540 --> 00:34:44,320
Versus like Aurora and other architectures like it.

498
00:34:45,520 --> 00:34:48,300
[ADAM] Yeah, so Aurora was the first in this space.

499
00:34:48,520 --> 00:34:51,100
So this is kind of shared storage for OLTP

500
00:34:52,100 --> 00:34:53,300
and they did it for MySQL

501
00:34:53,879 --> 00:34:55,820
and then they later did it for Postgres maybe,

502
00:34:56,300 --> 00:34:58,340
though we're talking 2015, they did it for MySQL.

503
00:34:58,380 --> 00:35:00,940
I think Postgres was maybe a couple of years later, 2017.

504
00:35:01,460 --> 00:35:04,040
So this idea has been around for a while

505
00:35:04,220 --> 00:35:06,700
that you can kind of take the storage layer

506
00:35:07,040 --> 00:35:08,960
out of a database 'cause it can be done for,

507
00:35:09,640 --> 00:35:12,160
and Microsoft did it for SQL Server in 2019.

508
00:35:12,560 --> 00:35:14,680
So it's been done for three different databases now.

509
00:35:15,520 --> 00:35:21,480
You can take the storage layer out of the database and push it into a separate service.

510
00:35:22,480 --> 00:35:29,040
And our goal with HorizonDB was to take this to the extreme. So we just wanted Postgres, the

511
00:35:29,200 --> 00:35:36,360
Postgres compute nodes in HorizonDB, we wanted them to only run queries and transactions in your

512
00:35:36,500 --> 00:35:44,540
app logic. All the work to like replicate the data, make it durable, take backups, is all pushed into

513
00:35:44,540 --> 00:35:51,840
the storage layer. So you don't pay any compute or I/O or network cost in your kind of compute

514
00:35:51,980 --> 00:35:56,180
VMs because that's how they're sold. They're sold based on, and this is industry standard,

515
00:35:56,380 --> 00:36:01,740
they're sold based on cores and memory. And so Postgres is using those cores and memory to

516
00:36:02,140 --> 00:36:06,820
replicate data or write it to disk, it means you can't use those cores to run your app.

517
00:36:07,520 --> 00:36:14,520
And so in HorizonDB, our goal was to push as much as we could into the storage layer. So the

518
00:36:14,520 --> 00:36:20,360
you're paying for run your app. They do what you want them to do. The storage layer you pay per

519
00:36:20,480 --> 00:36:26,860
gigabyte. So it doesn't matter how much work that storage layer is doing, you don't get charged for

520
00:36:26,860 --> 00:36:33,380
it. So it's such a nice model for customers. And Aurora pushed some things to the storage layer,

521
00:36:33,920 --> 00:36:39,480
but they didn't push near as much as HorizonDB did. So a lot of that talk, I was discussing the

522
00:36:39,620 --> 00:36:43,640
various things. I think I even might have showed a table at one point saying, "Hey, look at

523
00:36:43,640 --> 00:36:45,960
all this stuff that your open source Postgres would do.

524
00:36:46,000 --> 00:36:49,640
And I think I listed the process names that you would see

525
00:36:50,480 --> 00:36:51,780
in Postgres doing that work.

526
00:36:51,980 --> 00:36:54,240
And I was in HorizonDB, those things just aren't there.

527
00:36:54,360 --> 00:36:55,420
You won't see those processes.

528
00:36:55,780 --> 00:36:56,560
They're not doing anything.

529
00:36:56,840 --> 00:36:57,860
It's hidden in the storage layer.

530
00:36:57,900 --> 00:36:58,740
The work still happens.

531
00:36:59,540 --> 00:37:00,740
You just don't see it.

532
00:37:01,360 --> 00:37:03,360
So that's the similarity.

533
00:37:03,580 --> 00:37:05,960
So the similarity, obviously shared storage, HorizonDB,

534
00:37:06,120 --> 00:37:07,800
as I said, we're not the first to do this.

535
00:37:08,820 --> 00:37:12,640
But one of the nice things we have had being kind of later is we

536
00:37:12,660 --> 00:37:15,820
and look at what everyone else did and see what worked and what didn't work.

537
00:37:17,060 --> 00:37:20,240
Because one of the nice things of the database, everyone writes papers, right?

538
00:37:20,320 --> 00:37:25,160
There's SIGMOD and there's VLDB, these conferences for database builders.

539
00:37:27,099 --> 00:37:32,020
And I think there's maybe 25 or 30 papers a year published in these things.

540
00:37:33,120 --> 00:37:37,540
And there's an industry track where it's just people from industry, like production systems.

541
00:37:37,940 --> 00:37:44,280
So I lost track of how many papers have been published on shared stories for OLTP, but it's dozens.

542
00:37:44,820 --> 00:37:49,420
And this is real gold stuff because these are, again, these are papers of production systems.

543
00:37:49,490 --> 00:37:50,620
These are not research systems.

544
00:37:51,610 --> 00:37:54,140
So we could look at these papers and say, okay, this worked, this didn't work.

545
00:37:55,600 --> 00:38:02,860
And so pushing as much as we could into the storage layer was one of the things that's fairly different with HorizonDB versus Aurora.

546
00:38:04,600 --> 00:38:14,600
But the similarities that the architecture looks like this paper from Microsoft, actually, it's Socrates, the new SQL Server for the cloud.

547
00:38:14,620 --> 00:38:15,880
I think it's a 2019 paper.

548
00:38:16,840 --> 00:38:19,600
That's the very high level architecture, the very big boxes.

549
00:38:19,700 --> 00:38:22,500
If you zoom way back out, that's where the boxes go.

550
00:38:23,380 --> 00:38:25,880
And I think that paper doesn't get enough credit.

551
00:38:25,920 --> 00:38:30,020
I think I mentioned that in the CMU talk, because if you look at that, go ahead.

552
00:38:28,100 --> 00:38:36,360
[CLAIRE] I think you put a screenshot of it up on the screen [Yes, I think I did.], which I find is always super helpful to show, not just to tell, right? [That's right.]

553
00:38:37,060 --> 00:38:42,080
And that probably prompted a few people to go download that paper and take a look at it.

554
00:38:40,600 --> 00:38:46,220
[ADAM] I hope so, because it's a very good paper. I'd like everyone to read it, because Aurora also wrote papers,

555
00:38:46,650 --> 00:38:52,500
and they're good papers too, but, if you look at the study of those, I know several dozen

556
00:38:52,740 --> 00:38:57,800
papers. As soon as that Socrates paper came out, everyone switched to that architecture thereafter,

557
00:38:58,280 --> 00:39:02,060
they were taking to their versions of it, their tweaks on it, but that is the most common

558
00:39:02,060 --> 00:39:07,200
architecture. And that's the one HorizonDB follows. And the big thing about that architecture is

559
00:39:08,140 --> 00:39:13,280
separate storage for logs and data pages. So there's a specialized storage system for transaction

560
00:39:13,500 --> 00:39:18,080
logs, like I was mentioning earlier, because they have very different write patterns and very

561
00:39:18,460 --> 00:39:23,360
different latency requirements. You don't care about the throughput that much. Hundreds of megabytes

562
00:39:23,380 --> 00:39:27,660
is not that much throughput for a storage system, but you do want the latency to be very, very low

563
00:39:27,680 --> 00:39:31,240
because every time you type commit, you're waiting for that data to become durable.

564
00:39:32,180 --> 00:39:33,620
And so your app is stuck waiting.

565
00:39:33,780 --> 00:39:35,340
So you really want to limit that.

566
00:39:35,920 --> 00:39:40,680
[CLAIRE] So you're talking about different latency patterns for writes and specifically for logs?

567
00:39:41,080 --> 00:39:42,500
[ADAM] Yeah, for transaction logs, right?

568
00:39:42,620 --> 00:39:45,900
So the transaction logs versus data pages, a lot of the writes are async.

569
00:39:46,680 --> 00:39:48,660
You're like relatively rarely wait.

570
00:39:48,660 --> 00:39:48,980
You can.

571
00:39:49,180 --> 00:39:50,760
It depends on what your app is doing.

572
00:39:52,220 --> 00:39:53,520
You're rarely waiting on those.

573
00:39:53,700 --> 00:39:55,740
So you have a lot more of them, right?

574
00:39:55,820 --> 00:39:56,940
That's your whole data set.

575
00:39:57,000 --> 00:39:58,200
You might have a terabyte of them.

576
00:39:58,320 --> 00:40:04,300
So where your transaction logs, you probably have the tail of the log that's hot that you're writing to hundreds of megabytes.

577
00:40:04,340 --> 00:40:16,320
So this paper is the one that said, hey, you should use separate storage systems for logs and transactions, optimize them for the patterns, the read and write patterns of those two different pieces of data.

578
00:40:17,360 --> 00:40:25,500
And then you should put your pages, you should tier them into blob store because some pages are hot and some pages are cold.

579
00:40:26,160 --> 00:40:31,320
And so they were the first to really do this OLTP over blob store in production.

580
00:40:32,040 --> 00:40:33,260
Like Aurora does not do that.

581
00:40:33,520 --> 00:40:36,460
Aurora only stores backups in blob store, at least as far as I know.

582
00:40:36,500 --> 00:40:40,400
I see Aurora could be changing internally and not publishing new papers.

583
00:40:41,140 --> 00:40:47,080
So they all store their backups in blob store, but the full data set is on like equivalent to an EBS type disk.

584
00:40:48,840 --> 00:40:54,700
Whereas in the Socrates design, they're still caching in front of it because the blob store is obviously too slow.

585
00:40:55,620 --> 00:40:57,520
But the durable layer is the blob store.

586
00:40:57,640 --> 00:41:01,200
So basically all our storage services in HorizonDB could die,

587
00:41:01,780 --> 00:41:03,000
and we will not lose any data

588
00:41:03,720 --> 00:41:05,780
because your data is in the blob store in the end.

589
00:41:05,880 --> 00:41:07,600
The durability layer is the blob store.

590
00:41:08,560 --> 00:41:11,420
And this is the two things they did in that Socrates paper

591
00:41:11,560 --> 00:41:13,380
that we also follow for HorizonDB,

592
00:41:13,460 --> 00:41:14,980
and lots of others have followed too.

593
00:41:16,360 --> 00:41:18,340
So that's kind of the big similarities.

594
00:41:22,440 --> 00:41:37,180
[CLAIRE] I know in your CMUDB talk, you also talked about Rust specifically. Tell me more. Open-ended. It couldn't be more open-ended than that.

595
00:41:38,210 --> 00:41:38,820
[ADAM] So, yeah.

596
00:41:39,170 --> 00:41:45,100
So, at Microsoft, there's a push to replace anything that you would historically build in

597
00:41:45,240 --> 00:41:51,500
C or C++, so high-performance systems, programs, you know, operating systems, databases.

598
00:41:52,360 --> 00:41:58,660
push those things to be built in Rust. And the reason for this is because it's mostly for

599
00:41:58,980 --> 00:42:04,680
security. Like Microsoft, Azure in particular, is probably one of the most attacked clouds in the

600
00:42:04,730 --> 00:42:10,960
world because of the number of government customers and very big customers, like nation state attacked

601
00:42:12,420 --> 00:42:17,560
and looking for vulnerabilities. And so they know where the vulnerabilities typically happen.

602
00:42:17,720 --> 00:42:25,000
And in C and C++, it's a very high-performance programming language, but it's also very error-prone.

603
00:42:25,000 --> 00:42:26,440
You have to be very, very careful.

604
00:42:26,560 --> 00:42:31,040
And there's tools to try to help you, but the compiler helps you almost not at all.

605
00:42:31,880 --> 00:42:39,800
So your program can compile with ridiculous bugs in it, buffer overflows and whatnot, and it'll happily compile and run.

606
00:42:39,900 --> 00:42:45,240
So Rust, it doesn't catch everything, but there's a large class of bugs.

607
00:42:46,240 --> 00:42:47,540
Your program just won't compile.

608
00:42:48,680 --> 00:42:54,980
And there's another class of bugs. It will crash at runtime in a very predictable way, not let an attacker get in there.

609
00:42:56,690 --> 00:43:00,560
So this kind of memory-safe programming in Rust is a very big thing at Microsoft.

610
00:43:00,810 --> 00:43:10,680
And so we were--it's not mandatory, but we were kind of strongly encouraged when we were building HorizonDB that you should use Rust, because this is going to be a new storage system.

611
00:43:10,700 --> 00:43:18,780
system. We would probably traditionally have built it in C++ if Rust wasn't around. And

612
00:43:18,820 --> 00:43:25,720
so that's kind of where we went down this path of using Rust, which is problematic mostly

613
00:43:25,860 --> 00:43:29,700
because even though Rust, I think it's like 10 years old now, it's not like brand new, but

614
00:43:29,780 --> 00:43:35,140
C++ is like 30 years old. So there's tons of experienced C++ programmers in the world.

615
00:43:35,400 --> 00:43:38,680
There are relatively few experienced Rust programmers. So it's a little harder to bootstrap.

616
00:43:39,940 --> 00:43:51,340
[CLAIRE] Okay, but just for clarity, Azure HorizonDB is still predominantly, it's Postgres under the covers, and that is, of course, written predominantly in C, right?

617
00:43:47,880 --> 00:43:51,500
[ADAM] Correct. C, yep.

618
00:43:51,910 --> 00:43:58,700
[CLAIRE] So the Rust bits that you're talking about are the shared storage implementations. [Correct. Yep.] Okay, got it.

619
00:43:58,960 --> 00:44:03,039
[ADAM] The new log service and the new page service, the stuff that you don't really see when you're

620
00:44:03,060 --> 00:44:06,640
using HorizonDB that are giving you the kind of the performance and scalability benefits,

621
00:44:07,000 --> 00:44:11,800
those are all Rust. And also some of the Postgres extensions, because we had to make some changes to

622
00:44:11,820 --> 00:44:16,260
Postgres to hook it up to these different storage systems. Because Postgres designed to talk to a

623
00:44:16,400 --> 00:44:22,820
disk and we're not a traditional disk underneath. So those extensions are pgrx, which is also Rust.

624
00:44:23,880 --> 00:44:28,160
So we're using it on both sides. Now some of the extensions are in C. We couldn't do everything in

625
00:44:28,180 --> 00:44:29,980
Rust, but...

626
00:44:29,340 --> 00:44:55,580
[CLAIRE] We should include a link to pgrx. I will include one in the show notes as well. So it is a framework that people can use to build Postgres extensions in Rust. And it's, you know, obviously getting used more and more as people. There's over a thousand Postgres extensions in existence. And many of them are probably not built in Rust, but more and more in the last couple of years, people are looking at that.

627
00:44:55,780 --> 00:45:01,420
So how do you, here's my, my required, my requisite Rust joke.

628
00:45:01,780 --> 00:45:04,100
How do you know if somebody is a Rust developer?

629
00:45:05,780 --> 00:45:08,360
[ADAM] I've heard this before, but I don't know exactly how it goes.

630
00:45:08,820 --> 00:45:11,780
Something like they will tell you about it or something like that.

631
00:45:11,940 --> 00:45:13,940
[CLAIRE] They will tell you, they will tell you.

632
00:45:14,420 --> 00:45:16,460
So I don't know why I get such a kick out of that. [That's true.]

633
00:45:17,460 --> 00:45:22,300
I try it at cocktail parties, but you know, when your friend is a doctor, it doesn't necessarily

634
00:45:22,640 --> 00:45:24,460
land the way you want the joke to.

635
00:45:25,540 --> 00:45:30,180
[ADAM] Well, yes, if you're ever on Hacker News, it's always XYZ system written in Rust, right?

636
00:45:30,330 --> 00:45:33,360
So it's very true.

637
00:45:34,320 --> 00:45:36,660
I mean, Rust is very cool.

638
00:45:36,730 --> 00:45:43,360
The other nice thing about Rust is like C++, it's not a garbage collected language, so

639
00:45:43,410 --> 00:45:47,520
you can still write high performance code in Rust.

640
00:45:47,850 --> 00:45:52,060
So you're not, it's like Java or C# or something where yes, it's harder to

641
00:45:52,150 --> 00:45:54,980
write bugs in it, but oh, by the way, you got a garbage collector and you got all these

642
00:45:55,240 --> 00:45:57,520
abstractions that make it harder to write high performance code.

643
00:45:58,660 --> 00:46:05,080
So it's a nice middle ground, I would say, between Java and C and C++.

644
00:46:12,520 --> 00:46:18,440
[CLAIRE] I want to circle back at some point to talk about you and your journey, but I have a few more HorizonDB questions. I'm curious about how,

645
00:46:20,360 --> 00:46:26,540
because I work on the upstream project part of the time, the upstream Postgres open source project,

646
00:46:26,630 --> 00:46:32,060
I mean, I'm curious about how open source, whether it's open source Postgres or open source

647
00:46:32,400 --> 00:46:39,960
anything, helped with the development of HorizonDB, helped you with that whole architecture

648
00:46:40,600 --> 00:46:43,960
and dev process to bring it to market.

649
00:46:44,240 --> 00:46:49,420
Did it help? How did open source help?

650
00:46:47,060 --> 00:46:51,300
[ADAM] Yes. How did open source help?

651
00:46:52,360 --> 00:46:56,940
Like I mentioned, the committer team was useful because we want to get their feedback on the

652
00:46:56,960 --> 00:46:57,940
stuff we're trying to do.

653
00:46:59,140 --> 00:47:07,400
I think there is a patch out there to try to make it easier to hook shared storage to Postgres.

654
00:47:09,140 --> 00:47:16,260
I don't think that patch has been in the right terminology for Postgres, but it needs to be

655
00:47:16,280 --> 00:47:22,140
approved and reviewed and whatnot. And we are looking for things like this where you know,

656
00:47:22,320 --> 00:47:28,440
where can we benefit the community as we're fixing things in Postgres. But just the fact...

657
00:47:27,560 --> 00:47:28,900
[CLAIRE] Well, that was my next question.

658
00:47:29,960 --> 00:47:32,820
Is HorizonDB helping the open source project in any way?

659
00:47:33,820 --> 00:47:41,300
[ADAM] Yeah, we're trying and we're trying to help with some future work. There's been some talks

660
00:47:41,360 --> 00:47:46,320
about memory elasticity in Postgres. So famously, if you want to change the size of shared

661
00:47:46,480 --> 00:47:51,700
buffers, you have to restart Postgres, which is something our customers don't like that much.

662
00:47:52,500 --> 00:47:57,060
And so there's a bunch of work in the open source to kind of push that forward. And we're kind of

663
00:47:57,110 --> 00:48:01,480
helping behind the scenes. We're taking those patches and we're running tests on them because

664
00:48:01,580 --> 00:48:06,920
that's something we're not in Postgres yet, but we're actively, now that we have HorizonDB,

665
00:48:06,980 --> 00:48:09,400
we really want this for our kind of enterprise customers.

666
00:48:10,700 --> 00:48:11,480
So there's things like this.

667
00:48:11,540 --> 00:48:16,600
I'm sure there'll be more examples where we're like, we might not be actively typing all of the code,

668
00:48:16,840 --> 00:48:20,900
but we're working with the committers and testing the patches and giving feedback before they're in

669
00:48:21,540 --> 00:48:22,500
open source Postgres.

670
00:48:22,630 --> 00:48:27,860
And I think that flow, that flow already is kind of there for Flex, like Flexible Server,

671
00:48:28,310 --> 00:48:32,260
you have lots of feedback on where we're seeing problems with Postgres, either crashes or

672
00:48:32,980 --> 00:48:38,580
customer confusion or customer not being able to do whatever they wanted to do in an easy way.

673
00:48:39,580 --> 00:48:44,160
And so we expect that same flow with HorizonDB too where we have, you know, make our telemetry

674
00:48:44,360 --> 00:48:48,380
available to the committer team if they want to go see something like, "Hey, I'm thinking about

675
00:48:48,500 --> 00:48:53,560
this thing. Can you tell me what's going on in your workloads?" That can also be very useful for

676
00:48:54,240 --> 00:48:58,540
those folks just to have production data that they can look at and say, "Oh, you know, whatever,

677
00:48:58,840 --> 00:49:01,340
this type of query pattern or this feature or whatever.

678
00:49:00,300 --> 00:49:04,500
[CLAIRE] A massive amount of production data from the fleet.

679
00:49:05,540 --> 00:49:09,600
[ADAM] I mean, we can't look at the customer's data, but it's more data about the workloads. That's

680
00:49:09,720 --> 00:49:12,620
kind of what we care about in this case, what the workload's up to.

681
00:49:10,760 --> 00:49:11,120
[CLAIRE] Yeah, yeah, yeah.

682
00:49:15,440 --> 00:49:23,420
So I'm curious about your job, how you spend your time, what it's like to be an architect

683
00:49:23,960 --> 00:49:30,680
on a database service like this that is, like you said, it's ultimately going to be used

684
00:49:30,900 --> 00:49:33,780
by how many millions of customers around the world?

685
00:49:35,140 --> 00:49:42,400
going to help drive a lot of applications. But I don't have any idea what you spend your time on.

686
00:49:43,460 --> 00:49:48,980
I don't understand if AI has changed how you do what you do. And are you spending most of your time

687
00:49:49,400 --> 00:49:55,660
coaching or mentoring others? Do you actually do development anymore? Do you have agents do

688
00:49:55,660 --> 00:50:00,620
your development? I am just curious. Talk to me. What's a day in the life of Adam Prout?

689
00:50:01,220 --> 00:50:03,140
[ADAM] Yeah, it depends. I think that's one of the...

690
00:50:03,560 --> 00:50:06,840
[CLAIRE] Oh, he said it. It depends. Okay, there we go. Yet another episode.

691
00:50:05,360 --> 00:50:11,860
[ADAM] Yeah, it really depends on the stage of the project, I think, more than anything.

692
00:50:12,960 --> 00:50:17,260
So when we were bootstrapping, it was, again, a lot of research, a lot of prototyping,

693
00:50:18,900 --> 00:50:23,780
and kind of getting some alignment around how, you know, the high-level picture of what we were

694
00:50:23,800 --> 00:50:30,000
going to build. And so this is writing some docs and having some discussions and doing some research.

695
00:50:30,740 --> 00:50:34,100
And then when we kind of decided the rough high-level picture of what we wanted to do,

696
00:50:34,240 --> 00:50:38,880
I was typing a lot of code because we didn't have, as I said, we were bootstrapping this team. We

697
00:50:39,020 --> 00:50:44,620
didn't have an existing team that we said, "Here, you're going to build this thing." We were hiring

698
00:50:44,650 --> 00:50:48,820
a new one. Now, we took some people from Flexible Server. So it's not like we started at zero

699
00:50:48,840 --> 00:50:54,440
developers. But we started nowhere near enough developers to build the service. So I had to type

700
00:50:54,560 --> 00:51:00,980
a lot of code. It was just fine. I enjoy typing code. But this was before agents. I mean, it depends

701
00:51:00,980 --> 00:51:05,100
who you talk to where the agents got really good. But I think most people that like the last six

702
00:51:05,280 --> 00:51:10,280
months, they've really turned the corner. I think if I had the agents that were around today, you know,

703
00:51:10,360 --> 00:51:15,380
two and a half years ago, probably would be more agent written code. But back then, it was autocomplete

704
00:51:15,400 --> 00:51:22,900
was the agents. It was mostly hand-typed code. Now, today, a lot of the code is

705
00:51:25,680 --> 00:51:31,740
typed by agents is the way I like to say it. I don't know that the agents are designing much of

706
00:51:31,740 --> 00:51:40,260
our code because we need to read it all. So today, I don't type as much code by far. The agents do the

707
00:51:40,280 --> 00:51:47,580
typing, but you still kind of tell it what to do. But it's so good now. Previously, it

708
00:51:47,580 --> 00:51:55,080
would even mess that up. But in the last six months, Opus or the latest OpenAI models, whatever

709
00:51:55,220 --> 00:52:00,000
they're up to now, 5.4 or 5.5, they're insanely good. So I don't know that a lot of our code

710
00:52:00,000 --> 00:52:05,800
is being typed by hand anymore, but it's all reviewed. We're definitely not to the point

711
00:52:05,820 --> 00:52:09,800
where we can't review the code. So that was where I was leading to is right now I spend,

712
00:52:09,880 --> 00:52:16,840
I don't know what number I should say, but a large percentage of my time reviewing code,

713
00:52:17,020 --> 00:52:19,700
like an immense amount of time reviewing code.

714
00:52:21,400 --> 00:52:25,500
And most of it written by agents, but obviously a human there telling the agent what

715
00:52:25,520 --> 00:52:27,420
to do and reviewing it too and sending a PR.

716
00:52:27,580 --> 00:52:31,580
It's not like it's agents without hands around it, but still we review every line of code

717
00:52:31,640 --> 00:52:31,980
in detail.

718
00:52:32,860 --> 00:52:34,660
So it's kind of faster to type the code now.

719
00:52:34,720 --> 00:52:36,480
As I said, the agents are very fast keyboards.

720
00:52:36,740 --> 00:52:37,620
That's the way I think of them.

721
00:52:37,660 --> 00:52:40,400
I don't think the Microsoft people like me to say that.

722
00:52:40,440 --> 00:52:44,140
But that's honest truth in my view is they're extremely fast keyboards.

723
00:52:44,400 --> 00:52:47,340
So once you know what you want to build, sometimes it's like boring code.

724
00:52:47,460 --> 00:52:48,760
You're like, oh, man, I don't want to type this.

725
00:52:49,240 --> 00:52:50,620
Agent will do this for you in two minutes.

726
00:52:51,280 --> 00:52:51,700
It's beautiful.

727
00:52:52,440 --> 00:52:54,740
But now we've got a lot more code to review as a result.

728
00:52:52,560 --> 00:52:53,160
[CLAIRE] Do you use...

729
00:52:55,720 --> 00:53:10,160
When you think about creating the instructions, the prompt, whatever you want to call it, for the agents, to the extent that you're triggering that versus somebody on the team that you work with, do you use voice or do you type?

730
00:53:10,920 --> 00:53:15,860
Because some people are saying voice is a lot faster to just speak to it.

731
00:53:15,000 --> 00:53:15,680
[ADAM] It is, yeah.

732
00:53:16,450 --> 00:53:20,420
Yeah, I think the weird thing is now the Microsoft offices are all this open concept stuff.

733
00:53:20,490 --> 00:53:23,440
So I asked people this too, and they're like, I'm afraid to do it in the office.

734
00:53:24,620 --> 00:53:26,220
But I'm working from home.

735
00:53:26,380 --> 00:53:28,340
So yeah, I talk to it a fair bit.

736
00:53:28,480 --> 00:53:31,940
Yeah, it's like it's much faster than typing to it.

737
00:53:33,100 --> 00:53:37,520
But yeah, I don't know how the folks at the Microsoft offices in Redmond in the open concept,

738
00:53:37,740 --> 00:53:40,280
if they're all talking to their computers or not.

739
00:53:42,140 --> 00:53:45,260
[CLAIRE] Oh, because of the background noise and people like sharing a space [Yeah, exactly.].

740
00:53:46,980 --> 00:53:52,440
Okay. Yeah, I don't know either because I work remote as well. So that's an interesting question.

741
00:53:53,300 --> 00:53:59,200
Okay. So you are reviewing more than typing these days.

742
00:54:00,500 --> 00:54:04,040
[ADAM] Reviewing code and also looking at some of the future stuff that we, you know, we're

743
00:54:04,200 --> 00:54:07,200
starting to get into another round of design phase.

744
00:54:08,140 --> 00:54:10,020
You always want to be a little bit ahead of the team.

745
00:54:10,180 --> 00:54:15,100
It's not that I design in detail everything we want to do, but kind of pathfind

746
00:54:15,240 --> 00:54:17,680
for the team, see what might work, what might not work.

747
00:54:18,280 --> 00:54:22,920
Or should we kind of spin up a bigger effort with a bunch of developers in the future?

748
00:54:22,990 --> 00:54:24,960
So it's nice to be a little ahead of the team.

749
00:54:25,790 --> 00:54:30,640
So doing some pathfinding there and then also, like I said, reviewing a lot of the existing code.

750
00:54:32,080 --> 00:54:36,260
And maybe hopefully I can get out of reviewing as much code as I am right now.

751
00:54:36,290 --> 00:54:38,620
But it's just the phase, like I said, it's the phase of the project, right?

752
00:54:38,760 --> 00:54:46,360
We've grown a new team with a whole bunch of new engineers and relatively few engineers that have been around since the beginning.

753
00:54:47,160 --> 00:54:49,580
But eventually, those engineers that have joined in the last year

754
00:54:49,680 --> 00:54:51,800
will get very comfortable in the code,

755
00:54:51,800 --> 00:54:54,640
and they'll be the ones doing more of the code reviewing than I am.

756
00:54:54,760 --> 00:54:56,040
So that's why I said it depends.

757
00:54:56,180 --> 00:54:57,560
It's the same at the startup, too.

758
00:54:57,660 --> 00:55:01,260
In the very early stages of MemSQL versus the end,

759
00:55:01,780 --> 00:55:04,420
the types of things I was doing were completely different,

760
00:55:04,740 --> 00:55:05,280
almost unrelated.

761
00:55:08,480 --> 00:55:08,760
[CLAIRE] Got it.

762
00:55:11,100 --> 00:55:12,680
You mentioned pathfinding.

763
00:55:13,560 --> 00:55:15,760
How does one, if someone's listening and they think,

764
00:55:15,820 --> 00:55:20,800
oh, I want to be an architect for a complex system in the future,

765
00:55:21,120 --> 00:55:23,480
which might look nothing like Azure HorizonDB,

766
00:55:23,720 --> 00:55:25,880
who knows what space they're going to be in.

767
00:55:26,860 --> 00:55:28,580
How do you get good at pathfinding?

768
00:55:28,920 --> 00:55:30,100
How do you build that skill?

769
00:55:31,060 --> 00:55:35,560
There's got to be a little sense of taste to decide I'm going to go down this rabbit

770
00:55:35,760 --> 00:55:40,020
hole and maybe it will be productive and maybe it'll be a dead end, but I'm going to

771
00:55:40,520 --> 00:55:41,120
try these things.

772
00:55:41,840 --> 00:55:46,720
[ADAM] Yeah, it's a good question. I think you got to care a little more broadly

773
00:55:49,220 --> 00:55:53,600
than just your current task, I guess, is the main thing. Even when you're doing some particular

774
00:55:53,620 --> 00:55:58,420
piece of the system, you should be looking about what's going on more broadly, either what the

775
00:55:58,680 --> 00:56:03,760
competition is doing or what customers are trying to do and having issues or even what they're doing

776
00:56:03,960 --> 00:56:08,420
in a way that could be done in a simpler way. Maybe even the customer is not that angry about it,

777
00:56:08,420 --> 00:56:13,000
but hey, look, you could do, you know, maybe we'll get a competitive advantage against the competition

778
00:56:13,500 --> 00:56:19,100
if we come up with some different way of doing it. So having the kind of open mind or whatever

779
00:56:19,120 --> 00:56:24,280
background thread that's kind of watching for these things. You've got to get your current work done.

780
00:56:24,880 --> 00:56:30,140
You know, no one's going to be happy if you don't have, you know, you're not making progress on

781
00:56:30,220 --> 00:56:35,080
things you already know you need to build. But being able to look more broadly at the set of

782
00:56:35,200 --> 00:56:40,080
things going on, because most of the things I'm pathfinding now are just problems in the current

783
00:56:40,400 --> 00:56:46,780
system, or we perceive will be a problem based on some of the data we have where we need to do

784
00:56:46,780 --> 00:56:51,100
something better than we have today. Or it's something where we're looking at the competition

785
00:56:51,560 --> 00:56:57,740
or what the users are doing with Flex or starting to do with HorizonDB in the public preview where we

786
00:56:57,740 --> 00:57:05,540
say we need a new capability. And that necessitates some changes in the design of the system. Or we're

787
00:57:05,540 --> 00:57:10,760
not exactly sure what the capability should look like. We know a rough idea of the capability. We

788
00:57:10,840 --> 00:57:16,760
have to go find and make it specific. And usually that means trying things to try to see, is that

789
00:57:16,780 --> 00:57:18,620
was that hard to build? Was that easy to build?

790
00:57:18,800 --> 00:57:20,120
That's what I mean by pathfinding.

791
00:57:20,270 --> 00:57:25,100
A lot of the times I'm not doing an extremely detailed design, but you're trying to figure out what's easy, what's hard,

792
00:57:26,340 --> 00:57:30,740
what's harder than you might have thought and kind of getting those insights back to the team.

793
00:57:30,790 --> 00:57:34,100
So you can kind of do the ROI analysis.

794
00:57:34,370 --> 00:57:38,840
Maybe this feature is an amazing thing, but it's so expensive for us to build it.

795
00:57:39,390 --> 00:57:44,460
It doesn't make sense. Whereas if you could build it in a very cheap way, we would do it because, look,

796
00:57:44,620 --> 00:57:46,560
we get nice ROI on that investment.

797
00:57:46,670 --> 00:57:49,560
So trying to pathfind all of those things.

798
00:57:50,220 --> 00:57:51,580
Yeah, I just think you need to look more broadly.

799
00:57:51,610 --> 00:57:55,960
You need to care more broadly than just your tasks in front of you.

800
00:57:55,970 --> 00:57:56,980
I think that's the key thing.

801
00:57:58,760 --> 00:57:59,760
And yeah, there is some taste.

802
00:57:59,830 --> 00:58:00,900
I don't know how you tell.

803
00:58:01,190 --> 00:58:03,300
When I say care, what do you care about?

804
00:58:03,820 --> 00:58:06,020
Yeah, you need to have some way to triage.

805
00:58:07,000 --> 00:58:07,880
What matters?

806
00:58:08,480 --> 00:58:10,940
Because, you know, some things you just shouldn't care about.

807
00:58:11,150 --> 00:58:11,640
It doesn't matter.

808
00:58:12,840 --> 00:58:19,160
So you do need some sense of what the product is doing and where it's going and what you should care about and what you shouldn't care about.

809
00:58:19,290 --> 00:58:20,620
So there is some sense.

810
00:58:21,670 --> 00:58:26,360
And I don't know how to gain that sense other than just work in that area for a long time.

811
00:58:26,450 --> 00:58:28,960
You should develop it.

812
00:58:30,860 --> 00:58:32,140
That's what I like about staying in data.

813
00:58:32,220 --> 00:58:33,420
That's why I decided to stay in databases.

814
00:58:33,800 --> 00:58:37,860
If I shifted to something entirely different, that sense would be gone.

815
00:58:37,910 --> 00:58:39,300
I would have to rebuild it from scratch.

816
00:58:41,300 --> 00:58:45,400
[CLAIRE] It sounds like you also pay attention to, like you're reading papers.

817
00:58:45,710 --> 00:58:50,500
It sounds like Microsoft benefits from the fact that you don't watch Netflix as your hobby, [Yep.]

818
00:58:51,040 --> 00:58:52,080
but you read papers.

819
00:58:53,210 --> 00:59:05,500
And so that gives you, puts your fingers on the pulse, if you will, on the other learnings and experiences of other databases. So that's kind of, it's not so much, I don't know if you'd call that a market signal or more of an engineering signal.

820
00:59:06,060 --> 00:59:08,820
[ADAM] Yeah both, yeah sometimes you can get both.

821
00:59:09,700 --> 00:59:13,760
[CLAIRE] Now, you mentioned all these papers that you read. Are you going to be writing a paper?

822
00:59:14,190 --> 00:59:18,500
Is that something I'm allowed to ask about? I'm not throwing your softball because I have

823
00:59:18,590 --> 00:59:19,680
no idea what the answer is.

824
00:59:19,880 --> 00:59:20,780
[ADAM] Probably we will.

825
00:59:20,870 --> 00:59:24,560
Yeah, I mean, the SQL Server team writes a lot of papers.

826
00:59:24,710 --> 00:59:27,700
They write a couple papers a year in the premier database conferences.

827
00:59:28,100 --> 00:59:31,160
But since we're just so busy getting this thing working,

828
00:59:31,710 --> 00:59:33,780
so I don't know if we'll do it this year.

829
00:59:33,880 --> 00:59:35,660
But I think we will write a paper on HorizonDB.

830
00:59:35,860 --> 00:59:39,500
I think that some of the things we've done are worth a paper.

831
00:59:39,620 --> 00:59:42,480
I think we probably can get one published in SIGMOD.

832
00:59:42,700 --> 00:59:44,620
But yeah, we're not currently working on it,

833
00:59:44,780 --> 00:59:45,760
but it is something we've discussed.

834
00:59:45,900 --> 00:59:47,360
Hey, when should we...

835
00:59:47,819 --> 00:59:49,360
It's a bit of work to write those papers.

836
00:59:49,540 --> 00:59:53,040
Most of us are better at writing code than we are at writing prose.

837
00:59:53,360 --> 00:59:58,260
So by and large, it takes engineers a long time to write those papers.

838
00:59:59,380 --> 01:00:06,360
[CLAIRE] I know you mentioned SIGMOD and VLDB as two of the premier conferences where database papers get published and shared.

839
01:00:07,550 --> 01:00:16,680
But Aaron Wislang has asked on the Discord chat if you have another source for papers that you want to recommend to listeners who care about databases.

840
01:00:18,600 --> 01:00:19,620
Are those the two primary?

841
01:00:18,800 --> 01:00:25,740
[ADAM] So yeah, those are the two primary ones, but, I just, if I'm studying an area,

842
01:00:25,880 --> 01:00:30,740
I do the obvious thing. I find a few of the premier papers, then you look at their references,

843
01:00:31,120 --> 01:00:35,480
and you can usually start seeing common references between them. And I better go find that paper and

844
01:00:36,240 --> 01:00:41,380
read it. But that's if I'm studying one area, like some sub problem, I want to gain an understanding of

845
01:00:41,500 --> 01:00:48,140
what others are doing. Another great thing is social media. If you follow the right people or have the

846
01:00:48,240 --> 01:00:54,820
right friends list or whatever it's called on LinkedIn, lots of people post interesting papers

847
01:00:54,880 --> 01:01:00,340
and say, "Hey, look at this." Not even papers they wrote. Here's this interesting paper. Sometimes

848
01:01:00,500 --> 01:01:04,960
it's like a five or six-year-old paper. You just missed it. And there's some interesting insight in

849
01:01:05,020 --> 01:01:10,900
there. So following the right people, I don't know who the right people are on X these days or whatever.

850
01:01:11,140 --> 01:01:16,440
It's just like there's still a database community around. If you follow them, you can find

851
01:01:17,180 --> 01:01:21,300
interesting papers that way. But that's kind of random. You say, "Oh, that's an interesting paper on

852
01:01:21,920 --> 01:01:25,960
some topic that I was interested in, or previously interested. But that's why I'm like,

853
01:01:26,100 --> 01:01:30,800
that's why I said I'd build a queue, because usually I find these papers out on social media

854
01:01:30,960 --> 01:01:34,820
somewhere, but I can't stop and read it on the spot. So I just, put it in my queue. And then, at some point I'll get to it.

855
01:01:35,240 --> 01:01:36,000
[CLAIRE] Where's your queue?

856
01:01:35,260 --> 01:01:42,060
[ADAM] It's like a Word doc. Yeah, it's like, it's not, it's not an advanced system.

857
01:01:36,330 --> 01:01:39,600
[CLAIRE] What software manages your... it's a Word doc?

858
01:01:44,660 --> 01:01:50,880
Yeah, I've started to use the Notes app on my phone to create certain cues, especially

859
01:01:51,040 --> 01:01:55,240
if I'm at a conference and I'm hearing ideas from people of things I should look into or

860
01:01:55,300 --> 01:01:56,120
learn about or whatever.

861
01:01:56,820 --> 01:01:58,120
All I've got with me is my phone.

862
01:01:58,880 --> 01:02:03,140
And I know if I don't write it down in the moment, the spark of an idea is there.

863
01:02:03,480 --> 01:02:04,120
It's gone.

864
01:02:04,300 --> 01:02:07,200
I'm not going to remember it when I get to my hotel later that night.

865
01:02:07,780 --> 01:02:09,700
So for me, it's the Notes app.

866
01:02:11,660 --> 01:02:11,920
But yeah.

867
01:02:11,900 --> 01:02:16,980
[ADAM] Yeah, it's Word for me. But yeah, someone, and I also like to take notes on the papers too. So I

868
01:02:17,080 --> 01:02:22,800
also have another Word doc that's like, I think it's up to 200 or 300 pages of notes

869
01:02:22,930 --> 01:02:24,420
on previous papers I've read.

870
01:02:24,920 --> 01:02:28,160
Because sometimes you want to go back and you're like, what was the key insight in that paper?

871
01:02:28,280 --> 01:02:29,020
I know I read it.

872
01:02:29,110 --> 01:02:30,540
I know that I have a rough intuition.

873
01:02:31,790 --> 01:02:33,760
And so having those raw notes is also very useful.

874
01:02:34,080 --> 01:02:35,740
There's like someone should build a little app here.

875
01:02:37,020 --> 01:02:37,960
Maybe it's too niche.

876
01:02:38,160 --> 01:02:40,880
Maybe I can just have an agent vibe code one up for me.

877
01:02:43,080 --> 01:03:02,120
[CLAIRE] Yeah, I think you can solve that one. I was the kid in college who, you know, you could buy or rent books at university. And I don't know, I always wanted to scribble in the margins and highlight. And like, that's part of how I would learn, like the process of writing the notes.

878
01:03:03,200 --> 01:03:05,540
And so I would buy my textbooks.

879
01:03:05,970 --> 01:03:10,380
And then if you looked at them, it was like a cornucopia of color because I had my yellow

880
01:03:10,690 --> 01:03:14,160
highlighter and my green highlighter and a little note scribbled in the margin that only

881
01:03:14,300 --> 01:03:14,960
I could read.

882
01:03:15,060 --> 01:03:16,720
And anyway, it worked for me. [Yeah, similar.]

883
01:03:17,480 --> 01:03:19,000
Did you do that too or not?

884
01:03:19,480 --> 01:03:26,880
[ADAM] Well, I like to print the papers and scribble on them, but then I tend to lose them after

885
01:03:26,900 --> 01:03:27,400
I print them.

886
01:03:27,640 --> 01:03:31,920
That's why I also keep the electronic copy, which is harder to lose.

887
01:03:33,680 --> 01:03:46,120
[CLAIRE] Yes. Well, impossible. I've lost things electronically, but yeah, a little bit harder to lose. I should probably link to the Socrates paper in the show notes. So I'll try to dig that up and cover that.

888
01:03:47,480 --> 01:03:57,140
You started to talk a minute ago about building things, architecting things, or how you did your work at a startup versus a big company like Microsoft.

889
01:03:57,690 --> 01:04:04,800
And I'm wondering if there's an onion to be peeled there, like architecting a database in a startup versus Microsoft.

890
01:04:05,740 --> 01:04:08,600
Is there something insightful to share on that?

891
01:04:09,600 --> 01:04:15,920
[ADAM] Yeah, I mean, startups versus big companies, I could probably talk on that for like an hour

892
01:04:15,940 --> 01:04:21,820
or something. I'll just put a few bullet points and see what is interesting. But yeah, startups,

893
01:04:22,380 --> 01:04:29,360
you have much more desperation. You maybe raised a seed round of a few million. These days,

894
01:04:29,440 --> 01:04:33,440
they tend to get a little bigger. Maybe it's 5 million or 10 million, but it still doesn't go that

895
01:04:33,460 --> 01:04:37,980
far when you want to hire an engineering team and have an office and whatnot. So you have a few

896
01:04:38,120 --> 01:04:43,420
years to ship something and get traction, which when building databases, databases are one of

897
01:04:43,420 --> 01:04:49,080
the slower things to build. It's not like a lot of other apps where you can kind of toss something

898
01:04:49,170 --> 01:04:53,960
over the fence database. We can't lose data. We have to have correctness. And so it's hard to go

899
01:04:54,180 --> 01:05:01,740
fast. So that is the biggest thing that you tend to have smaller, higher performing teams and

900
01:05:01,760 --> 01:05:06,400
startups because you have to. The startup just doesn't exist. You will just fail very quickly

901
01:05:06,470 --> 01:05:11,960
if you don't. And so you get these teams that work very hard and are very cohesive. They really

902
01:05:12,150 --> 01:05:15,760
believe in the mission you're on or they wouldn't join the startup. They would just leave.

903
01:05:16,480 --> 01:05:19,320
Where the big company, it's not that they don't have good engineers. It's like,

904
01:05:19,620 --> 01:05:26,380
there's lots of this. It's like a job. They do a good job. They put in their time and they just

905
01:05:26,500 --> 01:05:30,820
don't have quite the same passion. When I say startup, I mean early stage.

906
01:05:30,860 --> 01:05:37,320
Seed or Series A or Series B, like Databricks is not a startup in my definition.

907
01:05:37,580 --> 01:05:38,960
That's just a big private company.

908
01:05:39,110 --> 01:05:41,360
It's whatever they're at, 5,000 people.

909
01:05:43,580 --> 01:05:46,160
So that is one of the big differences.

910
01:05:46,460 --> 01:05:48,240
Smaller team, you have to move fast.

911
01:05:48,640 --> 01:05:52,240
And the teams tend to be much more cohesive than a big company.

912
01:05:52,780 --> 01:05:56,440
And you also ship faster and with a little lower quality.

913
01:05:56,500 --> 01:06:04,900
Like Microsoft, yeah, at the startup, because you have to.

914
01:05:57,620 --> 01:05:58,300
[CLAIRE] Wait, wait, wait.

915
01:05:58,520 --> 01:06:00,300
You ship faster and it lower quality.

916
01:06:00,500 --> 01:06:01,920
In which case?

917
01:06:05,040 --> 01:06:07,500
[ADAM] Again, you have to cut some corners somewhere.

918
01:06:09,240 --> 01:06:13,580
And you try to do it in spots that won't burn you or won't burn your customers,

919
01:06:14,400 --> 01:06:15,660
but you just don't have a choice.

920
01:06:15,760 --> 01:06:17,320
Whereas Microsoft won't do that.

921
01:06:17,520 --> 01:06:18,680
Like, big companies won't do that.

922
01:06:18,740 --> 01:06:22,780
We know when we put something out on Azure, it will get a lot of use very quickly.

923
01:06:23,360 --> 01:06:24,520
Startups, you're not sure.

924
01:06:24,600 --> 01:06:27,060
Maybe your thing will be viral and take off.

925
01:06:27,580 --> 01:06:28,020
Probably not.

926
01:06:28,300 --> 01:06:30,020
Probably you'll be fighting it out for many years.

927
01:06:30,080 --> 01:06:30,840
So you have some time.

928
01:06:31,600 --> 01:06:33,340
And so they're more willing to put something out there,

929
01:06:33,540 --> 01:06:34,320
see how it's used,

930
01:06:34,480 --> 01:06:36,140
know it maybe has some missing features

931
01:06:36,480 --> 01:06:38,020
or is really an extreme MVP.

932
01:06:39,260 --> 01:06:39,900
At big companies,

933
01:06:40,080 --> 01:06:41,960
they tend not to ship extreme MVPs.

934
01:06:42,280 --> 01:06:44,500
It's just like the quality bar

935
01:06:44,580 --> 01:06:46,580
for the initial product at a big company

936
01:06:46,740 --> 01:06:48,000
is much, much higher.

937
01:06:48,060 --> 01:06:49,640
So that makes it a little harder.

938
01:06:50,500 --> 01:06:53,080
And that's why sometimes people could look

939
01:06:53,100 --> 01:07:00,340
and say, "Oh, big companies are slower." And it's not always the case. They just have

940
01:07:00,340 --> 01:07:07,280
to ship more stuff. With HorizonDB, for example, we had to get customer managed keys and we

941
01:07:07,280 --> 01:07:12,600
had to get private endpoints and all these security features working immediately. Whereas

942
01:07:12,900 --> 01:07:19,000
at SingleStore in MemSQL, that's something we added in year three, four. We went many years

943
01:07:19,020 --> 01:07:24,560
without those features. Where Microsoft is just a requirement. They know their enterprise

944
01:07:24,940 --> 01:07:27,760
customers are going to want it. They know if you don't have it, you're going to have a bunch

945
01:07:27,760 --> 01:07:31,800
of angry customers immediately on the first day you ship it. So just don't ship without

946
01:07:31,930 --> 01:07:37,160
those features. It's pretty well a rule. Same with zone redundancy. Everything must be zone

947
01:07:37,360 --> 01:07:42,160
redundant in Azure, basically. Startups is not always the case. It's going to be zone redundant.

948
01:07:42,170 --> 01:07:48,380
If a full availability zone goes down, startup probably does not have the full zone redundancy

949
01:07:48,400 --> 01:07:54,140
built in, Azure definitely will. And that takes longer to build. It's not like that's a free thing.

950
01:07:54,940 --> 01:08:01,460
So that's one of the huge differences. Now, mind you, the split side of that is, so we have to build

951
01:08:01,680 --> 01:08:08,800
more of these features in Azure, but it has such the craziest thing to me coming here versus a

952
01:08:08,980 --> 01:08:15,100
startup. The startup we fought for 10 years to gain customers, you know, kind of tooth and nail.

953
01:08:15,160 --> 01:08:17,240
We're out there fighting for every customer.

954
01:08:17,420 --> 01:08:18,220
They're doing a POC.

955
01:08:18,270 --> 01:08:20,020
They're comparing us to 10 other systems.

956
01:08:20,270 --> 01:08:23,240
And you have to really convince them to use your system.

957
01:08:24,420 --> 01:08:26,180
Or Azure just has such incumbency.

958
01:08:27,240 --> 01:08:28,060
It's crazy.

959
01:08:28,279 --> 01:08:35,000
The amount of customers that will use it almost immediately, it's quite powerful.

960
01:08:35,839 --> 01:08:42,200
Your feedback loops can be very quick and tight because you're going to see a lot of feedback very quickly.

961
01:08:42,240 --> 01:08:45,160
where the startup, most startups, again, are not going to go hockey stick immediately.

962
01:08:46,470 --> 01:08:50,359
Even the ones like Databricks that did eventually become huge, like they had to fight for many,

963
01:08:50,500 --> 01:08:57,160
many years to become what they are today. So that's such a powerful thing. That's something

964
01:08:57,190 --> 01:09:01,839
a startup would just die for to have that kind of, hey, if I just ship something, I'll get whatever,

965
01:09:02,370 --> 01:09:06,720
a million Azure user eyeballs on it, or it's just something we can do with HorizonDB,

966
01:09:06,880 --> 01:09:13,160
like startups, there is no such way to do it. You have to fight it out. You're a brand new

967
01:09:13,839 --> 01:09:18,240
kind of brand that nobody knows what it is. Like MemSQL, nobody knew what we were.

968
01:09:18,900 --> 01:09:23,359
And even at the end, people didn't know what we were. So that was after 10 years.

969
01:09:27,540 --> 01:09:28,600
[CLAIRE] I'm going to pivot for a second.

970
01:09:28,900 --> 01:09:42,500
Let's say there's somebody listening who has decided they're going to work on databases, but is picking between a few different jobs or a few different projects if it's open source.

971
01:09:42,830 --> 01:09:44,060
And Postgres is one of them.

972
01:09:44,470 --> 01:09:47,580
Are there things about Postgres that you really like?

973
01:09:47,609 --> 01:09:54,520
Are there things about Postgres that would cause you to recommend it as a career path to a contributor or a developer? [Oh, yeah.]

974
01:09:56,580 --> 01:09:58,700
Gosh, I hope your answer is positive.

975
01:09:56,760 --> 01:09:56,960
[ADAM] Postgres.

976
01:09:59,200 --> 01:10:05,360
Yeah, I mean, it's maybe leading me on a bit there.

977
01:10:05,540 --> 01:10:07,740
But yeah, Postgres is extremely valuable.

978
01:10:09,660 --> 01:10:18,820
Postgres internals knowledge, the hyperscalers will pay a lot of money for that versus MySQL, right?

979
01:10:20,480 --> 01:10:24,020
Being a good database engine developer is a valuable thing in and of itself.

980
01:10:24,210 --> 01:10:26,720
It's not like that's an enormous community of engineers.

981
01:10:27,940 --> 01:10:33,580
But you combine that with Postgres and that's, yeah, you will have a lot of demand for your skills.

982
01:10:33,800 --> 01:10:42,600
If you have, you know, solid Postgres internals knowledge and you're a good systems developer, you, you know, you have years of experience in the industry.

983
01:10:42,720 --> 01:10:46,280
And Postgres, I think is, it's an interesting system.

984
01:10:46,500 --> 01:10:49,620
I mean, it's C.

985
01:10:49,760 --> 01:10:55,520
So you've got, you've got to like C and I've done most of my development in C++.

986
01:10:55,860 --> 01:11:02,700
So SQL Server is all C++ and MemSQL SingleStore was all C++ with a tiny bit of C.

987
01:11:03,720 --> 01:11:10,880
And so that's maybe a little bit, I mean, I feel like I'm in the 1970s or something when I'm looking at that code sometimes.

988
01:11:11,300 --> 01:11:13,040
But it's the same thing.

989
01:11:13,200 --> 01:11:17,340
It's just the dialect of the programming language feels a little old. But it's still the same stuff.

990
01:11:17,100 --> 01:11:23,220
[CLAIRE] Don't knock the 1970s. There's nothing other than the pants and the fashion. There was nothing wrong with the 70s.

991
01:11:25,780 --> 01:11:30,180
[ADAM] It's still the same types of algorithms and useful systems.

992
01:11:30,420 --> 01:11:32,080
Knowledge is all there in Postgres.

993
01:11:32,280 --> 01:11:37,240
It's just it's C instead of C++, which is like for database engine development,

994
01:11:37,310 --> 01:11:39,900
I don't know how many others are written in C these days.

995
01:11:41,300 --> 01:11:43,840
That would be maybe only one slight downside.

996
01:11:46,540 --> 01:11:49,100
[CLAIRE] You said as you were talking about this you said

997
01:11:49,860 --> 01:11:53,420
that it's being a good database engine developer is valuable.

998
01:11:53,510 --> 01:11:54,740
And if you combine that with Postgres

999
01:11:55,040 --> 01:11:56,600
and you're a good systems developer,

1000
01:11:57,550 --> 01:11:58,020
dot, dot, dot,

1001
01:11:58,260 --> 01:12:01,420
what does it mean to be a good systems developer?

1002
01:12:01,800 --> 01:12:04,540
If you were trying to hire someone

1003
01:12:05,080 --> 01:12:06,960
and assess if they're a good systems developer,

1004
01:12:07,120 --> 01:12:07,960
what does that mean?

1005
01:12:09,500 --> 01:12:11,760
[ADAM] Yeah, it tends to mean you're very paranoid.

1006
01:12:13,010 --> 01:12:17,280
Anything can go wrong and you need to care about all of those things all at once.

1007
01:12:17,600 --> 01:12:23,280
Usually the very, very best systems programmers are always thinking about the error cases, the

1008
01:12:23,420 --> 01:12:23,860
edge cases.

1009
01:12:24,300 --> 01:12:26,000
They're trying to solve things systematically.

1010
01:12:26,150 --> 01:12:28,020
There can be no room for bugs.

1011
01:12:28,860 --> 01:12:34,620
In Postgres, the worst kind of bugs, you either have wrong results to a customer.

1012
01:12:34,730 --> 01:12:38,220
So the customer app returns wrong results to their customer.

1013
01:12:38,230 --> 01:12:40,240
Who knows what kind of problem that can cause.

1014
01:12:40,250 --> 01:12:42,340
If it's a banking application, big, big problems.

1015
01:12:43,740 --> 01:12:46,440
Or it loses data, which is an even worse problem.

1016
01:12:46,620 --> 01:12:48,920
That's kind of the ultimate bad case.

1017
01:12:50,020 --> 01:12:54,280
And to avoid these, you have to really care about the quality of your system.

1018
01:12:55,290 --> 01:12:58,620
And it's not to say like developer off the street doesn't care about the quality.

1019
01:12:58,980 --> 01:13:00,120
It's hard to describe it.

1020
01:13:01,640 --> 01:13:05,000
If you send me a code review, I will put comments on your code review and you'll know

1021
01:13:05,120 --> 01:13:05,500
what I mean.

1022
01:13:06,510 --> 01:13:10,520
Do you like when you're thinking about your code, are you looking at all the contracts?

1023
01:13:10,610 --> 01:13:11,980
Are you asserting all the contracts?

1024
01:13:12,110 --> 01:13:15,460
Are you like making it as simple as you can possibly make it?

1025
01:13:16,040 --> 01:13:17,820
Are you thinking about how you can test it?

1026
01:13:18,060 --> 01:13:20,280
Are you layering it so we can test it in layers?

1027
01:13:20,510 --> 01:13:26,500
Are you writing interesting randomized test cases to try to exercise all the weird code

1028
01:13:26,620 --> 01:13:28,800
paths that could happen in your system?

1029
01:13:29,620 --> 01:13:32,060
That's what I mean by a good system programmer is going to do all those things.

1030
01:13:32,180 --> 01:13:32,960
They're not going to think about it.

1031
01:13:33,140 --> 01:13:34,420
It's just the way they do it.

1032
01:13:35,240 --> 01:13:41,180
Whereas if you take someone that's only built, say, control planes or web apps, they're not

1033
01:13:41,380 --> 01:13:45,240
going to think that way because maybe it's not a serious problem if the web app crashes.

1034
01:13:45,440 --> 01:13:46,520
Maybe the customer is a little ticked.

1035
01:13:46,590 --> 01:13:47,520
They refresh the browser.

1036
01:13:48,500 --> 01:13:50,420
As long as it's kind of rare, life goes on.

1037
01:13:51,140 --> 01:13:56,020
Whereas your database goes down, we can tell you very clearly you're going to have lots of angry customers.

1038
01:13:56,260 --> 01:14:02,040
So it's just like in the end, it's the focus on quality and just extreme precision.

1039
01:14:02,260 --> 01:14:04,860
You're always trying to think where could the bugs live?

1040
01:14:04,970 --> 01:14:07,420
How can I make the system more stable?

1041
01:14:07,530 --> 01:14:08,640
And also simplicity.

1042
01:14:08,790 --> 01:14:12,220
Is this the simplest way of building this thing?

1043
01:14:13,200 --> 01:14:15,280
Just because it works, is it the simplest way?

1044
01:14:15,340 --> 01:14:19,320
Can I simplify it? Will the simpler version have fewer bugs, have fewer error cases?

1045
01:14:20,920 --> 01:14:25,220
So that's kind of what I mean. People that have worked on Linux forever or Postgres forever,

1046
01:14:25,320 --> 01:14:30,600
that's the way their brain will think. Just out of experience.

1047
01:14:32,380 --> 01:14:35,580
[CLAIRE] Okay, that was my favorite part of this entire conversation,

1048
01:14:35,940 --> 01:14:41,600
which is not to say the rest of it was boring or uninteresting, but I just, everything you're

1049
01:14:41,690 --> 01:15:05,900
saying, I so resonate with. Oh, I love it.

1050
01:14:45,080 --> 01:14:46,500
[ADAM] Yeah, the folks you have on this show,

1051
01:14:46,660 --> 01:14:48,600
this is the way their brain thinks when they're typing code.

1052
01:14:48,720 --> 01:14:51,080
And it's not the way everyone thinks.

1053
01:14:51,520 --> 01:14:52,460
And you don't have to.

1054
01:14:52,600 --> 01:14:52,940
That's the thing.

1055
01:14:53,700 --> 01:14:55,640
You don't necessarily have to think that way

1056
01:14:55,720 --> 01:14:58,120
if you're building in different layers of the stack.

1057
01:14:58,220 --> 01:15:00,080
You're probably wasting your time thinking that way.

1058
01:15:01,000 --> 01:15:02,620
But for databases, it's required.

1059
01:15:05,920 --> 01:15:09,540
[CLAIRE] It also resonates for me having spent the formative part of my career in the kernel group at Sun Microsystems.

1060
01:15:09,940 --> 01:15:13,840
The philosophy that you're espousing was the philosophy we had in the kernel group.

1061
01:15:14,360 --> 01:15:15,680
And of course it is.

1062
01:15:15,790 --> 01:15:21,720
You think about the fact that someone might be running on top of my OS in an air traffic

1063
01:15:22,000 --> 01:15:22,380
control tower.

1064
01:15:23,000 --> 01:15:24,440
So damn, it better be right.

1065
01:15:26,440 --> 01:15:27,400
And it takes all that.

1066
01:15:27,680 --> 01:15:28,300
So let me ask you this.

1067
01:15:28,390 --> 01:15:31,660
You said, if you send me a code review, I will put comments on the code review.

1068
01:15:32,300 --> 01:15:36,540
Do you ever hold back like, oh, this person, they can't handle more than four or

1069
01:15:36,680 --> 01:15:37,080
five things.

1070
01:15:37,200 --> 01:15:38,480
It might be discouraging to them.

1071
01:15:39,060 --> 01:15:40,720
So I'm not going to mention the other issues.

1072
01:15:41,180 --> 01:15:42,000
Does that ever happen?

1073
01:15:42,160 --> 01:15:46,520
Or are you just complete and thorough in your review?

1074
01:15:47,240 --> 01:15:50,080
[ADAM] Yeah, I think you have to put the personal aside in code reviews.

1075
01:15:50,170 --> 01:15:51,080
I think that's...

1076
01:15:52,630 --> 01:15:56,820
If it's your code being reviewed or you're reviewing the other person's code, you're kind

1077
01:15:56,820 --> 01:15:57,520
of reviewing the code.

1078
01:15:57,590 --> 01:15:58,180
So that's the way I look.

1079
01:15:58,260 --> 01:16:00,020
I don't mind who sent it.

1080
01:16:01,620 --> 01:16:05,480
It's not like you're being rude or mean or anything, but if something, you know, there's

1081
01:16:05,480 --> 01:16:10,460
a simpler way of doing it, you just say, hey, did you think about it this way?

1082
01:16:10,580 --> 01:16:13,560
Because oftentimes the person did and then they'll have some feedback.

1083
01:16:13,640 --> 01:16:14,520
Oh, yeah, it didn't work out.

1084
01:16:15,280 --> 01:16:15,780
Or they didn't.

1085
01:16:15,920 --> 01:16:18,180
And then it's, you know, let me explore that idea.

1086
01:16:18,340 --> 01:16:22,600
I think it's better just to say to people, you're reviewing the code.

1087
01:16:22,720 --> 01:16:28,200
And I think broadly speaking, these days, most people don't get too angry in code reviews.

1088
01:16:28,760 --> 01:16:37,700
I mean, outside of stupid style things, on the structure of the code, usually the arguments are on fact.

1089
01:16:38,500 --> 01:16:40,340
Is this simpler code?

1090
01:16:40,580 --> 01:16:42,300
Usually it's obvious.

1091
01:16:42,550 --> 01:16:45,700
You know, it's either half the lines of code

1092
01:16:45,730 --> 01:16:47,240
or the data structures are far simpler.

1093
01:16:47,440 --> 01:16:48,620
It's a factual thing.

1094
01:16:49,080 --> 01:16:52,360
But for style things, this is where it gets a little touchy.

1095
01:16:54,500 --> 01:16:58,560
And that's where I like Rust because Rust, the style is built in.

1096
01:16:58,670 --> 01:17:03,220
There's a formatter and there's this program called Clippy

1097
01:17:03,870 --> 01:17:05,120
that checks even extra things.

1098
01:17:05,230 --> 01:17:06,320
And we just say run those.

1099
01:17:06,540 --> 01:17:07,080
That's our style.

1100
01:17:07,260 --> 01:17:10,460
Let's not argue in code review about style, tabs versus spaces

1101
01:17:10,760 --> 01:17:13,160
or whatever the style might be.

1102
01:17:13,240 --> 01:17:15,900
Or your lines are too long, your functions are too long.

1103
01:17:16,000 --> 01:17:17,580
We're like, no, we're not going to argue about this stuff.

1104
01:17:18,380 --> 01:17:19,580
We're going to run the Rust tools.

1105
01:17:19,800 --> 01:17:21,740
If the Rust tools say it's fine, it's fine.

1106
01:17:22,080 --> 01:17:25,840
Let's just argue about the code that's in a meaningful way.

1107
01:17:28,180 --> 01:17:33,400
[CLAIRE] It's interesting how style plays a role in almost any language. Like I'm just thinking about the

1108
01:17:33,510 --> 01:17:40,020
English language and the Oxford comma or the em dash. And does the em dash have the spaces between

1109
01:17:40,340 --> 01:17:44,480
it and the words? And of course the answer to that is no, it does not. The em dash should touch

1110
01:17:44,500 --> 01:17:48,900
the words on both sides, but you know, yeah, it's everywhere, I guess.

1111
01:17:47,920 --> 01:17:47,960
[ADAM] Yes.

1112
01:17:49,370 --> 01:17:50,780
Yeah, those things can get religious.

1113
01:17:51,030 --> 01:17:53,340
And that's why it's not argue about style.

1114
01:17:53,520 --> 01:17:57,680
Let's just argue about actual problems in the code.

1115
01:17:59,260 --> 01:18:05,740
[CLAIRE] Got it. Okay. So the topic for today, let's see if you think we covered it well enough or not.

1116
01:18:06,030 --> 01:18:11,160
It was from MemSQL to HorizonDB, an engineer's journey. So you are the engineer in question.

1117
01:18:11,660 --> 01:18:16,560
Is there anything else about your journey that you wish I had asked you about that I didn't?

1118
01:18:17,020 --> 01:18:17,940
Did I forget anything?

1119
01:18:18,580 --> 01:18:19,980
[ADAM] No, I think we did a good job.

1120
01:18:20,090 --> 01:18:21,040
Yeah, I don't think we talked.

1121
01:18:21,200 --> 01:18:24,480
The one thing we didn't talk about, I don't know if this is a controversial topic, I don't

1122
01:18:24,480 --> 01:18:27,080
have much to say about it anyways, but I have written code.

1123
01:18:28,230 --> 01:18:31,800
I haven't contributed to open source Postgres, but obviously we have a private fork.

1124
01:18:31,930 --> 01:18:33,200
I've written code in that.

1125
01:18:33,920 --> 01:18:39,000
I've written code in the MySQL ecosystem because MemSQL again, we were MySQL compatible

1126
01:18:39,070 --> 01:18:40,400
and then the SQL Server ecosystem.

1127
01:18:40,450 --> 01:18:46,640
So I've written code in the three of the top five most popular databases, if you believe

1128
01:18:46,760 --> 01:18:48,700
dbengines.com, which I mentioned earlier.

1129
01:18:49,800 --> 01:18:57,960
And they're actually similar in the big ways, but the way those systems implement things

1130
01:18:58,200 --> 01:18:59,100
are quite different.

1131
01:18:59,560 --> 01:19:04,320
So I don't know if that's a topic of interest, but that's the only other thing I was thinking about.

1132
01:19:04,500 --> 01:19:05,640
[CLAIRE] I, you know, it's so funny.

1133
01:19:05,840 --> 01:19:07,240
I do have a list.

1134
01:19:08,060 --> 01:19:11,580
I call it my safety net of questions.

1135
01:19:11,810 --> 01:19:12,800
I don't always ask them all.

1136
01:19:13,230 --> 01:19:15,300
And the one at the bottom that I didn't ask was,

1137
01:19:15,700 --> 01:19:17,280
what are the differences between systems?

1138
01:19:17,460 --> 01:19:19,860
SQL Server versus MySQL versus Postgres.

1139
01:19:20,340 --> 01:19:21,160
At a high level,

1140
01:19:21,460 --> 01:19:22,560
is there anything interesting

1141
01:19:22,680 --> 01:19:24,680
you want to share with people?

1142
01:19:25,540 --> 01:19:37,420
So tell me. You said they're similar in big ways, but...

1143
01:19:27,120 --> 01:19:45,100
[ADAM] Yeah, let's just talk about it really quickly. I think the interesting thing for me about those three systems is you can tell the culture of the engineers that originally started those systems, or at least that have impacted the culture that currently exists around the engineers that build them.

1144
01:19:45,210 --> 01:19:47,580
So, MySQL is kind of the Wild West.

1145
01:19:49,400 --> 01:19:54,300
Its code is a little rough in the front end, and it just tries to make things work.

1146
01:19:55,340 --> 01:19:58,160
And it's willing to like bend the rules to make them work.

1147
01:19:58,210 --> 01:20:03,520
So it's kind of like it was designed for people who want to type code and get angry if it gives an error.

1148
01:20:03,750 --> 01:20:08,980
Even if MySQL did a weird thing, it'll do something weird as opposed to give you an error.

1149
01:20:09,160 --> 01:20:18,140
And for like, again, systems programmers, this is terrible because you can accidentally insert something into your table that you really didn't expect.

1150
01:20:18,450 --> 01:20:22,100
Because MySQL is like, hmm, you tried to insert a string into a double column.

1151
01:20:23,180 --> 01:20:24,720
Let me just try to do that conversion.

1152
01:20:24,900 --> 01:20:26,300
And the start of it is a bunch of numbers.

1153
01:20:26,480 --> 01:20:27,920
And oh, that's probably what you meant.

1154
01:20:27,940 --> 01:20:29,320
But you have ABCD at the end.

1155
01:20:29,400 --> 01:20:31,060
I'll just ignore those and insert the number.

1156
01:20:31,620 --> 01:20:35,220
It does things like this, which that's kind of dangerous

1157
01:20:35,500 --> 01:20:38,300
because it lets customers have little bugs in their code.

1158
01:20:38,520 --> 01:20:40,520
And now MySQL folks have tried to fix this over the years.

1159
01:20:40,600 --> 01:20:41,660
They added strict mode.

1160
01:20:42,100 --> 01:20:45,600
And I've lost track of what's in MySQL 9 now.

1161
01:20:46,280 --> 01:20:48,760
But the early MySQL, it's kind of the Wild West.

1162
01:20:48,940 --> 01:20:50,560
Let's just try to make this system work.

1163
01:20:50,720 --> 01:20:52,060
Let's not give errors to the user

1164
01:20:52,280 --> 01:20:53,760
because that makes them angry, apparently.

1165
01:20:54,340 --> 01:20:55,800
Postgres is the exact opposite of this.

1166
01:20:56,020 --> 01:20:57,820
We're going to be very ANSI standard.

1167
01:20:58,060 --> 01:21:00,580
We're going to stick to what's in the standard.

1168
01:21:00,780 --> 01:21:02,320
We're not going to invent weird behaviors.

1169
01:21:03,380 --> 01:21:04,360
We're going to give you errors.

1170
01:21:05,620 --> 01:21:07,420
And that maybe holds Postgres back.

1171
01:21:07,560 --> 01:21:09,320
Because some of the stuff in MySQL is kind of nice.

1172
01:21:09,460 --> 01:21:12,340
It's not in the standard, some of the non-weird stuff.

1173
01:21:13,060 --> 01:21:15,340
But Postgres will tend to try to stick to the standard,

1174
01:21:15,600 --> 01:21:21,180
try not to add too weird features that aren't in the standard,

1175
01:21:22,360 --> 01:21:25,020
be much more conservative around what they're going to add.

1176
01:21:25,410 --> 01:21:27,320
And so you get a little cleaner surface area,

1177
01:21:27,630 --> 01:21:30,260
much cleaner surface area than MySQL.

1178
01:21:30,390 --> 01:21:31,300
So that's the culture.

1179
01:21:31,410 --> 01:21:33,740
You can tell the people making the decisions, right?

1180
01:21:34,240 --> 01:21:36,120
It's not even the structure of the code.

1181
01:21:36,280 --> 01:21:37,720
It's like the people making the decisions.

1182
01:21:37,940 --> 01:21:39,320
How are we going to build this thing?

1183
01:21:40,200 --> 01:21:40,840
Completely different.

1184
01:21:41,240 --> 01:21:42,920
And SQL Server is different again.

1185
01:21:44,340 --> 01:21:48,180
SQL Server was a reaction to Oracle at the time.

1186
01:21:48,270 --> 01:21:49,840
And Oracle has a million knobs,

1187
01:21:50,300 --> 01:21:52,880
an unbelievable number of knobs.

1188
01:21:53,060 --> 01:21:54,200
And if you know how to tune them,

1189
01:21:54,260 --> 01:21:56,780
you can make Oracle go very fast for a given workload.

1190
01:21:57,820 --> 01:21:59,060
And SQL Server was like, no, no,

1191
01:21:59,160 --> 01:22:00,800
we don't want to have a million knobs.

1192
01:22:00,960 --> 01:22:03,540
We don't want to have to hire an expensive consultant

1193
01:22:03,680 --> 01:22:05,160
to come in and tune my system.

1194
01:22:05,920 --> 01:22:08,340
And so SQL Server is extremely adaptive.

1195
01:22:08,700 --> 01:22:10,240
It's the most adaptive of the three,

1196
01:22:10,360 --> 01:22:13,580
as far as like you can throw a random workload at it

1197
01:22:13,580 --> 01:22:15,200
and it'll try to shrink its buffer pool.

1198
01:22:15,400 --> 01:22:19,360
And it'll try to cause some big query to wait

1199
01:22:19,380 --> 01:22:21,280
if it thinks that query is going to use too much memory

1200
01:22:21,460 --> 01:22:22,400
and it would need to fail it.

1201
01:22:22,800 --> 01:22:24,480
These are things my SQL and Postgres doesn't have.

1202
01:22:24,600 --> 01:22:25,160
They're just like, "Ah, whatever.

1203
01:22:25,580 --> 01:22:26,600
Let's fail the query.

1204
01:22:27,120 --> 01:22:28,480
Let's not try to shrink our buffer pool.

1205
01:22:29,140 --> 01:22:30,060
Let's have a bunch of knobs.

1206
01:22:30,260 --> 01:22:32,080
Maybe you can tune how many queries you're running

1207
01:22:32,240 --> 01:22:35,320
or tune how many amount of memory per query."

1208
01:22:35,320 --> 01:22:37,380
Where SQL Server will try to make it very dynamic,

1209
01:22:37,590 --> 01:22:38,120
very adaptive.

1210
01:22:38,400 --> 01:22:40,520
It's quite nice.

1211
01:22:40,590 --> 01:22:42,520
I think Postgres should pick some of these things up.

1212
01:22:42,650 --> 01:22:43,680
I honestly, you know,

1213
01:22:43,760 --> 01:22:45,320
I've been talking to a few people at some point,

1214
01:22:45,400 --> 01:22:46,820
it's just because it's kind of just goodness.

1215
01:22:46,980 --> 01:22:48,200
The code is a little harder to write.

1216
01:22:48,280 --> 01:22:51,200
It's harder, it's easier to put a knob in the code and say, "Hey, a customer tune

1217
01:22:51,380 --> 01:22:56,000
this," as opposed to have a knob that you can override and the default is like auto or

1218
01:22:56,120 --> 01:22:57,520
something and the system tries to adapt.

1219
01:22:58,600 --> 01:23:02,980
And that, and you have to be careful because you know, it can adapt in very

1220
01:23:03,180 --> 01:23:03,740
negative ways.

1221
01:23:03,820 --> 01:23:07,740
So SQL Server had to build this stuff up over many years, just seeing where it succeeded

1222
01:23:07,840 --> 01:23:10,420
and failed, but honestly, they're not doing something fancy.

1223
01:23:10,460 --> 01:23:11,660
It's not like this is AI or something.

1224
01:23:11,700 --> 01:23:12,700
They're like really super adaptive.

1225
01:23:12,780 --> 01:23:14,520
It was like fairly simple algorithms.

1226
01:23:14,620 --> 01:23:16,560
They just took the time to build them.

1227
01:23:17,100 --> 01:23:18,720
So anyways, that's the high level of the three, I would say.

1228
01:23:18,980 --> 01:23:20,480
It's more the culture than the code.

1229
01:23:20,600 --> 01:23:23,680
The code, I don't know, you can probably figure out all three of them.

1230
01:23:23,780 --> 01:23:24,740
You'll see similar components.

1231
01:23:25,060 --> 01:23:30,220
But the decision-making culture, if you try to add a knob to SQL Server,

1232
01:23:30,380 --> 01:23:31,000
they're going to tell you no.

1233
01:23:31,560 --> 01:23:32,600
They're going to argue with you, right?

1234
01:23:32,760 --> 01:23:33,740
Why is this knob here?

1235
01:23:33,860 --> 01:23:34,400
Why do you need it?

1236
01:23:36,000 --> 01:23:39,600
Where I don't think you would get such pushback in the other communities quite

1237
01:23:39,770 --> 01:23:40,920
as aggressively, for example.

1238
01:23:42,800 --> 01:23:48,620
[CLAIRE] I think the decision-making culture being visible in the software and the feature set is a really

1239
01:23:48,960 --> 01:23:54,720
interesting concept. And it's, yeah, it's probably true.

1240
01:23:54,000 --> 01:23:54,860
[ADAM] Yeah, that's exactly it.

1241
01:23:55,350 --> 01:23:59,780
Yeah, it's how the systems are evolving, the community of folks kind of making those decisions.

1242
01:24:01,060 --> 01:24:05,900
[CLAIRE] Now, many of the people that listen to this podcast are already Postgres users or Postgres

1243
01:24:05,920 --> 01:24:12,060
contributors are somehow connected to the project or to the technology at least. But

1244
01:24:14,780 --> 01:24:22,080
where was I going with that? If you're not familiar, the mailing lists are all public for

1245
01:24:22,160 --> 01:24:28,280
Postgres. So you could actually have a front row seat to watching the decisions get made on the

1246
01:24:28,390 --> 01:24:35,880
pgsql-hackers mailing list, for example. But it's not for the faint of heart. The discussions are

1247
01:24:35,880 --> 01:24:56,100
And I actually think it's because a lot of the decision making on Postgres is, first of all, it's global. It's asynchronous. There are committer meetings, developer meetings, just twice a year that are in person for a subset of the committers, whoever's there at FOSDEM or whoever's at PGConf.dev in Vancouver.

1248
01:24:57,580 --> 01:25:13,140
But a lot of the rest of it is all done via email. And so you actually have to be a good communicator in writing in English, I think, to be an effective contributor. I think it's fair to say that. I can't imagine how you would do it otherwise.

1249
01:25:14,900 --> 01:25:21,980
There is a Discord group now for the Postgres hackers that does exist that I can add a link to in the show notes as well.

1250
01:25:22,700 --> 01:25:24,520
So that's nice, particularly for new people.

1251
01:25:25,240 --> 01:25:29,780
It may be a little less intimidating to ask a question on Discord than it is in the mailing list.

1252
01:25:28,600 --> 01:25:29,020
[ADAM] Yeah, definitely.

1253
01:25:30,230 --> 01:25:31,480
Yeah, that's a very good point, Claire.

1254
01:25:31,580 --> 01:25:33,780
The other two, both SQL Server and MySQL,

1255
01:25:33,850 --> 01:25:35,320
all the decision-making is private.

1256
01:25:36,180 --> 01:25:39,300
MySQL is open source, but it's not really open.

1257
01:25:39,500 --> 01:25:41,260
It's open source in license only.

1258
01:25:41,440 --> 01:25:43,340
All the decision making is inside of Oracle.

1259
01:25:44,620 --> 01:25:46,900
So you can't really see what they're deciding to do.

1260
01:25:47,000 --> 01:25:50,600
I can you can just see the results of it or at least with Postgres, you can watch it.

1261
01:25:50,720 --> 01:25:54,980
Like you said, you can see exactly why some feature was designed that way if you want.

1262
01:25:55,560 --> 01:25:56,500
All the details are there.

1263
01:25:57,240 --> 01:26:01,660
[CLAIRE] And the history is there too. So it's not just the current conversation, the last year or whatever.

1264
01:26:01,750 --> 01:26:09,180
You can go back 10 years, 15 years. And, yeah, it's a great place to learn if you talk

1265
01:26:09,300 --> 01:26:15,540
to today's committers and contributors. Many of them got started by watching the mailing list,

1266
01:26:15,690 --> 01:26:19,240
reading the mailing list, getting involved in patch review, reviewing other people's patches

1267
01:26:19,260 --> 01:26:22,200
long before they ever proposed their first patch

1268
01:26:23,500 --> 01:26:24,840
and submitted it.

1269
01:26:25,060 --> 01:26:28,060
So it does, that transparent openness

1270
01:26:28,680 --> 01:26:29,380
can help people learn.

1271
01:26:30,380 --> 01:26:32,340
But you got to be able to digest that information

1272
01:26:32,640 --> 01:26:33,960
and read it and process it. [Yeah, makes sense.]

1273
01:26:34,140 --> 01:26:35,960
So, all right.

1274
01:26:37,200 --> 01:26:39,960
Well, thank you so much, Adam, for coming on the show.

1275
01:26:40,120 --> 01:26:43,980
I'm really excited that you made the time.

1276
01:26:45,040 --> 01:26:47,120
Congratulations on what you've done so far

1277
01:26:47,260 --> 01:26:48,280
with Azure HorizonDB.

1278
01:26:48,960 --> 01:26:56,080
I'm looking forward to when I can read the docs pages when it's in preview and they'll be public.

1279
01:26:53,619 --> 01:26:54,760
[ADAM] Soon, soon.

1280
01:26:56,960 --> 01:26:57,220
Yep.

1281
01:26:57,900 --> 01:27:04,340
[CLAIRE] So, and you haven't done, PR is not part of your job. This is not PR, of course,

1282
01:27:04,600 --> 01:27:09,380
but you're not on a ton of podcasts. So I feel special for you joining us here.

1283
01:27:08,220 --> 01:27:08,660
[ADAM] Thanks.

1284
01:27:09,130 --> 01:27:10,540
No, I'm not a big podcaster.

1285
01:27:10,680 --> 01:27:13,020
You're right. I'm usually busy typing code.

1286
01:27:11,500 --> 01:27:17,080
[CLAIRE] As evidenced by the fact that you didn't actually have a good microphone,

1287
01:27:18,540 --> 01:27:20,760
which we found out when we did the tech check.

1288
01:27:21,160 --> 01:27:22,980
So now you do, which is great.

1289
01:27:23,180 --> 01:27:24,960
It means somebody else can invite you on their podcast.

1290
01:27:25,340 --> 01:27:25,780
There you go.

1291
01:27:26,240 --> 01:27:26,720
[ADAM] I'm ready.

1292
01:27:26,480 --> 01:27:27,200
[CLAIRE] Open invitation.

1293
01:27:27,540 --> 01:27:28,820
Adam can thank me later.

1294
01:27:31,700 --> 01:27:34,180
So thank you, Adam, for joining us.

1295
01:27:35,240 --> 01:27:37,160
And if you like today's episode

1296
01:27:37,400 --> 01:27:39,880
and you want to hear more of these Talking Postgres episodes,

1297
01:27:40,300 --> 01:27:43,420
you should subscribe on Apple, Spotify, YouTube,

1298
01:27:44,060 --> 01:27:45,700
or wherever you get your podcasts.

1299
01:27:46,140 --> 01:27:51,160
And please tell your friends because word of mouth is gold in the podcast world.

1300
01:27:51,730 --> 01:27:56,360
You can always get to past episodes and get links to subscribe on the different platforms

1301
01:27:56,880 --> 01:27:58,640
at TalkingPostgres.com.

1302
01:27:59,180 --> 01:28:04,120
And we include transcripts on all the episode pages on TalkingPostgres.com too, for those

1303
01:28:04,150 --> 01:28:06,920
of you who prefer to read rather than listen.

1304
01:28:07,420 --> 01:28:12,000
A big thank you to everybody who joined today's live recording and participated in the text

1305
01:28:12,180 --> 01:28:12,840
chat on Discord.