WEBVTT

NOTE S4 E11: Engineering Fast Materialized Views: Sub-Second Queries Over Live Streams with Arjun Narayan

1
00:00:01.700 --> 00:00:07.260
<v Arjun Narayan>I think the biggest wow factor for us right now is, you know, like you could connect

2
00:00:07.260 --> 00:00:12.700
<v Arjun Narayan>Materialize to 10 or 12 different streams of data and just join them all together and

3
00:00:12.700 --> 00:00:17.380
<v Arjun Narayan>you just sort of hit enter and you will just start getting streaming join results out on

4
00:00:17.380 --> 00:00:21.540
<v Arjun Narayan>your terminal. And no other tool really has that response time. There's plenty of tools

5
00:00:21.540 --> 00:00:25.220
<v Arjun Narayan>that will do this in batch where you can sort of define this query and then sort of go off

6
00:00:25.220 --> 00:00:29.400
<v Arjun Narayan>for lunch and come back later and then you get your answer. But that instant snappiness

7
00:00:30.000 --> 00:00:35.320
<v Arjun Narayan>we focused on because that really shows the power like right there in the first 10 minutes of using

8
00:00:35.320 --> 00:00:42.020
<v Arjun Narayan>a product. I'm Arjun Narayan. I'm co-founder and CEO of Materialize.

9
00:00:47.700 --> 00:00:52.860
<v Noah Labhart>This is Code Story, a podcast bringing you interviews with tech visionaries

10
00:00:52.860 --> 00:00:54.380
<v Noah Labhart>who share

11
00:00:54.380 --> 00:00:57.120
<v Noah Labhart>in the critical moments of what it takes to change an industry

12
00:00:57.120 --> 00:01:05.100
<v Noah Labhart>streak and build and lead a team that has your back. I'm your host Noah Labhart and today how

13
00:01:05.100 --> 00:01:11.760
<v Noah Labhart>Arjun Narayan convinced his team to commercialize the best database for streaming data.

14
00:01:13.420 --> 00:01:15.860
<v Noah Labhart>All this and more on Code Story.

15
00:01:19.500 --> 00:01:25.320
<v Noah Labhart>Arjun Narayan grew up in India programming as a kid. He came to America for college thrown into

16
00:01:27.400 --> 00:01:32.420
<v Noah Labhart>He studied computer science at Williams College in Massachusetts and did his PhD at Penn,

17
00:01:32.620 --> 00:01:36.360
<v Noah Labhart>focusing on distributed systems, security, privacy, and scalability.

18
00:01:36.660 --> 00:01:41.640
<v Noah Labhart>His doctorate taught him how to write at length, but out of the norm he knew early on he didn't

19
00:01:41.640 --> 00:01:42.420
<v Noah Labhart>want to be an academic.

20
00:01:43.080 --> 00:01:46.780
<v Noah Labhart>He's married with a young son and he really enjoys being a father.

21
00:01:47.300 --> 00:01:51.740
<v Noah Labhart>Today his life consists of his startup and his young family, which are about the same

22
00:01:51.740 --> 00:01:52.240
<v Noah Labhart>age.

23
00:01:52.980 --> 00:02:01.160
<v Noah Labhart>As he was a grad student doing his PhD, he came across a set of papers written by his co-founder about a more capable incremental compute engine.

24
00:02:02.040 --> 00:02:08.260
<v Noah Labhart>After several years of persuasion, Arjun convinced him that they needed to start a company to commercialize the solution.

25
00:02:09.440 --> 00:02:12.400
<v Noah Labhart>This is the creation story of Materialize.

26
00:02:14.960 --> 00:02:21.040
<v Arjun Narayan>So Materialize is a database built to work with streaming data.

27
00:02:22.000 --> 00:02:28.940
<v Arjun Narayan>data, if you're not familiar, is data that is changing very fast. Think milliseconds. The old

28
00:02:28.940 --> 00:02:33.320
<v Arjun Narayan>school way, if you sort of rewind the clock a couple decades, what you would find is there

29
00:02:33.320 --> 00:02:37.560
<v Arjun Narayan>are databases that are very optimized for writing things down very quickly. These would be called

30
00:02:37.560 --> 00:02:44.580
<v Arjun Narayan>transactional databases, Oracle, Microsoft SQL servers. And then you'd have these analytical

31
00:02:44.580 --> 00:02:50.380
<v Arjun Narayan>databases that would get these overnight dumps of data, where they would compute more sophisticated

32
00:02:52.000 --> 00:02:54.460
<v Arjun Narayan>to produce reports, charts, Power BI tools.

33
00:02:54.660 --> 00:02:57.360
<v Arjun Narayan>But fundamentally, those analytical databases

34
00:02:57.360 --> 00:03:00.680
<v Arjun Narayan>were designed to process their data,

35
00:03:00.780 --> 00:03:02.700
<v Arjun Narayan>roughly speaking, overnight, right?

36
00:03:02.760 --> 00:03:05.440
<v Arjun Narayan>So you could maybe push this to three or four times a day,

37
00:03:05.620 --> 00:03:09.280
<v Arjun Narayan>but analytical databases operate on large data sets

38
00:03:09.280 --> 00:03:11.680
<v Arjun Narayan>that are updated very infrequently.

39
00:03:11.960 --> 00:03:15.240
<v Arjun Narayan>The trade-off here is if you have complex queries

40
00:03:15.240 --> 00:03:17.380
<v Arjun Narayan>that need to be up-to-date,

