WEBVTT

NOTE S9 E16: Bypassing Kong and Azure APM: Implementing Global Edge Rate Limiting and Decentralized API Key Governance with James Perkins, Co-founder & CEO of Unkey

1
00:00:00.820 --> 00:00:14.960
<v James Perkins>So, scalability was one of the number one priorities from the beginning. Building an API-first product that sits at basically core critical parts of a product, we wanted to make sure it scaled.

2
00:00:15.340 --> 00:00:21.340
<v James Perkins>One of our customers threw something like 3 million requests in a day through the system.

3
00:00:21.520 --> 00:00:25.200
<v James Perkins>And it's something that, you know, prior to that they were doing like 30,000 requests

4
00:00:25.200 --> 00:00:25.700
<v James Perkins>a day.

5
00:00:25.700 --> 00:00:28.820
<v James Perkins>So they went on this huge jump from numerous days.

6
00:00:29.680 --> 00:00:35.260
<v James Perkins>And we only noticed because we were checking analytics every day of like usage and things.

7
00:00:35.420 --> 00:00:37.880
<v James Perkins>The system just stayed solid the entire time.

8
00:00:38.500 --> 00:00:40.160
<v James Perkins>My name is James Perkins.

9
00:00:40.320 --> 00:00:42.940
<v James Perkins>I'm the co-founder and CEO of Unkey.

10
00:00:46.540 --> 00:00:48.280
<v Noah Labhart>This is Code Story.

11
00:00:49.180 --> 00:00:52.140
<v Noah Labhart>A podcast bringing you interviews with tech visionaries.

12
00:00:52.320 --> 00:00:53.680
<v Clip>Six months moonlighting.

13
00:00:53.700 --> 00:00:55.240
<v Clip>There's nothing on the back end.

14
00:00:55.700 --> 00:00:58.080
<v Noah Labhart>Who share what it takes to change an industry.

15
00:00:58.280 --> 00:01:00.220
<v Clip>I don't exactly know what to do next.

16
00:01:00.220 --> 00:01:01.240
<v Clip>It took many goes to get right.

17
00:01:01.860 --> 00:01:04.480
<v Noah Labhart>Who built the teams that have their back.

18
00:01:04.740 --> 00:01:06.120
<v Clip>The company is its people.

19
00:01:06.120 --> 00:01:07.400
<v Clip>The teams help each other achieve.

20
00:01:07.440 --> 00:01:08.580
<v Clip>Most proud of our team.

21
00:01:08.880 --> 00:01:11.180
<v Noah Labhart>Keeping scalability top of mind.

22
00:01:11.480 --> 00:01:12.860
<v Clip>All that infrastructure was a pain.

23
00:01:12.860 --> 00:01:14.200
<v Clip>Yes, we've been fighting it as a group.

24
00:01:14.440 --> 00:01:15.300
<v Clip>Total waste of time.

25
00:01:15.540 --> 00:01:17.800
<v Noah Labhart>The stories you don't read in the headlines.

26
00:01:18.240 --> 00:01:20.040
<v Clip>It's not an easy thing to achieve, my dear.

27
00:01:20.040 --> 00:01:22.100
<v Clip>Took out the shelf and dusted it off and tried to begin.

28
00:01:22.100 --> 00:01:25.860
<v Noah Labhart>to ride the ups and downs of the startup life.

29
00:01:26.100 --> 00:01:27.560
<v Clip>You need to really want it.

30
00:01:27.640 --> 00:01:28.940
<v Clip>It's not just about technology.

31
00:01:29.060 --> 00:01:31.020
<v Noah Labhart>All this and more on Code Story.

32
00:01:32.200 --> 00:01:33.760
<v Noah Labhart>I'm your host, Noah Labhart.

33
00:01:34.360 --> 00:01:38.560
<v Noah Labhart>And today, how James Perkins built seriously fast authentication

34
00:01:38.560 --> 00:01:42.940
<v Noah Labhart>so you can scale your user-facing API.

35
00:01:42.940 --> 00:01:43.440
<v Noah Labhart>API.

36
00:01:49.920 --> 00:01:55.300
<v Noah Labhart>James Perkins did not have a traditional journey to technology, but has been in the space for 16 years.

37
00:01:55.640 --> 00:01:59.720
<v Noah Labhart>He had planned to be a special education teacher prior to switching to technology.

38
00:02:00.100 --> 00:02:03.120
<v Noah Labhart>He's worked in pre-seed startups all the way to big corporations.

39
00:02:03.300 --> 00:02:09.120
<v Noah Labhart>But outside of tech, he has a wide variety of hobbies, in particular, running and training for half marathons.

40
00:02:09.480 --> 00:02:12.040
<v Noah Labhart>This process requires about six weeks of training,

41
00:02:12.160 --> 00:02:14.280
<v Noah Labhart>primarily mental training over physical.

42
00:02:15.840 --> 00:02:18.380
<v Noah Labhart>James and his co-founder were friends and colleagues

43
00:02:18.380 --> 00:02:19.680
<v Noah Labhart>before their current venture.

44
00:02:20.060 --> 00:02:24.080
<v Noah Labhart>They had an idea around building a small version of API authentication.

45
00:02:24.840 --> 00:02:27.400
<v Noah Labhart>After building and releasing this version,

46
00:02:27.500 --> 00:02:29.220
<v Noah Labhart>they wanted to see how people received it.

47
00:02:29.540 --> 00:02:31.800
<v Noah Labhart>They were overwhelmed with the response

48
00:02:31.800 --> 00:02:35.080
<v Noah Labhart>and figured they should push harder on this to be a company.

