In reality, the whole thing is just one big set of compromises. For example, when we started the project, we didn't get official funding. It was a bottoms-up project, which was really cool at Uber at the time, that you could start a project like that and still get support from your management and then get official funding if it's successful. When we started the project, I told Samar, I don't like simple workflow design, even conceptually. I want to redo all of that. His answer was, and he's a very practical guy. I mean, he said, there is no way, right? We have zero funding. We have no time. We need to launch something. Let's just make something which looks like a simple workflow, at least on the high level. My name is Maxim Fateev. I'm CEO and co-founder of Temporal.
This is Code Story, a podcast bringing you interviews with tech visionaries.
It's six months moonlighting. There's nothing like the bedcams.
Who share what it takes to change an industry.
I don't exactly know what to do. Who
built the teams that have their back. Keeping scalability top of mind. The stories you don't read in the headlines.
It's not an easy thing to achieve.
To ride the ups and downs of the startup life.
It's not just about technology.
on Code Story. I'm your host, Noah Labhart, and today how Maxim Fateev is giving you code for more reliable systems, helping you deliver your features faster. Maxim Fateev grew up in the Soviet Union and witnessed its collapse. He left in 1995 and moved to Brazil, where he got his master's in computer science. In the late 90s, he moved to the US, eventually landing in Seattle, which he loves. He's been married for 27 years with three boys and loves to hike, play ice hockey, and snowboard. He mentioned there were a number of mountain choices, but he prefers Whistler in Canada when he can make the five-hour drive. During the development of open-source services at Amazon, Maxim came across the idea of durable execution. Eventually, at Uber, he launched an open-source library that eventually would become venture. This is the creation story of Temporal.
We started as an open source project. Obviously, we have a company now to monetize that, and the company is the main contributor to the core project. But again, it's mostly the most important thing about it. It's an open source project. Imagine you can write code, and there is runtime which will preserve the full state of execution of that code all the time, durably. We call it durable execution. So, for example, if you have a function which calls three APIs, A, B, and C, and this function is blocked on API B, and then process which hosts this function crashes, Temporal will resurrect that function in a different machine in exactly the same state. It still will be blocked on B, all the local variables, everything will be preserved. From the programmer point of view, nothing happened. This process just keeps running as nothing happened and beacon unblocked two days later and continue. It eliminates so much code which deals with failures, persistence. Temporal makes it seamless. You just write code and this code keeps running in presence of any failure. I joined Amazon first time in 2002 and back then I worked in a platform team. team. We owned quite a few technologies, but one of them was practically PubSub, like publish, subscribe, message, and queueing. And I was tech lead. I became tech lead of that team. I helped to design the distributed storage for queuing systems. As somebody who was overseeing the whole PubSub ecosystem of Amazon and talking to a lot of teams doing designs, it became pretty clear that event-driven systems are not the right abstraction to build such services. So we started So we iterated multiple times. And the third version became public. And it's still a public AWS service called AWS Simple Workflow, SWF. During developing that service, this idea of durable execution came to my mind. And then what happened is that we still didn't nail the developer experience. So idea was there, but it wasn't very well executed. After some time, me and my co-founder, who worked with me on Simple Workflow, ended up in Uber. At Uber, we initially built a pub/sub system because this is what we did all our lives. But then we actually decided to build a similar thing to a simple workflow. We called it Cadence, and we started as an open-source project. So this project organically grew from zero to over 100 use cases in three years at Uber. And it was built as an open-source from the beginning, so it started to get external adoption. And we started the company four years ago.
Let's dive into the MVP of Temporal then. version of the product you built how long did it take to build and what sort of tools were you using to bring it to life first
version was at amazon it was three iterations but if you talk about the actual project which we built a tuber it took us probably half a year to put it in production and we already knew what we are doing because we had previous experience building such systems we built it from the beginning as a highly scalable system but it took quite a while to make make it robust and scalable and like production worthy.
Okay. So with that first version and really with any sort of first version, you got to make certain decisions and trade-offs, right? You probably had some of the more, more powerful ones already worked out because you've been doing this for a long time, but I'm curious if there were any with temporal, what that first version that you launched in six months that you had to work through and how you cope with those decisions.
Reality, the whole thing is just one big set of compromises. For example, when we started the project, we didn't get official funding. It was a bottoms-up project, which was really cool at Uber at the time, that you could start a project like that and still get support from your management and then get official funding if it's successful. But we had practically zero funding, and just me, co-founder Samar, and an engineer to start on that. So we had to do a lot of compromises. The first compromise was that when we started the project, I told Samar, I don't like simple workflow design, even conceptually. I want to redo all of that. And I have a lot of ideas how to improve on that. His answer was, and he's a very practical guy. He's like more practical than I am in our relationship. And he said, there is no way, right? We have zero funding. We have no time. We need to launch something. Let's just make something which looks like a simple workflow, at least on the high level. And it worked out very nicely. And there were obviously a lot of like smaller design decisions we had to make during that. But the main one was that we just decided to don't do it right from the beginning because it could take like a few months just of the design time. We decided not to build our storage layer. We decided to use an existing database. And back then, the only highly scalable database that Uber had was Cassandra. So we had to build it on top of Cassandra, which actually wasn't easy because Cassandra, especially we are fully transactional service. So we had to use transactions everywhere. Cassandra wasn't a database which was built for high-scale throughput on transactions. So we had to spend a lot of time to make it work. You've
got the first version built. You've got it out there. How did you progress the product from there? And I'm curious about roadmap. How do you go about building your roadmap? What process or criteria did you use to decide, okay, this is the next most important thing to address or build with Temporal?
We are super developer-focused. From the first days of the project, it was about developers because we are a developer tool. We practically help developers to build their applications. So most of the new feature ideas come from talking to developers. And I still talk to developers all the time. I still even do support tickets and answer questions in the Slack. And one of the main reasons I do that is because I want to understand developers and what they're going through. Back then, it was just constant. Every new use case, every new problem, we were looking and saying, OK, we are missing this abstraction, we are missing that. this loop of constant improvements and sometimes you get big features which you have to have. For example at Uber you cannot run any important application if you cannot sustain regional outage. So we had to build multi-region replication stack which is super non-trivial but that was practically a requirement to be able to use by most important services at Uber. So that was the largest investment after we made initial project. And then things like, for example, new language support. At Uber, we initially supported only Go as an SDK, but then we added Java. And now as a company, we decided that we want to support as many languages as we can. We support six languages right now, like C Sharp, Python, Go, Java, TypeScript, PHP, and recently we added .NET. So we want to meet developers wherever they are. It's very expensive to create new SDKs, but we believe that it's worth it.
So let's switch to team then. So how did you go about building your team? And what did you look for in those people to indicate that they were the winning horses to join you?
We actually discussed recently with my co-founder what was the hardest in starting the company. And we agreed that hiring first 15 people was probably the hardest. We were lucky because we started the company already having product market fit because our open source was already getting pretty reasonable adoption option and had some users which were big fans of ours. But hiring first few people, especially in Seattle, was very hard because people in Seattle are not as versed about startups, how equity works, and they all worked for large companies mostly, and type of engineers we needed. They usually can get a job in any fun company, no problem. And that was very hard. What we are looking for, I think, A few things. First, caring about customers, which are developers in our case, a lot, right? So you just don't build cool solutions, you build cool solutions for the customers, for users. And then attention to detail. We are in the business of selling practical reliability because our service runs the most demanding and important workloads for every company. So we put a lot of effort to make sure that this is as reliable as possible. And also ability to work independently, right? You want somebody who's able to produce and work independently.
This will be really interesting. I'm curious about scalability. Given the history of what you've built, the product that you built itself, I hear you talking about Cassandra and the difficulties there. I'm curious about was this built to scale efficiently from day one or with scale in mind? Or have you been fighting this as you grow in any sort of capacity in anywhere?
We are super lucky here because, again, we had experience with Amazon and we built a public AWS service. And then later, my co-founder worked at Azure and he was also overseeing public Azure service. We had a lot of experience building large-scale systems. So we built Temporal from the beginning as a large-scale multi-tenant service, which is usually opposite to what people do, right? They think about developer experience and then they think about backend as an afterthought. we cared about developer experience, but backend was actually fought through from the beginning to be practically infinitely scalable. And so far, we actually achieved that because we were able to saturate any database we throw at it. We ran this over 100 nodes, Cassandra clusters, and right now we built our own persistence layer just for our internal kind of cloud offering, which our company provides for the hosted version. And we were able to do, for example, a million updates per second in a single database. called namespace. And we could go higher. It's just we didn't want to pay that large AWS bill for the infrastructure. At the same time, as we hit the scalability of any database, we always found workloads which would exceed any database scalability, even Cassandra one. That's why we had to build our custom persistence layer because we wanted to be able to scale practically infinitely.
As you step out on the balcony and you look across all that you've built, what are you most proud of?
At this point, I think the most I'm proud of is actually our developer community, because you build something and you can be super proud of the technical details of that thing or how cool it is. But if people don't care, that it's different. We created something which people care about. We have a very active community. We have a lot of champions who are bringing temporal to their companies. We just had our conference two weeks ago. and we had over 500 people there and just energy of all these people being there and really liking the product and talking about that. That was really amazing. Other thing which I'm super proud of is just our team. I think temporal team is amazing. Like I've heard it from multiple people and multiple employees that this is the strongest team, not only engineering, but in general team they have worked with.
Okay, let's flip the script a little bit. Tell me about a mistake you made and how you and your team responded to it.
I don't think we made any kind of big strategic mistakes, mostly because we had product market fit before we started the company. There were quite a few tactical ones around hiring sometimes, around defining roles or just defining certain functions. As both me and some of our technical co-founders, we didn't understand the value of what all other functions of the company should be. So it took us quite a while to just even understand what we need. to build. Initially, one of the big, I wouldn't say mistakes, but what happened is that we started the company, we always worked in offices. So we wanted to create a normal company which works from an office. And we started in Seattle, in Bellevue. What happened? COVID happened. And for a year, we were resisting everybody's urge to hire people outside of Seattle. We were We're working from homes and we said, no, we will only hire people in the Seattle area. And at some point we couldn't hire anyone for over two months. And we kind of, okay, we need to go remote. And we became fully remote company. And I think it was a very good decision because type of talent we are able to get right now, especially in leadership positions and like just engineers, is amazing. Creates a lot of challenges, obviously, especially for me who never worked for a remote company, it's a challenge. But I think at the end, everybody won.
So this will be fun. With Temporal, what does the future look like for the product and for your team?
I think the most important part for us as a product is just awareness. Because this new way to write distributed systems for durable execution is amazing. People love it. But the problem is that most developers never heard about it. So that is the most important thing for us, is just become ubiquitous. I want every developer to use durable execution when they think about their next backend system. We as a business and as open source projects, we want to become as ubiquitous as something like Kubernetes, for example, or even more. But at the same time, as a business, I think we have a very good way to monetize that. We have a cloud service, which is SaaS offering. We believe that we would be able to scale that service to the needs of every business. Longer term, I think we will have an amazing cloud business. very significant revenue. Our goal is that most businesses out there use Temporal for their business-critical applications. And we already have a lot of examples. When I drive from, for example, from San Francisco airport to San Francisco on a business trip, probably more than half of the billboards are users or customers of Temporal, which makes me pretty proud.
Okay, let's switch to you, Maxim. Who influences the way that you work? Name a person or many persons or something you look up to and why.
I don't think there is one person. I don't know. At least, like I say, I try to copy. I'm certainly very influenced by Amazon in general because I worked eight and a half years at Amazon. And the most thing which amazed me at Amazon, how it was able to grow so large, so fast, and at the same time, maintain that ability to people feel that urgency, right? Amazon is probably the only large company I worked with Every team feels like a startup And every team feels understaffed And every team feels like they have more work to do than they can do And they're super excited to deliver that to the customers And they're very super customer-oriented I think this is something which I admire And this is something which I absolutely want to maintain in Temporal as well Other thing is that As I have physics education originally I think a little bit differently than most people I think Elon Musk mentioned it once that he tries to think from first principles because he has physics degree. Related to myself, I thought I cannot do the same thing. It's that very frequently I look at the problem very differently than most engineers because of my different education.
We talked about a mistake, right? But this is a little bit different spin. If you could go back to the beginning, what would you do different? Or where would you consider taking a different approach? It doesn't have to be something that didn't work out. It could have been something that worked and worked well, but maybe you'd tweak it a little bit.
a few things. One is that I probably would start a company, my first company, probably 15-20 years earlier if I realized how these things work. Because I had quite a few ideas which would be absolutely monetizable and I could build large companies around them. At the same time, I'm probably a much better person right now than I was 20 years ago. Empathy wasn't my thing. So I think I'm certainly a much better CEO now than I would be 20 years ago. I like building things so my usual operational mode was start the project prototype the project put the first version out maybe second version out and then move to the next thing and I did it multiple times in my career the problem is that most project I started they stagnated after I left it's not like they died it's just they didn't move to the next level and I almost left actually the temporal project like Cadence project at Uber because we launched the first version it was was growing fast, everything was fine. I'm like, okay, I've done most of it. Let me do something else. For some reason, something stopped me because I just believe that this is such a huge opportunity in general that I just wanted to see it to the end. And I'm still seeing it to the end.
Last question. So you're getting on a plane and you're sitting next to a young entrepreneur who's built the next big thing. They're jazzed about it. They can't wait to show it off to the world and can't wait to show it off to you right there on the plane. What advice do you give that person on down this road a bit.
It's a marathon, right? So you need to be prepared for years, maybe tens of years, to walk on this thing, keep walking on that thing, and be passionate about it. You need to find passionate users and passionate people who understand your next big thing and love your next big thing. And it shouldn't be your friends. It should be people outside of your immediate circle. If you can do that, then it's execution, which is not easy, but it's possible.
That's fantastic advice. Well, Maxim, thank you for being on the show today. And thank you for telling the creation story of Temporal. Thank you. And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. And when you get a chance, leave us a review. Both things help us out tremendously. and thanks again for listening.