41
00:03:17.420 --> 00:03:20.160
<v Arjun Narayan>sort of second-by-second or minute-by-minute,

42
00:03:22.100 --> 00:03:27.200
<v Arjun Narayan>a database that would help you get there. And you'd find a lot of folks who have those needs

43
00:03:27.200 --> 00:03:34.300
<v Arjun Narayan>build and operate massive distributed systems that they custom build by hand. This is, you know,

44
00:03:34.320 --> 00:03:40.340
<v Arjun Narayan>100 times more manual, labor intensive than using a database that does a lot of the heavy lifting

45
00:03:40.340 --> 00:03:46.820
<v Arjun Narayan>for you. Materialize is a database built from the ground up to be able to ingest changes to

46
00:03:46.820 --> 00:03:53.060
<v Arjun Narayan>the data set millisecond by millisecond at extremely high volume and keep answers updated

47
00:03:53.060 --> 00:03:58.740
<v Arjun Narayan>ahead of time so that you don't have to essentially wait till tomorrow morning to get the refresh of

48
00:03:58.740 --> 00:04:03.920
<v Arjun Narayan>the new data points incorporated. There's obvious applications to this. A great example is probably

49
00:04:03.920 --> 00:04:08.560
<v Arjun Narayan>the finance application, sort of obvious, but it's much beyond that, right? Anybody who

50
00:04:08.560 --> 00:04:16.540
<v Arjun Narayan>fundamentally has a business process that is gated on updating views of the latest pieces of

51
00:04:16.820 --> 00:04:24.060
<v Arjun Narayan>from supply chain to logistics to advertising to personalization, all of these different

52
00:04:24.060 --> 00:04:29.600
<v Arjun Narayan>industries really do benefit from operating on the latest and greatest piece of information

53
00:04:29.600 --> 00:04:35.820
<v Arjun Narayan>rather than trying to work off of yesterday's information or spend a lot of effort predicting

54
00:04:36.720 --> 00:04:41.320
<v Arjun Narayan>data that the left hand of the organization already knows, but it hasn't gotten around

55
00:04:41.320 --> 00:04:42.020
<v Arjun Narayan>to the right hand yet.

56
00:04:42.020 --> 00:04:52.220
<v Arjun Narayan>So right now it has to expend immense amounts of effort to sort of predict things that they could just stream from other parts of the organization if they had the capability to do so.

57
00:04:52.600 --> 00:05:03.940
<v Noah Labhart>I'm familiar with sockets and database. Tell me how Materialize is different from a sockets type setup or like a subscription type setup, or is it similar? Tell me a little bit more about that.

58
00:05:03.940 --> 00:05:04.440
<v Noah Labhart>that.

59
00:05:04.500 --> 00:05:08.800
<v Arjun Narayan>You've highlighted one aspect of moving data around in real time, which is the data movement,

60
00:05:08.940 --> 00:05:12.840
<v Arjun Narayan>right? Which is just getting the data from point A to point B in a few milliseconds. And that the

61
00:05:12.840 --> 00:05:18.540
<v Arjun Narayan>transport layer is absolutely an important prerequisite part of a real-time data strategy.

62
00:05:19.040 --> 00:05:25.460
<v Arjun Narayan>Tools like Apache Kafka have greatly simplified moving the data around from point A to point B.

63
00:05:25.660 --> 00:05:30.660
<v Arjun Narayan>But where there still is a gap, and this is the gap that Materialize hopes to close,

64
00:05:30.660 --> 00:05:36.560
<v Arjun Narayan>is the tooling around making it simple to manipulate these streams of data and do these

65
00:05:36.560 --> 00:05:42.120
<v Arjun Narayan>more complex analyses using the tools and techniques that people have been familiar with.

66
00:05:42.340 --> 00:05:47.540
<v Arjun Narayan>And mainly this is SQL, right? So today when we think I have a large data set, it's fairly complex,

67
00:05:47.620 --> 00:05:52.520
<v Arjun Narayan>it's structured, there's lots of different data points, and I want to use some tools to do the

68
00:05:52.520 --> 00:05:57.520
<v Arjun Narayan>heavy lifting of the actual compute, people typically reach for a SQL database. The problem

69
00:05:57.520 --> 00:06:03.880
<v Arjun Narayan>is sort of old school SQL databases are not designed to be quickly updating their answers

70
00:06:03.880 --> 00:06:07.580
<v Arjun Narayan>as the underlying data changes. They pretty much throw out their answers and start start

71
00:06:07.580 --> 00:06:14.560
<v Arjun Narayan>recomputing once the new piece of a new data point comes in. Materialize is sort of designed to be

72
00:06:14.560 --> 00:06:19.820
<v Arjun Narayan>this compute layer so we don't deal in the moving the data from point A to point B, right? Yet there's

73
00:06:19.820 --> 00:06:25.280
<v Arjun Narayan>this, there's plenty of mature tooling there. We deal in the once you've moved that data to us

74
00:06:25.280 --> 00:06:31.500
<v Arjun Narayan>once you point those firehose of fast changing data to Materialize, we can keep the SQL queries

75
00:06:31.500 --> 00:06:36.720
<v Arjun Narayan>up to date even if the update volume is, you know, this is hundreds of thousands of new data points

76
00:06:36.720 --> 00:06:41.840
<v Arjun Narayan>coming in per second. It's really about performance and speed. It's not so much the pipes, it's the

