New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
S8 E28: Durable Execution for Reliable Apps with Maxim Fateev of Temporal
Oct 24, 2023 20:32 S8 E28

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

0:00 / 20:32

About this episode

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.

Sponsors

Links

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/



Current Sponsors:

Checkout our Substack

Checkout our Stacklist!

Checkout our Patreon!

Hosted by Noah Labhart.



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

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Featured Guest

Latest Season of the Podcast is Sponsored By

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.

Frequently Asked Questions

What is Temporal and what is durable execution?

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]

How did Temporal grow out of AWS Simple Workflow and Uber Cadence?

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]

What trade-offs went into the first version of Cadence at Uber?

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]

How does Temporal handle scalability?

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].

What advice does Maxim Fateev have for young entrepreneurs?

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].

Media List 5000, Podcasts, Fall 2026