49
00:02:37.240 --> 00:02:38.800
<v Noah Labhart>This is the creation story.

50
00:02:39.120 --> 00:02:39.980
<v Noah Labhart>of Unkey.

51
00:02:43.100 --> 00:02:50.640
<v James Perkins>Unkey as a company is an API management platform. We started in a very different direction

52
00:02:50.640 --> 00:02:56.560
<v James Perkins>than your traditional API management platform. So if you look at say Kong or Tyk or Zuplo or

53
00:02:56.560 --> 00:03:02.040
<v James Perkins>any of those kinds of platforms, a lot of those offer a gateway and that's how you enter into the

54
00:03:02.040 --> 00:03:06.300
<v James Perkins>API management platform. You get a gateway and then maybe you have some extra features

55
00:03:06.300 --> 00:03:12.220
<v James Perkins>features such as API keys or rate limiting or things like that. What we did at Unkey was look

56
00:03:12.220 --> 00:03:17.720
<v James Perkins>at where developers are in the space versus where say DevOps or any of those kinds of people are.

57
00:03:18.060 --> 00:03:25.340
<v James Perkins>We started with API keys and provided a way for you to create, manage, delete, revoke,

58
00:03:25.340 --> 00:03:30.260
<v James Perkins>all those things that you need to do with an API key. It could just be a solo developer,

59
00:03:30.480 --> 00:03:35.760
<v James Perkins>it could be a very small scrappy startup and essentially give you the ability to make a user

60
00:03:36.300 --> 00:03:42.180
<v James Perkins>API without having to worry about all of the intricacies of a gateway. We made it

61
00:03:42.180 --> 00:03:45.660
<v James Perkins>as simple as possible so that anyone could pick it up whether you've done

62
00:03:45.660 --> 00:03:50.960
<v James Perkins>APIs before, it's your first API, we were just exploring the space. We want to meet

63
00:03:50.960 --> 00:03:56.160
<v James Perkins>developers at the core problem without them having to learn a whole new piece

64
00:03:56.160 --> 00:04:02.700
<v James Perkins>of the tech industry. Unkey was born through myself and my co-founder. We'd

65
00:04:02.700 --> 00:04:09.020
<v James Perkins>done some work before and some co-marketing because we worked, I worked at Clerk, he worked

66
00:04:09.020 --> 00:04:15.480
<v James Perkins>at Upstash, and he had this idea to build essentially a very small version of Unkey

67
00:04:15.480 --> 00:04:21.880
<v James Perkins>as a marketing, joint marketing effort between Clerk and Upstash. And when he pitched it to me,

68
00:04:21.880 --> 00:04:27.860
<v James Perkins>I sat there and thought, this is actually much bigger problem than most people realize. So maybe

69
00:04:27.860 --> 00:04:33.520
<v James Perkins>we could actually do this and make it into a product. We both were open source builders, so

70
00:04:33.520 --> 00:04:37.700
<v James Perkins>we just thought, maybe this could be a side project. Let's just put it out there and see how the world

71
00:04:37.700 --> 00:04:43.820
<v James Perkins>receives it, and then if they receive it, maybe it is actually a business. The first commit was June

72
00:04:43.820 --> 00:04:53.400
<v James Perkins>9th, and we launched our MVP on June 21st of 2023, and we launched it and it was received really well

73
00:04:53.400 --> 00:04:58.920
<v James Perkins>to the point where we were overwhelmed with the amount of reception that we had.

74
00:04:59.080 --> 00:05:03.940
<v James Perkins>And then that's when we knew that this was a problem that other developers had

75
00:05:03.940 --> 00:05:07.100
<v James Perkins>and that we should probably push harder into the space.

76
00:05:09.340 --> 00:05:12.320
<v Noah Labhart>So let's dive into the MVP process.

77
00:05:12.620 --> 00:05:16.760
<v Noah Labhart>Tell me how long it took and sort of maybe the high level around how it was built.

78
00:05:16.840 --> 00:05:20.480
<v Noah Labhart>But give me the story there around how you went about it,

79
00:05:20.500 --> 00:05:21.860
<v Noah Labhart>how you went about building it,

80
00:05:23.400 --> 00:05:24.720
<v Noah Labhart>to bring it to life and all the things.

81
00:05:25.860 --> 00:05:28.040
<v James Perkins>So when we built the MVP,

82
00:05:28.480 --> 00:05:33.160
<v James Perkins>we were fortunate enough that both of us had been in the space.

83
00:05:34.500 --> 00:05:37.920
<v James Perkins>We went to what we all knew in the beginning.

84
00:05:38.040 --> 00:05:39.760
<v James Perkins>It was a Next.js application.

85
00:05:40.360 --> 00:05:43.060
<v James Perkins>We used Clerk for auth and we used Upstash

86
00:05:43.060 --> 00:05:45.660
<v James Perkins>as well as TinyBird for analytical data

87
00:05:45.660 --> 00:05:47.620
<v James Perkins>and then PlanetScale for our database.

88
00:05:47.960 --> 00:05:50.840
<v James Perkins>And then our API was built originally in TypeScript.

89
00:05:50.840 --> 00:05:57.240
<v James Perkins>it. And the advantages we had there was those are all tech that both of us were incredibly familiar

90
00:05:57.240 --> 00:06:03.200
<v James Perkins>with. And that allowed us to move incredibly quickly. We didn't make scalable decisions

91
00:06:03.200 --> 00:06:07.580
<v James Perkins>in the beginning. We tried to make sure that we knew that this would scale to a level of

92
00:06:07.580 --> 00:06:12.840
<v James Perkins>if we get a million requests tomorrow, are we going to be okay? So we did a lot of work around