77
00:06:41.840 --> 00:06:47.920
<v Arjun Narayan>end point where you would point these pipes to that would give you the most leverage. The way

78
00:06:47.920 --> 00:06:53.240
<v Arjun Narayan>Materialize came about was actually as I was a grad student doing my PhD, I came across a set of

79
00:06:53.240 --> 00:06:55.820
<v Arjun Narayan>of papers written by who is now my co-founder,

80
00:06:55.940 --> 00:06:59.880
<v Arjun Narayan>Frank McSherry, about the massively more capable,

81
00:07:00.160 --> 00:07:03.220
<v Arjun Narayan>completely new incremental compute engine.

82
00:07:04.140 --> 00:07:05.840
<v Arjun Narayan>He'd been writing these theoretical papers,

83
00:07:06.020 --> 00:07:07.820
<v Arjun Narayan>which were groundbreaking and award-winning,

84
00:07:07.980 --> 00:07:09.320
<v Arjun Narayan>and he'd been doing some of this research

85
00:07:09.320 --> 00:07:11.180
<v Arjun Narayan>at Microsoft Research, where he was,

86
00:07:11.400 --> 00:07:13.160
<v Arjun Narayan>and then later on as an independent academic

87
00:07:13.160 --> 00:07:14.260
<v Arjun Narayan>at a few universities.

88
00:07:14.860 --> 00:07:16.720
<v Arjun Narayan>These papers were really describing

89
00:07:16.720 --> 00:07:20.640
<v Arjun Narayan>a very transformational way to do incremental compute

90
00:07:20.640 --> 00:07:25.240
<v Arjun Narayan>when the rates of change of the data are very, very fast and very, very large in volume.

91
00:07:25.840 --> 00:07:29.620
<v Arjun Narayan>I was fascinated and thought this was sort of obviously commercializable.

92
00:07:29.840 --> 00:07:34.960
<v Arjun Narayan>He was more of an academic who wasn't as interested in the commercialization aspects

93
00:07:34.960 --> 00:07:40.800
<v Arjun Narayan>and was sort of deeply involved in the theoretical and practical aspects of building such a system.

94
00:07:41.300 --> 00:07:48.120
<v Arjun Narayan>And it took several years to convince him that commercialization was the correct step to advance this technology.

95
00:07:48.120 --> 00:07:58.400
<v Arjun Narayan>And that's really sort of the genesis of Materialize is it took a certain number of years to convince him that, you know, we should start a company.

96
00:08:01.200 --> 00:08:08.380
<v Noah Labhart>Let's jump into the MVP. So tell me about the MVP. How long did it take to build and what sort of tools did you use to bring it to life?

97
00:08:09.600 --> 00:08:16.280
<v Arjun Narayan>I think database MVP is almost like blushed to use the word MVP because there's almost nothing minimal about it.

98
00:08:18.120 --> 00:08:24.020
<v Arjun Narayan>projects. Like a database isn't very useful in parts. Obviously you can break

99
00:08:24.020 --> 00:08:28.000
<v Arjun Narayan>things down into components and you can test independently and you can verify

100
00:08:28.000 --> 00:08:32.160
<v Arjun Narayan>work solidly and about me. But fundamentally, Frank, my co-founder, had

101
00:08:32.160 --> 00:08:37.560
<v Arjun Narayan>been building the core database engine for about four years before we even

102
00:08:37.560 --> 00:08:41.380
<v Arjun Narayan>started the company. And this was actually being built as an open source

103
00:08:41.380 --> 00:08:45.460
<v Arjun Narayan>project and being deployed even though a database engine is very difficult to

104
00:08:45.460 --> 00:08:51.100
<v Arjun Narayan>deploy. I think an analogy to a car engine is quite apt. There's very few buyers who will buy a

105
00:08:51.100 --> 00:08:56.200
<v Arjun Narayan>much, much more powerful engine and then sort of rip out the engine that they have in their own

106
00:08:56.200 --> 00:09:01.080
<v Arjun Narayan>car and put that in. You kind of need to sell the full car. You need to build the doors and the

107
00:09:01.080 --> 00:09:08.160
<v Arjun Narayan>steering column and the seats, if you will, to really get adoption for a much more differentiated

108
00:09:08.160 --> 00:09:15.660
<v Arjun Narayan>database engine. After we started Materialize, it took us a solid year to build the rest of

109
00:09:15.660 --> 00:09:22.080
<v Arjun Narayan>the database to even a minimal acceptable standard. Several of us actually had been at

110
00:09:22.080 --> 00:09:28.180
<v Arjun Narayan>Cockroach Labs, which is a database company in a different market, but with many of the same

111
00:09:28.180 --> 00:09:33.500
<v Arjun Narayan>pieces that you would need to build minimally. Cockroach and Materialize are different markets,

112
00:09:33.500 --> 00:09:36.700
<v Arjun Narayan>They sell trucks, we sell hot rods, right?

113
00:09:36.780 --> 00:09:42.420
<v Arjun Narayan>So we don't overlap on customers, but you still really benefit from knowing how to build steering columns.

114
00:09:42.680 --> 00:09:44.440
<v Arjun Narayan>If you move from one market to the other.

115
00:09:45.360 --> 00:09:58.440
<v Arjun Narayan>In my experience, there's very few successful databases that don't have that knowledge transfer from other large-scale distributed systems projects and database projects in their past sort of employment experience.

116
00:09:59.760 --> 00:10:15.040
<v Noah Labhart>So with any MVP, right, you have to make certain decisions and trade-offs. You have to cut features or you have to accept technical debt in certain areas. So tell me about some of those decisions and trade-offs that you had to make and how did you cope with those decisions?

