# S8 E28: Durable Execution for Reliable Apps with Maxim Fateev of Temporal

Published: 2023-10-24
Duration: 1232s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/1ff468ad-b9dc-47d1-ac2a-cb17e7d7750c/stream.mp3

## Key Takeaways
- Durable Execution Explained: If a process crashes while a function is blocked on an API call, Temporal resurrects it on another machine with its local variables and state intact, removing much of the code that handles failures and persistence.
- Compromise to Ship: With practically zero funding, Fateev wanted to redesign AWS Simple Workflow's concepts, but co-founder Samar argued for keeping it similar at a high level. The team also built on Cassandra instead of writing its own storage layer.
- Backend Designed for Scale: Temporal was built from the start as a large-scale multi-tenant service. Workloads that exceeded database limits led to a custom persistence layer for its cloud, which has handled a million updates per second in one namespace.
- Developers Drive the Roadmap: Most feature ideas come from developers, and Fateev still answers support tickets and Slack questions. Uber's need to survive regional outages drove multi-region replication, the largest investment after the initial project.
- Going Remote Unlocked Hiring: Temporal resisted hiring outside the Seattle area for a year during COVID. After going over two months without being able to hire anyone, it became fully remote, which opened up strong engineering and leadership talent.

Maxim Fateev grew up in the Soviet Union, and witnessed its collapse. He left in 1995, and moved to Brazil, where he got his Masters in Computer Science. In the late 90's, he moved to the US, eventually landing in Seattle, which loves. He's been married for 27 years, with 3 boys, and loves to hike, play ice hockey, and snowboard. He mentioned there were a number of choices, but he prefers Whistler in Canada, when he can make the 5 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 the basis of his current venture.

This is the creation story of [Temporal](https://temporal.io/).

Sponsors

- [Cipherstash](https://cipherstash.com/codestory)
- [Treblle](https://www.treblle.com/codestory)
- [CAST AI](https://cast.ai/codestory/)
- [Firefly](https://www.gofirefly.io/codestory)
- [Turso](https://turso.tech/codestory)
- [Memberstack](https://memberstack.com/codestory)

Links

- Website: [https://temporal.io/](https://temporal.io/)
- LinkedIn: [https://www.linkedin.com/in/fateev/](https://www.linkedin.com/in/fateev/)

  

Timestamps

00:00 – Intro

05:10 – Building the Temporal MVP

05:45 – Early Decisions and Trade-Offs

07:40 – Shaping the Temporal Roadmap

09:28 – Hiring the Early Team

10:54 – Scaling Temporal

12:41 – Proudest of Developer Community

13:44 – Mistakes and Lessons Learned

15:15 – The Future of Temporal

16:31 – Maxim's Influences

17:47 – What He'd Do Differently

19:12 – Advice for Young Entrepreneurs

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Maxim Fateev from Temporal: [https://www.codestory.co/episodes/s8-e28-from-co-creating-aws-swf-and-uber-cadence-to-a-15b-tech-backbone-building-fault-tolerant-application-state-rails-with-maxim-fateev-of-temporal/](https://www.codestory.co/episodes/s8-e28-from-co-creating-aws-swf-and-uber-cadence-to-a-15b-tech-backbone-building-fault-tolerant-application-state-rails-with-maxim-fateev-of-temporal/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 5:10 — Building the Temporal MVP
- 5:45 — Early Decisions and Trade-Offs
- 7:40 — Shaping the Temporal Roadmap
- 9:28 — Hiring the Early Team
- 10:54 — Scaling Temporal
- 12:41 — Proudest of Developer Community
- 13:44 — Mistakes and Lessons Learned
- 15:15 — The Future of Temporal
- 16:31 — Maxim's Influences
- 17:47 — What He'd Do Differently
- 19:12 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** What is Temporal and what is durable execution? — **A:** Temporal is an open source project, backed by a company of the same name, whose runtime durably preserves the full state of running code. Maxim Fateev explains that after a crash, "Temporal will resurrect that function in a different machine in exactly the same state." [03:12]
- **Q:** How did Temporal grow out of AWS Simple Workflow and Uber Cadence? — **A:** Maxim Fateev worked on the iterations that became AWS Simple Workflow, then built Cadence as an open source project at Uber, where it grew to over 100 use cases in three years before Temporal the company was started. Of the Amazon work, Fateev said, "During developing that service, this idea of durable execution came to my mind." [04:25]
- **Q:** What trade-offs went into the first version of Cadence at Uber? — **A:** Maxim Fateev's team had practically no funding, so they kept a design resembling Simple Workflow and used an existing database, Cassandra, which took significant work for a fully transactional service. As Fateev put it, "In reality, the whole thing is just one big set of compromises." [00:00]
- **Q:** How does Temporal handle scalability? — **A:** Maxim Fateev says Temporal was designed from the beginning as a large-scale multi-tenant service and was run on Cassandra clusters of over 100 nodes. Because some workloads exceeded any database's limits, Fateev said, "That's why we had to build our custom persistence layer" [12:34].
- **Q:** What advice does Maxim Fateev have for young entrepreneurs? — **A:** Maxim Fateev advises treating a startup as a marathon that may take years or even tens of years, and finding enthusiastic users beyond your friends. Fateev said, "You need to find passionate users and passionate people who understand your next big thing" [19:37].