93
00:06:12.840 --> 00:06:17.580
<v James Perkins>that. But we didn't think about what happens if 10,000 users sign up tomorrow? Is the Next.js

94
00:06:17.580 --> 00:06:22.160
<v James Perkins>app going to be okay? Is the analytical data going to be okay? Do we even need pricing? We

95
00:06:22.160 --> 00:06:26.460
<v James Perkins>didn't have pricing in the beginning of our MVP. We were just hosting the services and we were

96
00:06:26.460 --> 00:06:32.360
<v James Perkins>paying the fees. We made that decision based around if we can build this and it actually

97
00:06:32.360 --> 00:06:38.560
<v James Perkins>has some legs, then we can invest in making this easier for us to maintain and make it scalable to

98
00:06:38.560 --> 00:06:45.160
<v James Perkins>a level of if we hire five people, do we need to worry about any of this? We had a lot of components

99
00:06:45.160 --> 00:06:47.100
<v James Perkins>that we'd already built for other projects.

100
00:06:47.300 --> 00:06:49.020
<v James Perkins>So Andreas, my co-founder,

101
00:06:49.140 --> 00:06:50.820
<v James Perkins>had done a couple of other projects

102
00:06:50.820 --> 00:06:53.140
<v James Perkins>that were open source and fairly popular.

103
00:06:53.640 --> 00:06:55.260
<v James Perkins>So we grabbed a lot of,

104
00:06:55.320 --> 00:06:57.820
<v James Perkins>the web app was built very much around that.

105
00:06:58.040 --> 00:06:59.660
<v James Perkins>And me being at Clerk,

106
00:06:59.900 --> 00:07:01.400
<v James Perkins>that meant I could implement things

107
00:07:01.400 --> 00:07:02.560
<v James Perkins>like middleware and protection

108
00:07:02.560 --> 00:07:03.940
<v James Perkins>and all those kinds of things.

109
00:07:04.420 --> 00:07:06.640
<v James Perkins>The biggest part for us was just the API

110
00:07:06.640 --> 00:07:09.000
<v James Perkins>because we're an API service, essentially.

111
00:07:09.240 --> 00:07:11.340
<v James Perkins>We had to build that from scratch from the beginning.

112
00:07:11.720 --> 00:07:13.740
<v James Perkins>The MVP was very much built upon,

113
00:07:15.160 --> 00:07:19.980
<v James Perkins>to do a lot of these things. We can deploy it to Fly and make sure that it has a lot of regions so

114
00:07:19.980 --> 00:07:24.160
<v James Perkins>it can be globally distributed. We can do some caching in memory, all those kinds of things,

115
00:07:24.340 --> 00:07:29.880
<v James Perkins>which is not what we do today. But it allowed us to move so quickly that, yeah, we started June 9th.

116
00:07:29.880 --> 00:07:35.740
<v James Perkins>By June 21st, we had launched our product. We added pricing in July and had our first customer

117
00:07:35.740 --> 00:07:41.160
<v James Perkins>in July who was willing to pay us. We tried to make sure that we were conscious of the scalability,

118
00:07:41.160 --> 00:07:43.540
<v James Perkins>which some people don't do in the beginning.

119
00:07:43.700 --> 00:07:47.900
<v James Perkins>But we certainly had some struggles as we grew the product

120
00:07:47.900 --> 00:07:51.480
<v James Perkins>and realized that we'd made some mistakes as we'd gone along.

121
00:07:51.620 --> 00:07:56.520
<v James Perkins>And we've rectified those, made it easier to maintain and scale as time goes on.

122
00:07:57.840 --> 00:08:00.460
<v Noah Labhart>So you've got the MVP. It's working.

123
00:08:00.740 --> 00:08:03.780
<v Noah Labhart>Tell me about how you went about building your roadmap.

124
00:08:03.960 --> 00:08:05.760
<v Noah Labhart>How did you mature it and progress the product?

125
00:08:05.900 --> 00:08:09.540
<v Noah Labhart>And I'm curious about what you did to decide

126
00:08:11.160 --> 00:08:15.740
<v Noah Labhart>to decide, okay, this is the next most important thing to build or to address with Unkey.

127
00:08:18.140 --> 00:08:24.340
<v James Perkins>Being in the API space, we just went and looked at, one, our competitors and what features did

128
00:08:24.340 --> 00:08:29.840
<v James Perkins>they have that seem useful to everybody. And then we looked in the auth space as well,

129
00:08:29.880 --> 00:08:35.960
<v James Perkins>and look what they were offering to extend user management. The way that we decided on the roadmap

130
00:08:35.960 --> 00:08:43.220
<v James Perkins>map was looking at what was hot in the space and then also how we could fit that into Unkey. So I

131
00:08:43.220 --> 00:08:48.860
<v James Perkins>can give a pretty good example. In the beginning, we had rate limiting and keys that expired. So

132
00:08:48.860 --> 00:08:53.920
<v James Perkins>you could set a day on a key and it would expire after a week, a month, a year, whatever you wanted

133
00:08:53.920 --> 00:08:58.640
<v James Perkins>to set this key to so that you could issue those keys out and they could expire. So if you needed

134
00:08:58.640 --> 00:09:02.900
<v James Perkins>someone to audit your API, you could give them a key and you don't have to worry, oh, I forgot to

135
00:09:02.900 --> 00:09:05.760
<v James Perkins>to revoke this and they still have access, all that kind of is handled through us.

136
00:09:06.900 --> 00:09:12.280
<v James Perkins>What we realized quickly was that AI was getting bigger and bigger. So in June, July, August