117
00:10:17.660 --> 00:10:24.680
<v Arjun Narayan>We've definitely had to be fairly ruthless in prioritizing which features we would build

118
00:10:24.680 --> 00:10:26.700
<v Arjun Narayan>to completion and which ones we would hold.

119
00:10:26.840 --> 00:10:31.020
<v Arjun Narayan>So there's several things that we haven't done yet in Materialize.

120
00:10:31.200 --> 00:10:36.700
<v Arjun Narayan>The biggest ones are sort of building a persistence durability layer to store the data.

121
00:10:36.800 --> 00:10:38.700
<v Arjun Narayan>So Materialize is a little bit unusual today.

122
00:10:38.800 --> 00:10:44.860
<v Arjun Narayan>And although this is definitely on the roadmap for 2021, today Materialize does not store

123
00:10:46.040 --> 00:10:51.820
<v Arjun Narayan>It's purely a compute plane on top of an external system for storing your streams of data.

124
00:10:51.980 --> 00:10:54.000
<v Arjun Narayan>And the reason we made this determination was quite simple.

125
00:10:54.140 --> 00:11:01.220
<v Arjun Narayan>The ecosystem is very mature in the storage of these streams, primarily through Apache Kafka, but also sort of competitors to Kafka.

126
00:11:01.220 --> 00:11:06.300
<v Arjun Narayan>Kafka. And so using these two systems in tandem gives you the best of both worlds and allows us

127
00:11:06.300 --> 00:11:12.320
<v Arjun Narayan>to cut scope and focus on a differentiated compute and query engine experience without

128
00:11:12.320 --> 00:11:15.940
<v Arjun Narayan>having to, on day one, have a fully built out persistence layer.

129
00:11:17.340 --> 00:11:19.100
<v Noah Labhart>So you have the product,

130
00:11:19.260 --> 00:11:22.880
<v Noah Labhart>you've made some cuts on it, but you've got it out and you've got some feedback.

131
00:11:23.620 --> 00:11:28.860
<v Noah Labhart>How did you progress the product from there? And how did you mature it? And I think what I'm

132
00:11:28.860 --> 00:11:33.520
<v Noah Labhart>interested in most is how you built your roadmap. How did you figure out what was the next most

133
00:11:33.520 --> 00:11:34.860
<v Noah Labhart>important thing to build?

134
00:11:36.480 --> 00:11:40.580
<v Arjun Narayan>One advantage in a database is because there's such a mature

135
00:11:40.580 --> 00:11:45.940
<v Arjun Narayan>technology, I think in terms of tooling, it's probably the second oldest sort of thing with

136
00:11:45.940 --> 00:11:52.400
<v Arjun Narayan>a defined shape after say like the Unix sort of tool set. SQL is a mature language with 30,

137
00:11:52.760 --> 00:11:55.920
<v Arjun Narayan>40 years behind it. I don't even know it. It sort of predates me in some sense.

138
00:11:56.280 --> 00:12:01.980
<v Arjun Narayan>And so that gives you a pretty clear outline of what you have to build support for.

139
00:12:03.040 --> 00:12:05.700
<v Arjun Narayan>However, that doesn't help you answer prioritization.

140
00:12:05.780 --> 00:12:08.300
<v Arjun Narayan>The SQL standard is, you know, it's like a thousand page book, right?

141
00:12:08.400 --> 00:12:12.980
<v Arjun Narayan>And yes, you do eventually plan to get to 99% coverage over that.

142
00:12:13.120 --> 00:12:17.160
<v Arjun Narayan>But how do you prioritize what you're going to do in year one, what you're going to do in year three, year five, year 10?

143
00:12:17.160 --> 00:12:26.980
<v Arjun Narayan>And we found it very, very valuable to have the entire team, the engineering team, right down to all the engineers spend a lot of their time talking to customers.

144
00:12:27.570 --> 00:12:31.240
<v Arjun Narayan>It almost seems like, you know, too much time, but I think that's when it is.

145
00:12:31.240 --> 00:12:38.100
<v Arjun Narayan>That is the correct tradeoff is to spend that much time talking to the users, understanding what their main frustrations are,

146
00:12:38.200 --> 00:12:43.820
<v Arjun Narayan>understanding where the existing tools fall short and closing those gaps in our current product,

147
00:12:43.820 --> 00:12:46.600
<v Arjun Narayan>because that's how you fundamentally, I think, delight your users

148
00:12:46.600 --> 00:12:49.860
<v Arjun Narayan>to wanting to use your tool as opposed to anybody else's.

149
00:12:50.140 --> 00:12:52.220
<v Noah Labhart>I love that you said delight the users.

150
00:12:52.340 --> 00:12:56.240
<v Noah Labhart>How do you feel like Materialize focuses on that?

151
00:12:56.300 --> 00:12:59.500
<v Noah Labhart>Or how does Materialize bring that to light with their product?

152
00:13:00.360 --> 00:13:04.340
<v Arjun Narayan>I think the biggest wow factor for us right now is,

153
00:13:04.500 --> 00:13:09.480
<v Arjun Narayan>you know, like you can connect Materialize to 10 or 12 different streams of data

154
00:13:09.480 --> 00:13:10.820
<v Arjun Narayan>and just join them all together.

155
00:13:10.820 --> 00:13:16.100
<v Arjun Narayan>other and you just sort of hit enter and you will just start getting streaming join results out on

156
00:13:16.100 --> 00:13:20.520
<v Arjun Narayan>your terminal and no other tool really has that response time there's plenty of tools that will

157
00:13:20.520 --> 00:13:24.680
<v Arjun Narayan>do this in batch where you can sort of define this query and then sort of go off for lunch and come

158
00:13:24.680 --> 00:13:29.340
<v Arjun Narayan>back later and then you get your answer but that instant snappiness is something we focused on

159
00:13:29.340 --> 00:13:34.540
<v Arjun Narayan>because that really shows the power like right there in the first 10 minutes of using a product

160
00:13:35.160 --> 00:13:49.700
<v Noah Labhart>Absolutely. That real time and that quickness is super valuable. So let's switch to team. How did you build your team? And tell me what you looked for in those people to indicate that they were the winning horses to join you.

161
00:13:49.700 --> 00:13:54.680
<v Arjun Narayan>I'm a strong believer that this is the single most important job of building a startup is

162
00:13:54.680 --> 00:14:01.300
<v Arjun Narayan>building the right team. Several of the folks that we sort of worked with in the early part of the

163
00:14:01.300 --> 00:14:07.600
<v Arjun Narayan>team we had previously worked with in previous jobs or sort of as research collaborators. So

164
00:14:08.200 --> 00:14:14.620
<v Arjun Narayan>I think that's obviously the first pool that you draw from. We fairly early on developed a pretty

165
00:14:14.620 --> 00:14:20.020
<v Arjun Narayan>pretty comprehensive interview process and spent a sort of unimaginable amount of time

166
00:14:21.400 --> 00:14:26.320
<v Arjun Narayan>sourcing, interviewing, and onboarding. I actually think, funnily enough, people often

167
00:14:26.320 --> 00:14:30.620
<v Arjun Narayan>do get it right and emphasize interviews a lot, but then they kind of drop the ball on onboarding.

168
00:14:31.040 --> 00:14:35.860
<v Arjun Narayan>You kind of want to spend almost as much time onboarding these people after you've spent all

169
00:14:35.860 --> 00:14:41.080
<v Arjun Narayan>this effort selecting and convincing them to join, right? Convincing people to join is almost

170
00:14:41.080 --> 00:14:45.580
<v Arjun Narayan>as much work as, it's not just whether you want them, it's whether they want you as well.

171
00:14:45.820 --> 00:14:50.960
<v Arjun Narayan>And after that, you still have to spend about as much time onboarding them and making sure that

172
00:14:50.960 --> 00:14:57.660
<v Arjun Narayan>they are successful in their job. What we look for most is this intellectual rigor, almost

173
00:14:57.660 --> 00:15:04.220
<v Arjun Narayan>honesty to a fault, because building these large scale systems, especially on fairly deep theoretical

174
00:15:04.220 --> 00:15:10.440
<v Arjun Narayan>grounds requires a lot of rigorous thinking and building. One of the big benefits we have

175
00:15:11.080 --> 00:15:15.520
<v Arjun Narayan>is having had a lot of time working on a database project before

176
00:15:15.520 --> 00:15:18.380
<v Arjun Narayan>or big data distributed systems projects before.

177
00:15:18.720 --> 00:15:21.520
<v Arjun Narayan>We do certainly look for that, although that's not necessary.

178
00:15:21.540 --> 00:15:23.980
<v Arjun Narayan>We have several members of our team who are very successful

179
00:15:23.980 --> 00:15:27.760
<v Arjun Narayan>who have not sort of worked on big data distributed systems in the past,

180
00:15:27.800 --> 00:15:30.360
<v Arjun Narayan>but it is certainly one of the things we do look for.

181
00:15:33.100 --> 00:15:34.880
<v Noah Labhart>So let's talk about scalability.

182
00:15:35.020 --> 00:15:39.000
<v Noah Labhart>And I assume this is a huge part of what you considered

183
00:15:39.000 --> 00:15:41.040
<v Noah Labhart>as you were building Materialize,

184
00:15:41.120 --> 00:15:42.480
<v Noah Labhart>but tell me about scalability.

185
00:15:42.720 --> 00:15:45.360
<v Noah Labhart>Did you build it in the beginning to scale efficiently

186
00:15:45.360 --> 00:15:47.700
<v Noah Labhart>or was this something you were fighting

187
00:15:47.700 --> 00:15:49.880
<v Noah Labhart>as you gained traction and grew?

188
00:15:51.000 --> 00:15:55.520
<v Arjun Narayan>The biggest asset and advantage we have as a company

189
00:15:55.520 --> 00:15:58.200
<v Arjun Narayan>is the fact that the theoretical groundwork for this

190
00:15:58.200 --> 00:16:01.140
<v Arjun Narayan>was laid by Frank years and years before

191
00:16:01.140 --> 00:16:02.880
<v Arjun Narayan>we even thought about commercialization.

192
00:16:03.140 --> 00:16:07.940
<v Arjun Narayan>So the scalability, the theoretically deep structure

193
00:16:09.000 --> 00:16:15.180
<v Arjun Narayan>execute these queries in a distributed fashion is all baked in long before and needed to be

194
00:16:15.180 --> 00:16:21.040
<v Arjun Narayan>baked in long before. I think most successful big data and database projects look like this,

195
00:16:21.080 --> 00:16:27.160
<v Arjun Narayan>where the rigorous theoretical work long precedes any notion of commercialization.