137
00:09:12.280 --> 00:09:18.380
<v James Perkins>sort of timeframe, AI was really taking off. People were building more and more products on

138
00:09:18.800 --> 00:09:25.140
<v James Perkins>any kind of AI that was out there, whether it was image generation, or it was something to do with

139
00:09:25.140 --> 00:09:29.080
<v James Perkins>text, or it was taking voice and turning it into text. They were doing all these kinds of things.

140
00:09:29.080 --> 00:09:32.840
<v James Perkins>they were building token-based requests.

141
00:09:33.340 --> 00:09:36.680
<v James Perkins>You pay me $10 and then you get 10 generations

142
00:09:36.680 --> 00:09:38.660
<v James Perkins>or 100 generations, whatever the number may be.

143
00:09:39.120 --> 00:09:42.760
<v James Perkins>And so we introduced something called limited use keys,

144
00:09:42.980 --> 00:09:45.540
<v James Perkins>which essentially allowed you to set a limit to a key.

145
00:09:45.620 --> 00:09:48.100
<v James Perkins>So it could be used 10 times, 20 times, 100 times.

146
00:09:48.320 --> 00:09:51.220
<v James Perkins>And we pushed that into the AI space and said,

147
00:09:51.300 --> 00:09:53.600
<v James Perkins>hey, if you want token-based usage,

148
00:09:54.340 --> 00:09:55.380
<v James Perkins>don't build that yourself.

149
00:09:55.600 --> 00:09:57.580
<v James Perkins>Just come and use one of our API keys.

150
00:09:59.080 --> 00:10:02.500
<v James Perkins>you have the ability to do that and you can do it for every customer and it doesn't matter if they

151
00:10:02.500 --> 00:10:08.780
<v James Perkins>spend $100, $20 or a million dollars, you can set that number to whatever you need it to be

152
00:10:08.780 --> 00:10:13.480
<v James Perkins>and we will handle the rest for you. You don't have to worry about that user accidentally

153
00:10:13.480 --> 00:10:18.380
<v James Perkins>figuring out how to get more access without paying you. Our key will just stop working

154
00:10:18.380 --> 00:10:23.420
<v James Perkins>once it hits that limit. Obviously, as time has gone on and now we're like a fully fledged company

155
00:10:23.420 --> 00:10:28.600
<v James Perkins>and we have funding, that roadmap has changed. The direction that we're moving in has changed.

156
00:10:29.080 --> 00:10:39.080
<v James Perkins>And those changes take time and we drive to this overall vision versus the small wins that we know would get us more customers or more users.

157
00:10:40.640 --> 00:10:45.760
<v Noah Labhart>You know, I hear you saying we, and I'm curious about how you went about building your team.

158
00:10:45.860 --> 00:10:49.620
<v Noah Labhart>And what do you look for in those people to indicate that they're the winning horses to join you?

159
00:10:50.540 --> 00:10:53.040
<v James Perkins>To give context, our team is just four people.

160
00:10:53.040 --> 00:11:02.780
<v James Perkins>We took a very different approach that I think most startups would take, which was our first hire was a junior engineer with zero production experience.

161
00:11:03.280 --> 00:11:14.480
<v James Perkins>I know the person personally through just life in general, and I knew that about his work ethic and the way that he takes on a role, whether it would be whatever he was doing at the time.

162
00:11:14.560 --> 00:11:22.380
<v James Perkins>He was a person that was all in from day one and would do everything in his power to make sure whatever we ask of him, he would deliver.

163
00:11:23.480 --> 00:11:29.540
<v James Perkins>So we took a big risk on hiring a junior as your first eng when you really need to be moving as quickly as possible.

164
00:11:29.700 --> 00:11:31.640
<v James Perkins>And it's paid dividends for us.

165
00:11:31.740 --> 00:11:36.140
<v James Perkins>So him being a junior did a lot of eye opening for us.

166
00:11:36.240 --> 00:11:42.800
<v James Perkins>We realized that we were missing a lot of key core elements to building an actual company.

167
00:11:43.100 --> 00:11:45.780
<v James Perkins>We were missing things like how does any of this work?

168
00:11:45.900 --> 00:11:46.740
<v James Perkins>None of that was documented.

169
00:11:46.920 --> 00:11:48.020
<v James Perkins>It was just all in our brains.

170
00:11:48.020 --> 00:11:53.760
<v James Perkins>how that works, in the code base, how the code base works itself, which lends to the open source nature

171
00:11:53.760 --> 00:11:58.380
<v James Perkins>of the product. To being open source, you need those so that if someone wants to contribute,

172
00:11:58.380 --> 00:12:04.200
<v James Perkins>they can do the same thing. And then secondly, our other hire had been in the industry for

173
00:12:04.200 --> 00:12:11.500
<v James Perkins>a few years, but we took the risk because he was a sales engineer, lesser developer, and we decided

174
00:12:11.500 --> 00:12:19.660
<v James Perkins>that his passion just in general would pay dividends. We didn't care so much about these

175
00:12:19.660 --> 00:12:24.140
<v James Perkins>are going to be the most top performers in the universe and we need to pay them this giant salary

176
00:12:24.140 --> 00:12:29.780
<v James Perkins>to make our products. We actually went the opposite way which was we would pay a reasonable market

177
00:12:29.780 --> 00:12:36.560
<v James Perkins>rate for these guys knowing that they would push the product harder and harder and Dom our second

178
00:12:36.560 --> 00:12:43.160
<v James Perkins>can hire was very much that he came to the interview process asking questions about Unkey

179
00:12:43.160 --> 00:12:48.600
<v James Perkins>that you wouldn't normally see in a sort of an interview. We knew about his work, we knew about