196
00:16:28.820 --> 00:16:34.080
<v Noah Labhart>As you step out on the balcony and you look across all that you've built with Materialize,

197
00:16:34.080 --> 00:16:35.460
<v Noah Labhart>what are you most proud of?

198
00:16:36.560 --> 00:16:41.440
<v Arjun Narayan>I think we've had a very positive reception from sort of the wider

199
00:16:41.440 --> 00:16:47.680
<v Arjun Narayan>developer community. And I think one of the reasons for that is as we've been communicating

200
00:16:47.680 --> 00:16:52.240
<v Arjun Narayan>what we've been building, we've been sort of scrupulously honest. I think we've done a good

201
00:16:52.240 --> 00:16:57.960
<v Arjun Narayan>job at not overselling. For instance, we're talking about the features that we lack, talking

202
00:16:57.960 --> 00:17:00.980
<v Arjun Narayan>talking about the missing things that we are focusing on building.

203
00:17:01.220 --> 00:17:04.420
<v Arjun Narayan>I think that has engendered a lot of trust.

204
00:17:04.700 --> 00:17:06.160
<v Arjun Narayan>And that's what I'm most proud of.

205
00:17:06.280 --> 00:17:09.340
<v Arjun Narayan>And that's something that, you know, you can lose it in a day, right?

206
00:17:09.420 --> 00:17:12.240
<v Arjun Narayan>It takes a decade to build and you can lose it in a day.

207
00:17:12.360 --> 00:17:15.980
<v Arjun Narayan>And I'm very proud that we have put in the foundations of that.

208
00:17:16.080 --> 00:17:18.860
<v Arjun Narayan>And that's what I want to double down on and triple down on over the years.

209
00:17:18.940 --> 00:17:21.840
<v Arjun Narayan>I want to sort of be scrupulously honest about our capabilities,

210
00:17:22.460 --> 00:17:25.180
<v Arjun Narayan>how we're addressing any missing features,

211
00:17:25.180 --> 00:17:30.280
<v Arjun Narayan>and never really shooting from the hip or overstating our claims.

212
00:17:32.120 --> 00:17:33.780
<v Noah Labhart>Let's flip the script a little bit.

213
00:17:33.920 --> 00:17:37.880
<v Noah Labhart>Tell me about a mistake you made and how you and your team responded to it.

214
00:17:38.920 --> 00:17:40.400
<v Arjun Narayan>Oh, that's a tough one.

215
00:17:40.460 --> 00:17:42.620
<v Arjun Narayan>I'm trying to think, not that we haven't made mistakes.

216
00:17:42.940 --> 00:17:43.880
<v Arjun Narayan>I'm sure we have.

217
00:17:43.940 --> 00:17:47.180
<v Arjun Narayan>I'm trying to think of a mistake that we've made that we sort of fully digested

218
00:17:47.180 --> 00:17:48.620
<v Arjun Narayan>and then sort of fully reflected on.

219
00:17:48.660 --> 00:17:51.180
<v Arjun Narayan>I actually think, I don't know if this is a mistake,

220
00:17:51.180 --> 00:17:55.880
<v Arjun Narayan>but let me sort of talk about sort of things that we could have done better, right?

221
00:17:55.980 --> 00:18:03.600
<v Arjun Narayan>I think as we built the team, we didn't always have this early focus on talking to the customers.

222
00:18:03.800 --> 00:18:07.480
<v Arjun Narayan>I think in retrospect, maybe that came on a little bit later.

223
00:18:07.780 --> 00:18:14.400
<v Arjun Narayan>I think for the first six months, we were pretty sort of down in our own metaphorical basement, hard at work.

224
00:18:14.480 --> 00:18:17.080
<v Arjun Narayan>Maybe we could have gotten started with that even earlier than we did.

225
00:18:17.080 --> 00:18:23.620
<v Arjun Narayan>I think this past year we've been extremely customer-centric.

226
00:18:24.100 --> 00:18:25.720
<v Arjun Narayan>That could have come even earlier.

227
00:18:25.980 --> 00:18:29.440
<v Arjun Narayan>So some of the mistakes, I think, are even things that we do do well.

228
00:18:29.500 --> 00:18:33.700
<v Arjun Narayan>Well, maybe we could have come to that conclusion a little bit earlier and we would be even ahead of where we are now.

229
00:18:35.040 --> 00:18:39.040
<v Noah Labhart>What does the future look like for Materialize, the product, and for your team?

230
00:18:40.600 --> 00:18:41.920
<v Arjun Narayan>We're growing the team.

231
00:18:41.920 --> 00:18:47.120
<v Arjun Narayan>So we raised our Series B, we raised a $32 million Series B a few months ago.

232
00:18:47.660 --> 00:19:00.020
<v Arjun Narayan>And almost entirely, the entire purpose of that money is to hire and build out our team to a much larger sort of size so we can tackle the scope of all the things we're building.

233
00:19:00.180 --> 00:19:06.000
<v Arjun Narayan>So while we're currently at about 25, we were looking to double our headcount this year.

234
00:19:06.000 --> 00:19:12.160
<v Arjun Narayan>that also means a huge amount of investment in onboarding and retaining our culture as we grow.

235
00:19:12.920 --> 00:19:15.800
<v Arjun Narayan>The product, I think, is the least surprising.

236
00:19:16.220 --> 00:19:20.020
<v Arjun Narayan>I mean, there's all these missing features that we'd like to build.

237
00:19:20.140 --> 00:19:27.500
<v Arjun Narayan>We'd like to get more resilient, more scalable, and all those things that people expect in the future.

238
00:19:28.340 --> 00:19:32.220
<v Noah Labhart>How do you expect to go about becoming more resilient?

239
00:19:32.220 --> 00:19:42.260
<v Noah Labhart>That's an interesting thing you bring up because as a team grows, you want to keep that same sort of day one mentality or gritty mentality of the early days.

240
00:19:42.320 --> 00:19:45.120
<v Noah Labhart>So how do you propose to do that?

241
00:19:45.760 --> 00:19:57.320
<v Arjun Narayan>So we've always been a little bit more of a written culture of communicating in a little bit more formal fashion with sort of longer form thoughts written out.

242
00:19:57.320 --> 00:20:07.120
<v Arjun Narayan>One of the things that helps is it actually forms, I think this is the biggest advantage is you actually, you form this written record that people can refer back to when they join, say, a year later.

243
00:20:07.240 --> 00:20:16.380
<v Arjun Narayan>So they can, first thing people often do when they join is sort of read all of the all hands that, because every all hands we have every week is written down as a multi-page document.

244
00:20:16.540 --> 00:20:25.640
<v Arjun Narayan>So you can go back and see how we were thinking right from the very beginning, right from the very first board meeting to where we are, how our thinking has evolved today.

245
00:20:27.800 --> 00:20:33.820
<v Arjun Narayan>transmit the grittiness of the early days, even if things look a little bit more polished today

246
00:20:33.820 --> 00:20:37.700
<v Arjun Narayan>and keep that culture in as we expand and grow.

247
00:20:39.760 --> 00:20:42.900
<v Noah Labhart>Let's switch to you, Arjun. Who influences the

248
00:20:42.900 --> 00:20:49.860
<v Noah Labhart>way that you work? Name a CEO, CTO, architect, really any person. Name a person you look up to

249
00:20:49.860 --> 00:20:50.360
<v Noah Labhart>and why.

250
00:20:51.500 --> 00:20:56.840
<v Arjun Narayan>I have a very sort of clear answer here and sort of going into my history that I sort of

251
00:20:57.320 --> 00:21:02.320
<v Arjun Narayan>a little bit. After my PhD, I worked at Cockroach Labs for two and a half years, a database company

252
00:21:02.320 --> 00:21:07.940
<v Arjun Narayan>that's doing wonderfully well. And I learned a lot of what it means to build a database from

253
00:21:07.940 --> 00:21:14.240
<v Arjun Narayan>the ground up. The person who sort of taught me the most is the CEO, Spencer Kimball. He's a

254
00:21:14.240 --> 00:21:20.940
<v Arjun Narayan>wonderful person. He was a very open, transparent leader. Pretty much every day, every week, I sort

255
00:21:20.940 --> 00:21:25.940
<v Arjun Narayan>of put myself in his shoes and think, what would he have done in this position? And sort of take

256
00:21:27.320 --> 00:21:32.000
<v Arjun Narayan>biggest leadership example that I try and live up to every day. He's wonderful. When I started,

257
00:21:32.320 --> 00:21:35.580
<v Arjun Narayan>when I was even thinking of starting Materialize, he was the first person I even went to when I was

258
00:21:35.580 --> 00:21:40.380
<v Arjun Narayan>still an employee at Cockroach. I remember telling him that, hey, I was thinking of doing this thing.

259
00:21:40.460 --> 00:21:45.340
<v Arjun Narayan>What did he think? He was probably the most supportive anybody could possibly be. And the

260
00:21:45.340 --> 00:21:49.440
<v Arjun Narayan>first words out of his mouth were, I would like to invest. He was the first check in. He helped me

261
00:21:49.440 --> 00:21:54.980
<v Arjun Narayan>set up the company. He helped me fundraise. Yeah, I mean, he didn't have to do any of that, right?

262
00:21:54.980 --> 00:22:07.300
<v Arjun Narayan>Right. But beyond that, even when I was at Cockroach, the way he would stand up and present every week and be very honest with any questions that came up and would sort of share and be extremely transparent.

263
00:22:07.420 --> 00:22:12.780
<v Arjun Narayan>What was going on behind the scenes, what was going on at the board, how each investor was thinking.

264
00:22:12.880 --> 00:22:20.920
<v Arjun Narayan>And all of that is incredibly valuable when you're starting a company or you're running your own company, because the data points that you can look to are so few and far between.

265
00:22:20.920 --> 00:22:24.840
<v Arjun Narayan>that just having that one example of excellence to follow

266
00:22:24.840 --> 00:22:28.160
<v Arjun Narayan>is probably the most valuable thing you can take.

267
00:22:30.500 --> 00:22:36.760
<v Noah Labhart>We talked about mistakes, but maybe a different spin on a question.

268
00:22:36.960 --> 00:22:40.260
<v Noah Labhart>If you could go back to the beginning, what would you do differently?

269
00:22:40.340 --> 00:22:42.960
<v Noah Labhart>Or where would you consider taking a different approach?

270
00:22:44.820 --> 00:22:48.160
<v Arjun Narayan>I don't know. I mean, we're in such a good place that I'm sort of terrified.

271
00:22:48.160 --> 00:22:55.060
<v Arjun Narayan>I don't know the unknown unknowns of what if you change, what are the sort of unknown consequences of making that change?

272
00:22:55.200 --> 00:22:56.920
<v Arjun Narayan>It's sort of a terrifying question, right?