180
00:12:48.600 --> 00:12:53.720
<v James Perkins>what he was doing, but we didn't expect someone to come in with half a dozen questions about

181
00:12:53.720 --> 00:12:58.640
<v James Perkins>what's the future look like? What do you expect from a team member? Where do you expect Unkey to

182
00:12:58.640 --> 00:13:03.580
<v James Perkins>be in five years? What's the runway on the amount of money that you have today? If I was hired,

183
00:13:03.580 --> 00:13:06.160
<v James Perkins>How could I help bring the product to the next level?

184
00:13:06.220 --> 00:13:11.520
<v James Perkins>All those things that really made him stand out from everybody else that we'd even consider that point.

185
00:13:11.920 --> 00:13:16.780
<v James Perkins>And both of those hires have been incredible, which is pretty out of the norm for a normal staff.

186
00:13:16.960 --> 00:13:22.100
<v James Perkins>Normally, you try and hire some really excellent folks and allow them to drive the product forward.

187
00:13:22.240 --> 00:13:29.060
<v James Perkins>And we went a different direction of hiring people that may have been underdogs, which, you know, Andreas and I are very much underdogs as well.

188
00:13:29.060 --> 00:13:34.100
<v James Perkins>and we've really just got all in the same boat and we're all rowing the same way.

189
00:13:37.160 --> 00:13:38.700
<v Noah Labhart>Okay, this will be interesting.

190
00:13:38.880 --> 00:13:43.240
<v Noah Labhart>Given what you've built, I'm curious about scalability and where it came in.

191
00:13:43.360 --> 00:13:47.400
<v Noah Labhart>Was it built to scale efficiently from day one or with scale in mind

192
00:13:47.400 --> 00:13:50.500
<v Noah Labhart>or is there anywhere where you're having to fight it as you grow?

193
00:13:51.900 --> 00:13:56.280
<v James Perkins>So scalability was one of the number one priorities from the beginning.

194
00:13:56.280 --> 00:14:03.920
<v James Perkins>building an API first product that sits at basically core critical parts of a product.

195
00:14:04.140 --> 00:14:05.720
<v James Perkins>We wanted to make sure it scaled.

196
00:14:06.080 --> 00:14:11.640
<v James Perkins>So even when we were very young in November of last year,

197
00:14:11.800 --> 00:14:17.880
<v James Perkins>one of our customers threw something like 3 million requests in a day through the system.

198
00:14:18.040 --> 00:14:22.260
<v James Perkins>And it's something that, you know, prior to that, they were doing like 30,000 requests a day.

199
00:14:22.360 --> 00:14:25.360
<v James Perkins>So they went on this huge jump from numerous days.

200
00:14:26.460 --> 00:14:31.820
<v James Perkins>And we only noticed because we were checking analytics every day of like usage and things.

201
00:14:32.080 --> 00:14:34.460
<v James Perkins>The system just stayed solid the entire time.

202
00:14:34.600 --> 00:14:38.660
<v James Perkins>And then as we've matured the product out, scalability has been less of an issue.

203
00:14:39.520 --> 00:14:43.640
<v James Perkins>We haven't really had to worry about what happens if 100 million requests come through.

204
00:14:43.780 --> 00:14:48.640
<v James Perkins>We've done some pretty hefty sort of load testing on the system just to see.

205
00:14:48.800 --> 00:14:51.460
<v James Perkins>And we've never really had any sort of issues.

206
00:14:51.600 --> 00:14:55.200
<v James Perkins>And that's allowed the product to be one, easily maintainable.

207
00:14:56.280 --> 00:15:01.500
<v James Perkins>It's easy for us to slot a new feature in and not have to worry about the core system having any issues.

208
00:15:01.780 --> 00:15:11.240
<v James Perkins>And I'm forever thankful that Andreas spent the majority of his time worried about scalability and less about getting the product out in the first place or releasing new features or whatever.

209
00:15:11.780 --> 00:15:19.380
<v James Perkins>He's always been very conscious about making sure that our product will scale to essentially infinity without us having to worry too much.

210
00:15:21.100 --> 00:15:25.760
<v Noah Labhart>Well, James, as you step out on the balcony and you look across all that you've built, what are

211
00:15:25.760 --> 00:15:28.400
<v Noah Labhart>you most proud of the

212
00:15:28.400 --> 00:15:32.800
<v James Perkins>developer experience that we've built is truly unmatched, and hearing that

213
00:15:32.800 --> 00:15:38.460
<v James Perkins>from customers is just one of those things that, like, warms the heart. Almost being able to give

214
00:15:38.460 --> 00:15:45.320
<v James Perkins>someone the tools to build this public API and spend what would take potentially weeks to build

215
00:15:45.320 --> 00:15:52.120
<v James Perkins>themselves, to take them less than an hour to make their API public and feel that it's going to be

216
00:15:52.120 --> 00:15:56.840
<v James Perkins>secure and scalable is something that I'm super proud of. And then as a company, I'm just proud

217
00:15:56.840 --> 00:16:01.880
<v James Perkins>of the fact that we're here and we have a startup. It was definitely not something that was on my

218
00:16:01.880 --> 00:16:09.040
<v James Perkins>sort of end of 2023 bingo card, that's for sure. And I'm proud of what Andreas and I have done and

219
00:16:09.040 --> 00:16:14.940
<v James Perkins>the team that we've built so far. And I'm looking forward to making that bigger and better as time

220
00:16:16.200 --> 00:16:18.060
<v Noah Labhart>Tom, let's flip the script a little bit.

221
00:16:18.160 --> 00:16:22.480
<v Noah Labhart>Tell me about a mistake you made and how you and your team responded to it.

222
00:16:24.160 --> 00:16:33.140
<v James Perkins>I think the only time that we've really had this problem really was when we were scaling some of our product out.

223
00:16:34.220 --> 00:16:38.340
<v James Perkins>We had made some changes to the database itself.

224
00:16:38.840 --> 00:16:43.100
<v James Perkins>If you're using the web app and you wanted to create keys in the web app, that no longer worked.

225
00:16:43.100 --> 00:16:50.080
<v James Perkins>and we hadn't realized at the time that this had been affected. The team were incredibly

226
00:16:50.720 --> 00:16:55.860
<v James Perkins>responsive to the fact that it had broken. So it broken pretty late in the night for Andreas, and

227
00:16:55.860 --> 00:17:00.580
<v James Perkins>even for me, to be fair. It was like 9 or 10 p.m. Eastern time, so that's two, three o'clock in the

228
00:17:00.580 --> 00:17:05.980
<v James Perkins>morning his time. Sent out the bat signal, said, hey, by the way, like, our entire UI doesn't work right

229
00:17:05.980 --> 00:17:11.460
<v James Perkins>now. Here's what what's happening, here's the errors, here's where we're at. Like, I'm debugging, but also

230
00:17:13.100 --> 00:17:13.780
<v James Perkins>where this problem lies.

231
00:17:14.080 --> 00:17:16.980
<v James Perkins>And Andreas got himself out of bed essentially

232
00:17:16.980 --> 00:17:19.340
<v James Perkins>and was like, oh yeah, this was something that I did.

233
00:17:19.500 --> 00:17:22.380
<v James Perkins>Let me just push a fix out, get that working again.

234
00:17:22.480 --> 00:17:24.160
<v James Perkins>And then let's let the customers know

235
00:17:24.160 --> 00:17:25.320
<v James Perkins>the reason that this happened.

236
00:17:26.380 --> 00:17:28.000
<v James Perkins>And it's a small mistake

237
00:17:28.000 --> 00:17:30.740
<v James Perkins>that could have cost us customers potentially.

238
00:17:31.100 --> 00:17:34.120
<v James Perkins>Seeing errors that were not handled correctly

239
00:17:34.120 --> 00:17:36.800
<v James Perkins>and showing like database errors right in the application

240
00:17:36.800 --> 00:17:38.640
<v James Perkins>is definitely not graceful.

241
00:17:38.720 --> 00:17:40.520
<v James Perkins>But the team just responding around that

242
00:17:40.520 --> 00:17:42.100
<v James Perkins>and letting the team know

243
00:17:43.100 --> 00:17:46.520
<v James Perkins>happen probably again at some point, we're going to put a release out and something's going to

244
00:17:46.520 --> 00:17:50.980
<v James Perkins>break and it's okay to do that. We're moving quickly, we're moving fast, but the amount of

245
00:17:50.980 --> 00:17:55.880
<v James Perkins>time it takes us to respond and actually talking to the customers about why this is happening

246
00:17:55.880 --> 00:18:01.460
<v James Perkins>allows us to take that mistake as a learning and make sure that those same mistakes don't

247
00:18:01.460 --> 00:18:05.920
<v James Perkins>happen again. It might be something else, but making sure that exact mistake doesn't happen

248
00:18:05.920 --> 00:18:06.780
<v James Perkins>a second time.

249
00:18:10.040 --> 00:18:11.580
<v Noah Labhart>Okay, this will be fun, James.

250
00:18:11.720 --> 00:18:13.040
<v Noah Labhart>What does the future look like

251
00:18:13.040 --> 00:18:14.360
<v Noah Labhart>for Unkey, the product,

252
00:18:14.460 --> 00:18:15.180
<v Noah Labhart>and for your team?

253
00:18:16.240 --> 00:18:17.540
<v James Perkins>We want to meet developers

254
00:18:17.540 --> 00:18:18.800
<v James Perkins>at their level.

255
00:18:18.980 --> 00:18:21.200
<v James Perkins>I don't want to be telling you,

256
00:18:21.300 --> 00:18:23.180
<v James Perkins>okay, now you have to figure out

257
00:18:23.180 --> 00:18:24.080
<v James Perkins>how YAML works

258
00:18:24.080 --> 00:18:25.580
<v James Perkins>and how Docker files work

259
00:18:25.580 --> 00:18:27.920
<v James Perkins>and how configuration files work.

260
00:18:28.320 --> 00:18:29.680
<v James Perkins>So the future of Unkey

261
00:18:29.680 --> 00:18:32.420
<v James Perkins>is very simple in nature.

262
00:18:32.600 --> 00:18:34.860
<v James Perkins>We are bringing out a gateway,

263
00:18:35.920 --> 00:18:38.260
<v James Perkins>Gateway is going to be different than anything you've ever seen in the market.

264
00:18:38.440 --> 00:18:47.300
<v James Perkins>What we want to bring is a one to two click gateway that will allow you to protect an entire API or an entire web app, depending on what you want to do with it.

265
00:18:47.400 --> 00:18:48.920
<v James Perkins>And we want to make it scalable.

266
00:18:49.100 --> 00:18:53.000
<v James Perkins>So if you're only doing a few hundred thousand requests, that's fine.

267
00:18:53.380 --> 00:19:02.620
<v James Perkins>And we want to make sure that it's globally distributed so that your customers, no matter where they are today, they don't have to worry about why is the response so slow from your API.

268
00:19:03.120 --> 00:19:13.080
<v James Perkins>On top of that, we want to bring things like SDK generation, documentation generation, all those things that you need to build a comprehensive API from end to end.