273
00:22:57.020 --> 00:22:58.960
<v Arjun Narayan>Like, I like where we are.

274
00:22:59.040 --> 00:23:00.380
<v Arjun Narayan>I very much like where we are.

275
00:23:00.440 --> 00:23:03.960
<v Arjun Narayan>I very much like there's so many different little things you can change.

276
00:23:04.020 --> 00:23:06.080
<v Arjun Narayan>Like, what if we went with that investors of this?

277
00:23:06.160 --> 00:23:07.720
<v Arjun Narayan>But like our investors are great.

278
00:23:07.800 --> 00:23:08.320
<v Arjun Narayan>We love them.

279
00:23:08.380 --> 00:23:09.960
<v Arjun Narayan>I don't want to I don't want to reroll the dice.

280
00:23:10.020 --> 00:23:11.920
<v Arjun Narayan>Like, doesn't matter, right?

281
00:23:11.920 --> 00:23:19.220
<v Arjun Narayan>When you are in this sort of fantastic position that we find ourselves in, I'm not sure I would change anything is really what I would say.

282
00:23:19.700 --> 00:23:27.540
<v Noah Labhart>I hear a lot that knowing what I know now, I may do something differently moving forward, but we wouldn't have got here without every step that we took.

283
00:23:27.940 --> 00:23:28.760
<v Noah Labhart>That's good stuff.

284
00:23:29.780 --> 00:23:30.900
<v Noah Labhart>Well, last question, Arjun.

285
00:23:31.720 --> 00:23:37.280
<v Noah Labhart>So you're getting on a plane and you're sitting next to a young entrepreneur who's built the next big thing.

286
00:23:37.500 --> 00:23:38.840
<v Noah Labhart>They're jazzed about it.

287
00:23:38.880 --> 00:23:40.680
<v Noah Labhart>They can't wait to show it off to the world.

288
00:23:41.920 --> 00:23:46.860
<v Noah Labhart>right there on the plane. What advice do you give that person having gone down this road a bit?

289
00:23:48.400 --> 00:23:52.440
<v Arjun Narayan>So the biggest thing I would encourage almost anybody who has entrepreneurial

290
00:23:52.440 --> 00:24:01.460
<v Arjun Narayan>aspirations is find a best-in-class business in your field and join them early at the Series A

291
00:24:01.460 --> 00:24:08.460
<v Arjun Narayan>or Series B stage and really understand how a business is built from the ground up for a couple

292
00:24:08.460 --> 00:24:14.540
<v Arjun Narayan>years before doing it yourself. I think that early experience in watching a startup grow

293
00:24:14.540 --> 00:24:21.720
<v Arjun Narayan>is irreplaceable. I think I've benefited from it hugely to sort of have been there at Cockroach.

294
00:24:21.780 --> 00:24:26.440
<v Arjun Narayan>I think I was the 20th employee, so I wasn't there at the very, very beginning. But just

295
00:24:26.440 --> 00:24:31.100
<v Arjun Narayan>watching and seeing how that company scaled the team, scaled the culture, communicated,

296
00:24:31.660 --> 00:24:37.220
<v Arjun Narayan>that was invaluable. And I don't think you can get it any other way. The biggest mistake I see

297
00:24:38.460 --> 00:24:43.520
<v Arjun Narayan>entrepreneurial ambitions do is going to Google or Facebook. You're not going to learn that there.

298
00:24:43.660 --> 00:24:47.560
<v Arjun Narayan>It just, it doesn't, it's almost irrelevant whether that company ends up succeeding or

299
00:24:47.560 --> 00:24:51.840
<v Arjun Narayan>failing, although of course you want it to succeed. But if you've joined a team with

300
00:24:51.840 --> 00:24:56.060
<v Arjun Narayan>high quality people, and when I say quality, I mostly just mean sort of they're open and

301
00:24:56.060 --> 00:25:01.620
<v Arjun Narayan>they're transparent and they're honest almost to a fault. And you learn from them this sort of this

302
00:25:01.620 --> 00:25:07.280
<v Arjun Narayan>apprenticeship experience cannot really be replaced by reading a book or doing something

303
00:25:08.460 --> 00:25:09.540
<v Arjun Narayan>your own without that experience.

304
00:25:10.620 --> 00:25:12.540
<v Noah Labhart>Arjun, thank you for being on the show today.

305
00:25:12.680 --> 00:25:15.760
<v Noah Labhart>Thank you for telling the creation story of Materialize.

306
00:25:16.160 --> 00:25:17.120
<v Arjun Narayan>Thank you so much.

307
00:25:17.120 --> 00:25:18.200
<v Arjun Narayan>It was a pleasure to be on the show.

308
00:25:19.380 --> 00:25:22.280
<v Noah Labhart>And this concludes another chapter of Code Story.

309
00:25:23.980 --> 00:25:26.940
<v Noah Labhart>Code Story is hosted and produced by Noah Labhart.

310
00:25:27.360 --> 00:25:32.120
<v Noah Labhart>Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice.

311
00:25:32.580 --> 00:25:37.660
<v Noah Labhart>Support the show on patreon.com slash Code Story for just five to ten bucks a month.

312
00:25:38.460 --> 00:25:40.180
<v Noah Labhart>And when you get a chance, leave us a review.

313
00:25:40.500 --> 00:25:42.400
<v Noah Labhart>Both things help us out tremendously.

314
00:25:45.060 --> 00:25:46.540
<v Noah Labhart>And thanks again for listening.