269
00:19:13.280 --> 00:19:23.400
<v James Perkins>We want to be able to give you all the tools to do that as a developer and not have to hire an entire team to first build that infrastructure and then a secondary team to then implement that infrastructure.

270
00:19:23.400 --> 00:19:29.600
<v James Perkins>structure. We want to make sure developers, no matter how new you are to the field, you could

271
00:19:29.600 --> 00:19:35.120
<v James Perkins>go to Unkey today or six months from now or a year from now and find everything that you need

272
00:19:35.120 --> 00:19:40.280
<v James Perkins>in a one-stop shop where you feel comfortable and you spend less time worrying about these

273
00:19:40.280 --> 00:19:46.120
<v James Perkins>features that are required for security or maintainability or scalability and worry more

274
00:19:46.120 --> 00:19:47.100
<v James Perkins>about that core product.

275
00:19:48.540 --> 00:19:52.260
<v Noah Labhart>Okay, James, let's switch to you. Who influences the way that you work?

276
00:19:53.400 --> 00:19:55.420
<v Noah Labhart>Many persons are something you look up to and why.

277
00:19:56.700 --> 00:19:57.260
<v Noah Labhart>One

278
00:19:57.260 --> 00:19:58.600
<v James Perkins>of them is definitely my dad.

279
00:19:59.880 --> 00:20:05.640
<v James Perkins>He has spent the last 30 plus years in the pharmaceutical industry,

280
00:20:05.900 --> 00:20:10.700
<v James Perkins>working on all sorts of medicines and vaccines and all sorts of things like that.

281
00:20:10.760 --> 00:20:14.940
<v James Perkins>And every day he shows up and he works himself tirelessly,

282
00:20:15.060 --> 00:20:21.080
<v James Perkins>even in COVID where he basically worked every day of the week during COVID to get vaccines

283
00:20:21.080 --> 00:20:25.360
<v James Perkins>so that people in the world could choose whether or not they want a vaccine or not,

284
00:20:25.400 --> 00:20:26.940
<v James Perkins>that that was an option for them.

285
00:20:27.580 --> 00:20:32.660
<v James Perkins>And then secondly, my CTO, I'm definitely influenced by his hard work and his ethics.

286
00:20:33.280 --> 00:20:34.960
<v James Perkins>And then there's some other people out there.

287
00:20:35.180 --> 00:20:37.820
<v James Perkins>My girlfriend Meg, she's an engineering manager.

288
00:20:38.460 --> 00:20:43.980
<v James Perkins>I see her trying to keep all of the engineering department working in a specific way.

289
00:20:44.600 --> 00:20:47.500
<v James Perkins>Those kinds of people just influence me with the work ethic

290
00:20:47.500 --> 00:20:51.920
<v James Perkins>and maybe not coming from a traditional background that you see when you think about tech or you

291
00:20:51.920 --> 00:20:58.340
<v James Perkins>think about just any of these like high paying jobs or high stress jobs. I certainly fell into

292
00:20:58.340 --> 00:21:06.040
<v James Perkins>the CEO role. I fell into tech. Andreas was semi-traditional, but these people that go out

293
00:21:06.040 --> 00:21:08.480
<v James Perkins>and show every day are the people that really influenced me.

294
00:21:10.440 --> 00:21:12.060
<v Noah Labhart>Okay. So we talked about a mistake

295
00:21:12.060 --> 00:21:16.180
<v Noah Labhart>earlier, but this is a little different spin. If you could go back to the beginning, what would

296
00:21:17.500 --> 00:21:18.980
<v Noah Labhart>taking a different approach.

297
00:21:19.140 --> 00:21:20.480
<v Noah Labhart>It doesn't have to be something that didn't work.

298
00:21:20.560 --> 00:21:21.360
<v Noah Labhart>It could have even worked well,

299
00:21:21.420 --> 00:21:23.100
<v Noah Labhart>but maybe you tweak it a little bit.

300
00:21:24.280 --> 00:21:28.060
<v James Perkins>One of the biggest things is the API itself.

301
00:21:28.660 --> 00:21:32.220
<v James Perkins>The API has been through a few iterations since we began,

302
00:21:32.400 --> 00:21:35.940
<v James Perkins>and also it has gone through language changes.

303
00:21:36.500 --> 00:21:38.440
<v James Perkins>So in the beginning, if you remember in the MVP,

304
00:21:38.680 --> 00:21:39.480
<v James Perkins>we were TypeScript.

305
00:21:39.700 --> 00:21:41.820
<v James Perkins>Then we moved from TypeScript to Go

306
00:21:41.820 --> 00:21:46.540
<v James Perkins>because we felt like that's the best way

307
00:21:47.500 --> 00:21:53.160
<v James Perkins>API for us. And then we actually ended up coming back to TypeScript when we decided that we

308
00:21:53.160 --> 00:21:58.460
<v James Perkins>actually wanted to move off of Fly where our server was deployed for our API. And we came back

309
00:21:58.460 --> 00:22:04.400
<v James Perkins>to TypeScript again. TypeScript's definitely what we really wanted, but we couldn't make it work in

310
00:22:04.400 --> 00:22:09.380
<v James Perkins>the beginning. So we rewrote a lot of code. And during that time, we were lucky that we had a

311
00:22:09.380 --> 00:22:14.060
<v James Perkins>small amount of customers because we had to essentially all of the keys that were produced

312
00:22:14.060 --> 00:22:19.360
<v James Perkins>in the original MVP, we actually had to tell people to, you need to go and recreate all of

313
00:22:19.360 --> 00:22:24.220
<v James Perkins>these keys on the switch from TypeScript to Go, which was a very hard email to write.

314
00:22:24.560 --> 00:22:29.040
<v James Perkins>One, because we were just like two guys and we had no funding. We had no nothing. We were just

315
00:22:29.040 --> 00:22:33.940
<v James Perkins>two guys. And then secondly, getting those requests in of, is this ever going to happen

316
00:22:33.940 --> 00:22:38.820
<v James Perkins>again? Like, how can we trust the platform if this is the case? And having to explain ourselves

317
00:22:38.820 --> 00:22:44.380
<v James Perkins>and being like, the reason that we did this was because of a tech decision we made in the original MVP

318
00:22:45.040 --> 00:22:46.880
<v James Perkins>that we want to move away from.

319
00:22:47.100 --> 00:22:51.360
<v James Perkins>And even if we ever make any changes to this core product, this won't happen again.

320
00:22:51.600 --> 00:22:55.080
<v James Perkins>And we proved that when we went back to TypeScript and used Cloudflare Worker,

321
00:22:55.100 --> 00:22:59.180
<v James Perkins>we didn't have to make everybody reissue a bunch of keys or anything like that.

322
00:22:59.320 --> 00:23:01.500
<v James Perkins>We just made the switch seamlessly.

323
00:23:03.360 --> 00:23:04.440
<v Noah Labhart>Last question, James.

324
00:23:04.440 --> 00:23:07.920
<v Noah Labhart>James. So you're getting on a plane and you're sitting next to a young entrepreneur who's built

325
00:23:07.920 --> 00:23:11.840
<v Noah Labhart>the next big thing. They're jazzed about it. They can't wait to show it off to the world and can't

326
00:23:11.840 --> 00:23:15.400
<v Noah Labhart>wait to show it off to you right there on the plane. What advice do you give that person having

327
00:23:15.400 --> 00:23:16.680
<v Noah Labhart>gone down this road a bit?

328
00:23:18.140 --> 00:23:21.080
<v James Perkins>First, show it to everybody. Show it to people on planes.

329
00:23:21.380 --> 00:23:26.320
<v James Perkins>Show it to your friends. Show it to your family. Show it to anybody that would want to listen.

330
00:23:26.740 --> 00:23:31.720
<v James Perkins>I think the key thing for us in getting to where we are today was less about the product in the

331
00:23:31.720 --> 00:23:35.620
<v James Perkins>the beginning and more about yelling from the rooftops that we've brought this product out.

332
00:23:36.260 --> 00:23:41.040
<v James Perkins>I believe that there's two ways a product dies in the world. One is that you don't market it,

333
00:23:41.120 --> 00:23:45.280
<v James Perkins>and two that you have terrible support. So in the beginning, you only have to worry about one

334
00:23:45.280 --> 00:23:50.520
<v James Perkins>of those, which is making sure you can market to anybody. So if you've already got the MVP

335
00:23:50.520 --> 00:23:55.720
<v James Perkins>or you're halfway there, now's the time to start talking about it. Talk about it with your friends,

336
00:23:55.720 --> 00:23:57.520
<v James Perkins>if they're in the same space as you.

337
00:23:58.040 --> 00:24:00.340
<v James Perkins>And overall, just have fun.

338
00:24:00.980 --> 00:24:02.740
<v James Perkins>I think people get way too serious

339
00:24:02.740 --> 00:24:03.560
<v James Perkins>when they're worried about,

340
00:24:03.740 --> 00:24:05.380
<v James Perkins>oh, I need to get funding for my product.

341
00:24:05.960 --> 00:24:06.740
<v James Perkins>Have fun.

342
00:24:06.840 --> 00:24:08.560
<v James Perkins>If you don't enjoy what you do every day,

343
00:24:08.660 --> 00:24:10.860
<v James Perkins>if you get $10 million,

344
00:24:11.480 --> 00:24:13.260
<v James Perkins>you're not going to be fulfilled every day

345
00:24:13.260 --> 00:24:14.680
<v James Perkins>if the product that you're building

346
00:24:14.680 --> 00:24:16.400
<v James Perkins>is not actually what you wanted to build

347
00:24:16.400 --> 00:24:17.080
<v James Perkins>in the first place.

348
00:24:17.520 --> 00:24:19.460
<v James Perkins>And I think that is a big thing.

349
00:24:19.620 --> 00:24:21.600
<v James Perkins>So yell it from the rooftops

350
00:24:21.600 --> 00:24:22.840
<v James Perkins>and make sure that what you're building

351
00:24:22.840 --> 00:24:24.720
<v James Perkins>is actually something you could see yourself building

352
00:24:25.720 --> 00:24:29.620
<v James Perkins>to 20 years are two really key pieces that I would give as advice.

353
00:24:29.920 --> 00:24:31.600
<v Noah Labhart>Couldn't agree more. Well, James,

354
00:24:31.640 --> 00:24:35.540
<v Noah Labhart>thank you for being on the show today. Thank you for telling the creation story of Unkey.

355
00:24:36.040 --> 00:24:38.280
<v James Perkins>Absolutely. Yeah, really had a good time. Thank you so much.

356
00:24:40.660 --> 00:24:43.300
<v Noah Labhart>And this concludes another chapter of Code Story.

357
00:24:48.180 --> 00:24:54.020
<v Noah Labhart>Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify,

358
00:24:56.220 --> 00:25:01.120
<v Noah Labhart>choice. And when you get a chance, leave us a review. Both things help us out tremendously.

359
00:25:04.060 --> 00:25:05.540
<v Noah Labhart>And thanks again for listening.
