Latest / Talk Python To Me / #515: Durable Python Execution with Temporal
Transcript
- 0:00What if your code was crash-proof? That's the value prop for a framework called Temporal.
- 0:05Temporal is a durable execution platform that enables developers to build
- 0:09scalable applications without sacrificing productivity or reliability.
- 0:14The Temporal server executes units of application logic called workflows in a resilient manner that
- 0:19automatically handles intermittent failures and retries failed operations. We have Mason Egger
- 0:25from Temporal on to dive into durable execution in Python. This is Talk Python To Me, episode 515,
- 0:32recorded June 19th, 2025. Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:54This is your host, Michael Kennedy. Follow me on Mastodon where I'm @mkennedy and follow the
- 0:59podcast using @talkpython, both accounts over at fosstodon.org and keep up with the show and
- 1:05listen to over nine years of episodes at talkpython.fm. If you want to be part of our live episodes,
- 1:11you can find the live streams over on YouTube. Subscribe to our YouTube channel over at
- 1:15Talk Python.fm slash YouTube and get notified about upcoming shows. This episode is sponsored by
- 1:21Posit Connect from the makers of Shiny. Publish, share, and deploy all of your data projects that
- 1:27you're creating using Python. Streamlit, Dash, Shiny, Bokeh, FastAPI, Flask, Quarto, Reports,
- 1:33Dashboards, and APIs. Posit Connect supports all of them. Try Posit Connect for free by going to
- 1:39talkpython.fm/posit, P-O-S-I-T. The PyBay Conference is returning to the UCSF Mission Bay
- 1:46Conference Center in San Francisco, California on October 18th, 2025. Get your ticket and pick up a
- 1:53free conference course bundle from Talk Python. Get started at talkpython.fm/PyBay.
- 2:00Big announcement, we have a brand new course for you all data science types out there.
- 2:04Just Enough Python for Data Scientists. Data scientists get things done in notebooks,
- 2:09but production quality work needs more than ad hoc scripts. Just Enough Python for Data
- 2:14scientist gives you the essential Python and software engineering habits to level up your
- 2:20analysis without drowning in theory. In a few focused hours, you'll tighten up your core Python,
- 2:25write clean and reasonable functions, organize code into importable modules, track work with
- 2:30Git and GitHub, debug confidently, and make your results reproducible with pinned environments and
- 2:36Docker. You'll also see how modern agentic AI tools can accelerate data exploration, bug detection,
- 2:43refactoring, and documentation. The outcome is simple. You keep your notebook speed while gaining
- 2:48the reliability, collaboration, and professionalism your projects deserve. Just visit talkpython.fm
- 2:55and click on courses in the nav bar. The link to the course is also in your podcast player show
- 2:59notes. And if you'd rather focus purely on building with LLMs, check out Vincent Warmerdam's
- 3:05LLM building blocks for Python course we just recently released as well. Now on to that interview.
- 3:11Mason, welcome to Talk Python To Me. Fantastic to have you here.
- 3:14It's great to be here. Long time listener.
- 3:16Oh, wonderful. I'm definitely a fan of stuff I've seen you doing online as well.
- 3:20And it's super cool to get together here and, you know, share it with a couple of people.
- 3:24Yeah, definitely excited.
- 3:26Temporal. Wow, what a cool topic. Durable execution.
- 3:29What a neat idea that I've seen in other places, but I've seen less of it in Python.
- 3:34So I'm real excited to dive into this.
- 3:35This is something I learned about recently.
- 3:37We'll go into that in a bit, but there's a lot here.
- 3:41Let's just leave it like this could be a two hour show and we'd still be going easy.
- 3:45Definitely.
- 3:46Yeah.
- 3:46I, I spend a lot of my time educating people about durable execution.
- 3:49that's, that's what my role is.
- 3:51I'm a develop, one of the developer educators at temporal.
- 3:53and definitely you could spend hours on this and we would, we could be going forever.
- 3:58So yeah.
- 3:59Yeah.
- 3:59And we definitely could.
- 4:00Well, before we do go on for hours, who are you?
- 4:03It was Mason.
- 4:04Oh yeah.
- 4:04my name is Mason Egger.
- 4:06I am a developer educator at temporal, as I mentioned.
- 4:09And I also help run the PyTexas conference.
- 4:13So PyTexas is one of the oldest, actually the oldest regional Python conference in the
- 4:18world that we know of.
- 4:20No one else has come to claim that spot yet.
- 4:22We started in the late fall of 2007, like right after PyCon US would have started.
- 4:28We'll be experiencing our 20th year this upcoming year, which is exciting.
- 4:31And I also am the president of the PyTexas Foundation.
- 4:34So PyTexas has its own 501c3 organization that is used to basically act as a sheltering organization for all of the Python meetups and events that go on within the state of Texas, which is really nice.
- 4:46So I was elected president of that back in 2002.
- 4:50I've been helping run and build the Python community there ever since.
- 4:53And it's a lot of work, but it's a lot of fun.
- 4:55And I really enjoy my community work.
- 4:57Yeah, it sounds extremely fun, although also challenging.
- 5:00You say for the entire state of Texas, Texas is a big place.
- 5:05It's like countries as well, if you look at the size of Texas.
- 5:09It really is.
- 5:09Texas has some unique issues with it when it comes to running community stuff.
- 5:17We founded our own virtual meetup for basically anyone in Texas, and anyone else can join,
- 5:22obviously, too.
- 5:22We don't say, oh, no, no Texans can join it.
- 5:25But we did it because the amount of feedback we would get, it's like, oh, I live in, say, the DFW area, the Dallas-Fort Worth area, and I would love to go to the meetup, but I live two hours away from the meetup because of how large the Texas cities are.
- 5:37Texas cities are sprawling metroplexes.
- 5:40I grew up in the Houston area, and the joke when you grew up in Houston is you're always three hours away by car from every other part of Houston.
- 5:48And that really is the case.
- 5:49So it does have its own set of unique challenges, trying to coordinate four major cities across,
- 5:55you know, technically two time zones.
- 5:57If we can, if we include El Paso, the very, very edge, the very west part of Texas is
- 6:03in the mountain time zone.
- 6:05So it's an interesting bit of work.
- 6:07And we've been doing a really good job of expanding and like adding more and more offerings
- 6:11that we can offer to the community year over year.
- 6:13And it's been a lot of fun and I really enjoy it.
- 6:16It keeps me busy.
- 6:17That's for sure.
- 6:17Yeah, I could say.
- 6:19is that why people drive so fast in Texas? They've got so far to go.
- 6:23Exactly. Yes. I mean, the fastest speed limit in the United States is on the highway next to my
- 6:28house. It's 85 miles an hour and it's on the toll road next to my house because you're right. Like
- 6:32if you're trying to get from Austin to San Antonio, that's, I think it's about a hundred miles
- 6:37down. And like, if you're going 55, you'll get there in, you know, two and a half hours,
- 6:41but I can make it in an hour and a half hour and 15 minutes. If you just let me fly,
- 6:45I had no idea that the speed limit were that high.
- 6:49I knew they were high, but not that high in Texas.
- 6:51Yep.
- 6:52Wild, you know.
- 6:53You guys in Germany, come on.
- 6:55Yeah, it is the Southern Autobahn, basically.
- 6:59Fantastic.
- 7:00So you've had a bit of a tougher challenge, I suppose,
- 7:04or more challenges than a lot of people with this whole Pi Texas thing,
- 7:07which I've always thought was super cool.
- 7:09I'd love to go sometime.
- 7:10It's far from Oregon, but still would be really lovely.
- 7:13That said, you started working on this COVID time, right?
- 7:17Which for conferences is the kiss of death.
- 7:19You want to talk us through how that went?
- 7:21Yeah, I could definitely talk about that for a while.
- 7:24So I got involved in conference organizing, as most people do, by first speaking at the
- 7:29conference.
- 7:30So I spoke at the conference in 2019.
- 7:32I had been a PyCon attendee prior to that.
- 7:35My first PyCon attendance was the last Portland one, which I believe was 2017.
- 7:42and then spoke at Pitexas in 2019 and volunteered to help for the 2020 conference.
- 7:47And that was really interesting because, you know, we had planned to do it in person.
- 7:50I think everybody had planned, was planning in person 2020, you know, because you, for
- 7:55those that don't know, when you start planning a conference, you start planning about eight,
- 7:5910 months prior.
- 8:00So if you're a spring conference as Pitexas is, we were planning, you know, Pitexas 2020
- 8:05in about summer of 2019.
- 8:07No one knew what was coming.
- 8:09We were so innocent then.
- 8:11Yes.
- 8:12We really were. So we were planning that. And then, you know, the events that we know of happened
- 8:18and we kept chasing it. We kept pushing it back. I think a lot of conferences at that time kept
- 8:21pushing back thinking, Oh, we'll be out of this in two weeks. We'll be out of this in three months.
- 8:26We ended up going virtual. And then in 2021, we made the conscious decision to just not have a
- 8:30conference. The virtual conference for us in 2020 wasn't overly successful. And we've, at that time,
- 8:36we were feeling there was just a lot of virtual conference fatigue and we didn't have a really
- 8:39good story on how to like make it work and dedicate the time. Everybody was also struggling
- 8:48to handle the world at that time. So being able to put more resources into it was difficult.
- 8:53So we pushed that off and then we came back in 2022. We made a very conscious decision about it.
- 8:58Like we were like, we're going to come back in the safest way possible. PyCon US had announced
- 9:01they were coming back. We decided we were going to come back. We had, we have a venue that has
- 9:05custom air filtration. We instilled mask mandates and vaccine mandates and all of that stuff.
- 9:10And we had 76 people return. But we knew that if we didn't come back, if we let this kind of like
- 9:16continue on, that the likelihood of getting the community to come back, that the memory
- 9:20is short, that if we didn't come back, we might lose it forever. And having run this for 18 years,
- 9:26we were concerned about losing it at that point. I think that's totally valid. A lot of this
- 9:30conference attending is it's habit. You form, you've gone a bunch of times. You really enjoy
- 9:36it. Like, yeah, of course I'm going to go. You don't even question like, well, when is it? I'm
- 9:38just going to sign up when it comes out. But you know, if you stop going, then I think that does
- 9:43make a big change. So it definitely does. So in 22, we, we did it and then we kept coming back.
- 9:48And then, you know, every year prior after that, we, we continue to grow. it took us three
- 9:53years to get back to above, what, what I would consider pre-pandemic normals. and the,
- 9:59the fun fact about that is, and the thing that I think that really kind of helped us out is like,
- 10:03we didn't really start seeing the growth back in the conference attendance until us as the
- 10:08foundation turned our inwards local or sorry, our vision local or our site to start focusing on the
- 10:15local meetups, because the local meetup scene had not returned. And that was the vast majority of
- 10:19our of our of our marketing was that we would send out these emails and stuff or the local meetups
- 10:24would promote us. And these are huge meetups. I mean, the Python, the some of the Python meetups
- 10:29are some of the oldest meetups that I know of. I mean, like they started in the early,
- 10:33in the late aughts in the early teens. Yeah, I would say they probably were not even called
- 10:38meetups when they started, right? The user groups or something. They predate meetup. Yeah,
- 10:43meetup.com and all that. Yeah, I think the PyHouston meetup group is called,
- 10:47like their tag on meetup.com is Python-14. So I'm assuming it was the 14th Python meetup when it was
- 10:55created in the world on meetup.com. so, and you know, large groups, but these meetups had
- 11:01gone dormant. So what I did as, as foundation president at that time was I was like, okay,
- 11:05I'm going to spend all of my effort while my organizers are helping get the conference going.
- 11:09I'm going to spend all of my effort finding organizers and rebuilding these meetups in
- 11:12these areas. so I would connect with people that I knew in the area. I would reach out to
- 11:16friends. I would put out all calls and after time of rebuilding the ecosystem, then we basically
- 11:22everything came back to life. And that's kind of where a little, you know, the things that I have
- 11:25learned is that if your, if your meetup ecosystem is not healthy, then your regional Python conference
- 11:30ecosystem will not be healthy because it has to feed up into it. Yeah. Yeah. I think it's,
- 11:36it's such a challenge to run like a conference or podcast or whatever to draw in new people.
- 11:43I mean, you can do all the amazing mailing lists and announcements and everything,
- 11:47but you're speaking to your existing people that know about you and finding new ones is really
- 11:51interesting and this cultivating like user groups to sort of be the foundation. It's a very
- 11:56interesting idea. Definitely. User groups work. I think we also started the PyTexas meetup,
- 12:01which was a virtual meetup that we do monthly that we allow anyone to join. And we cultivated
- 12:05amongst our network of friends and social media and word of mouth. And then we all know what
- 12:10happened with the social media situation, which really did not help. I mean, there was a lot of
- 12:14just a lot of things that have happened with like the dissolution of Twitter really did not help
- 12:20the conference and the tech ecosystem. Basically, we've all fractured now. We're all in like six
- 12:24different places. Like the move to Mastodon is not complete. Bluesky had its moment, but I honestly
- 12:30get less engagement on Bluesky than anything else. LinkedIn has surprisingly been our most successful
- 12:36social media platform. It seems like a lot of people have moved there for some reason or another.
- 12:41But basically, it means that you just have to reapply your marketing strategies. And the fun
- 12:46thing that I've had the benefit of is that as my work as a developer advocate, all the roles that
- 12:51I have done, they tend to sit in marketing. Developer advocacy tends to either sit in
- 12:55product or marketing. All the roles that I have taken sit in marketing. And I've had the benefit
- 12:59of like, whenever this has started going weird, I can ask all of my marketing friends, hey, what
- 13:04would you do in this situation? How would you approach this? So I've got to learn through
- 13:08osmosis kind of how marketing stuff works and being able to apply that to conference organizing
- 13:12and meetup organizing has actually been substantially beneficial to us.
- 13:16Yeah.
- 13:17Certainly, I think companies that are turned on enough to have developer advocates have
- 13:22developer intelligent marketing teams, and that's a real resource.
- 13:25Definitely.
- 13:26Yeah.
- 13:26It's been really useful to be able to get other people's opinions.
- 13:29And then, you know, just ask other conference organizers, what are they doing?
- 13:32I think that, you know, finding out what works and telling other people about it.
- 13:36I mean, we, I haven't had a chance to write this year's blog post yet, unfortunately,
- 13:40for this year's conference.
- 13:41But whenever I became conference chair and then president, I was like, we're going to be as transparent as possible.
- 13:47Every misstep we make, we're going to blog about it.
- 13:50We talk about our budget.
- 13:51I mean, we're also a 501c3, so that's kind of like part of our bylaws.
- 13:54But at the same time, it's like this is everything that we do.
- 13:57You can find it on all of our websites.
- 13:59And this is what worked.
- 14:00This is what didn't.
- 14:00Because there's so many first-time conference organizers who may want to start a conference who don't know how to achieve these goals or whatever they're trying to do.
- 14:08And we have 20 years of experience doing it.
- 14:11And like it, we need to help each other out and make sure that we distill this, this knowledge
- 14:15outward.
- 14:16I don't have 20 years of experience.
- 14:17So I'm only doing it for four, but you know, institutional knowledge.
- 14:20There are, there are Google docs with like years of back data that I can go and look
- 14:24at and be like, oh yeah, in 2009, we ordered way too many meals because we, you know, didn't
- 14:30charge enough for, we didn't charge anything for tickets.
- 14:32Like PipeSex used to be a free conference.
- 14:34And basically when you don't charge anything for tickets, one of the lessons that we learned
- 14:37is that people will just sign up for a ticket and then not show up.
- 14:40And then your catering gets all kind of out of whack.
- 14:42So even charging just a little bit of money, like five bucks,
- 14:45I think we charge like five dollars for our network event.
- 14:47It's not because I need the five dollars.
- 14:48I mean, I've told I've told my we spend, I think,
- 14:50thirty dollars per person on the food.
- 14:52It's like it's to make sure that you have a little bit of like skin in the game
- 14:55to make sure that you show up so I can get an accurate headcount
- 14:58for the for the for the catering.
- 15:00So we don't blow the budget by ten thousand dollars.
- 15:02Like I'm not envious of that.
- 15:04I certainly it's easy to just check a checkbox.
- 15:07Yeah, I'm interested in food.
- 15:07Why not?
- 15:08Yeah.
- 15:09If I come.
- 15:10Yeah.
- 15:10Exactly.
- 15:13This portion of Talk Python To Me is brought to you by the folks at Posit.
- 15:16Posit has made a huge investment in the Python community lately.
- 15:20Known originally for RStudio, they've been building out a suite of tools and services for Team Python.
- 15:26Today, I want to focus on hosting your Python-based data science workloads.
- 15:31This includes dashboards, reports, plots, interactive web apps, all the way to custom Flask and Django apps.
- 15:38Their service is Posit Connect.
- 15:40Posit Connect makes it easy for data scientists to share work built with Python code.
- 15:46If you have a streamlet app, Dash, dashboard, Plotly interactive plot, a FastAPI service, or even a Quarto report,
- 15:53just give Posit Connect the code it needs to maintain the asset and Connect automatically does the rest.
- 15:59Connect will manage your APIs and serve your interactive apps for you.
- 16:03And if you want, you can update your reports and dashboards on a scheduled basis.
- 16:07That's right.
- 16:08No need to explain to the stakeholders why that dashboard or plot stopped updating last week.
- 16:14You get a focus on your data science and leveraging your skill set while Connect makes you look good,
- 16:19keeping your code running and private.
- 16:21With Connect, you get a private URL on your Connect server,
- 16:25ensuring that your asset is continuously available to your shareholders.
- 16:29And you can control which users have access to the asset.
- 16:32Let Posit Connect handle the delivery and DevOps involved in sharing your work.
- 16:37You focus on what you do best.
- 16:39So if you work on a data science team, you owe it to you and your org to check out Posit Connect.
- 16:45Visit talkpython.fm/connect today and get a three-month free trial to see if it's a good fit.
- 16:51That's talkpython.fm/connect.
- 16:54The link is in your podcast player's show notes.
- 16:56Thank you to Posit for supporting Talk Python To Me.
- 16:59out in the audience.
- 17:01Toon Army says,
- 17:02yay,
- 17:02PyTexas Foundation.
- 17:03That's pretty awesome.
- 17:04Yeah.
- 17:05All right.
- 17:05Well,
- 17:06let's talk.
- 17:07Emporal.
- 17:08Now,
- 17:08I came across this
- 17:09a few weeks ago
- 17:10from this,
- 17:11you know,
- 17:12I think this,
- 17:12ironically,
- 17:12I think this might be
- 17:13the blue sky
- 17:14that I came across it on.
- 17:15Interesting.
- 17:17No.
- 17:18Okay.
- 17:18It was on X.
- 17:19There's still apparently
- 17:19stuff that happens on there.
- 17:22I miss Twitter.
- 17:23I do too.
- 17:23And, you know,
- 17:24people like post weird
- 17:26comments on,
- 17:27like reviews
- 17:28like oh you know they said they don't like twitter so they must be whatever like no just that used to
- 17:35be so active and it's not so active like put put aside everything else it used to be like you could
- 17:39have great conversation you still can but it's so much less than it used to it's an easy it's an easy
- 17:44explanation the signal to noise ratio is completely messed up now yes it used to be such a much better
- 17:49place because everybody was posting there and there wasn't as much noise and now the signal to noise
- 17:52ratio makes it almost unintelligible to be able to find anything of any use and that's the number
- 17:57one problem with it. And you pay for attention and there's six other places like you said. So anyway,
- 18:01so I found this post from, we'll work it backwards, from Pietro. It says, people aren't talking enough
- 18:08about how most of OpenAI's tech stack runs on Python, which I thought was a super cool post.
- 18:14It comes from the Pragmatic Engineer newsletter and it talks about how most of the product's code
- 18:20is written in Python, uses FastAPI, C for certain parts. And then, so all that stuff made, I'm like,
- 18:26yep, yep. Temporal, use for asynchronous workflows. I'm like, what is Temporal? And then I think you
- 18:32sent me a message and said, hey, I would love to talk to you about Temporal. And I looked at him,
- 18:36yeah, this is super cool. So that's how I learned about you guys, which I thought was pretty neat.
- 18:42And yeah, let's talk about it. What is Temporal? Yeah. So Temporal is essentially what we call a
- 18:51durable execution platform. And it's durable execution is kind of a new term or a new like,
- 18:57like field within the zeitgeist, as you would call it. And we're kind of going with like what
- 19:03we're calling crash proof execution. And the way that we kind of talk about it now is like,
- 19:08essentially, it handles the failure state of your of your applications and ensures that your code
- 19:13will continue execution regardless of the failures that it encounters. So say, for example, you have
- 19:20a application that's making a couple calls out to a microservice. Okay. And that microservice goes
- 19:25temporarily down. You as the developer would have to traditionally write a whole bunch of logic
- 19:31around handling that failure. Okay. So we have to detect that the failure has happened.
- 19:35What type of error did we receive? Now, what do we do? Do we back off and retry? Do we decide that
- 19:41this failure is non-retriable and we just don't do it? Like the difference between we're not
- 19:44authenticated versus a 404, those are completely different failure handling modes. And then,
- 19:49So there's all of this kind of logic that you have to build in to handle failure.
- 19:53Temporal basically abstracts this away from you.
- 19:56So whenever you have like a function call or a method call in Python,
- 19:59when implemented with Temporal, you automatically get like retries, for example, by default.
- 20:04So you get this like declarative policy that happens as a default policy,
- 20:08and it will automatically retry your application or your call until eventually it comes back online.
- 20:14Because let's be honest, in most distributed systems like this,
- 20:17those are most of the time intermittent failures.
- 20:19Like a microservice going offline, are you being rate limited?
- 20:22Those are usually fixable with a little bit of time and some retries.
- 20:27Now, there are other cases where they're not, but that's like the default policy.
- 20:30That's the default use case or the default for retries alone.
- 20:34And then there's a lot of other cases.
- 20:36So Temporal maintains the application state of your application.
- 20:41And so say you have like a Python application that has 10 steps in it and you get through
- 20:46step five and then the python application were to crash for some reason out of memory uh maybe
- 20:51your kubernetes pod got descheduled something like this and production happens happens all the time
- 20:55this is as a former sre this was this was the life that i lived for years um yeah even hey
- 21:02there's a security patch for the Linux server that's the yeah running this and we got to restart
- 21:07it and like uh we have to reboot yeah and now yes it's not wrong but like stuff is going on exactly
- 21:14So now when you have to deal with that, you're like, okay, so do we let everything get through and risk the attack surface?
- 21:19Or then you have to make the calculus.
- 21:21Do we just kill all the processes and then wait for, and then restart them?
- 21:26What's the cost on the restart?
- 21:28And then redoing all of that logic.
- 21:29Did they make any rights to the database?
- 21:31Do we have to worry about cleaning all that?
- 21:33There's all of this conversation.
- 21:35Since Temporal maintains that application state, that becomes a lot simpler.
- 21:39Because as we, I think we kind of alluded to it, but I'll state it outright.
- 21:42when that when you when that application crashes, and in a typical application, you have to start
- 21:47back over from the beginning. And you have to replay every you basically re execute everything
- 21:51you did unless you were have some like advanced sort of like event sourcing style model where you
- 21:56are keeping track of it. Temporal does this by default. So it maintains the event history and
- 22:01what's called an event history of your application. And what that does is every time a basically
- 22:06creates checkpoints, every time a function executes, it stores the result of it. And if that application
- 22:10were to crash, it will reschedule it onto another worker. That's what they're called in temporal.
- 22:15And we'll get into that in a minute within your fleet, re reconstruct the state of that application
- 22:20up into that point of failure, and then continue onward as if the failure had never happened.
- 22:24And more often than not, this happens without the developer even being aware of it. Like no,
- 22:29no alarms will go off unless you personally do them, because this is the design of the system.
- 22:33It's to ensure that in spite of failure, your application will continue executing.
- 22:37Yeah, that's awesome. And there's a bunch of neat ways in which that happens, which we'll talk about.
- 22:42But I think one mental model people should maybe think about when they consider these is it centralizes a lot of the error handling and the retry code and all of that stuff.
- 22:54So a lot of your application becomes simpler, not more complex.
- 22:58Exactly. Yes. That's actually one of the main feedback things that we get from people is, you know, all of this.
- 23:04There's so many mechanisms.
- 23:05There's so many actually like patterns
- 23:06that we have now built to handle all of these kind of things.
- 23:11Event sourcing, event-driven architecture,
- 23:12saga pattern, all of these different like CQRS,
- 23:15like all of these different distributed systems patterns
- 23:17that exist to handle all of these things.
- 23:20And Temporal basically abstracts away a lot of them
- 23:23and you get them basically for free
- 23:24out of the box with the project.
- 23:25And it does make your code a lot simpler.
- 23:27It makes it a lot more contained
- 23:30so you can walk through it straight down.
- 23:32Basically, as like almost as like it's a workflow, you know, the core primitive of temporal is called a workflow.
- 23:37We don't tend to like to refer to ourself as a workflow engine, but some people will say that.
- 23:41And I typically don't correct them on it.
- 23:44If that's if that's what it takes for people to understand, that's what it is.
- 23:46Fine. But durable execution is the actual phrase.
- 23:50It's a meaty topic. It's a it's kind of hard for people to like kind of wrap their heads around it.
- 23:54So I'm like, let's get you to understanding it and then we'll correct the little the little tidbits here and there.
- 23:59Yeah, excellent.
- 24:00So, you know, people are probably familiar with Hennick's stamina or with tenacity, which
- 24:07is interesting, where you might put a decorator onto a function and say, hey, if this fails,
- 24:12instead of just crashing, try it again.
- 24:15Yeah.
- 24:15Maybe a few times, maybe with exponential back off.
- 24:18And this is kind of a single thread of execution type of form of durability a little bit, right?
- 24:25Where it's like this function now becomes somewhat more reliable based on like maybe the service comes back or maybe your network comes back or whatever it happened to be that caused this particular example.
- 24:36But with temporal, it's a lot broader, right?
- 24:40Like every step, it saves the state.
- 24:45If something goes wrong, it can basically resume.
- 24:48I guess maybe this resumable idea is like one of the big difference, right?
- 24:52It's like, let's take our reboot the server example.
- 24:56Let's suppose we got some service that we work on that our app depends upon.
- 25:00We had to reboot it.
- 25:01Now what?
- 25:02It happens.
- 25:03Yeah.
- 25:03So, I mean, yeah, you have a service that our app depends on.
- 25:06We had to reboot it.
- 25:07So if the service, so we're assuming our service is on in like an external machine and it's
- 25:13calling out.
- 25:13Yeah, for some reason.
- 25:14Yeah.
- 25:14Or maybe it's a Docker container and we rebuilt the Docker container.
- 25:18It takes five seconds to start.
- 25:19Something like that.
- 25:20Yeah.
- 25:20So our service is, you know, calling out to it.
- 25:22it will basically retry until that comes back online.
- 25:24Now, if we were to reboot our service,
- 25:27say our service was running
- 25:28and we rebooted the container that contained it,
- 25:30it would basically, if we're in a Kubernetes system,
- 25:33the Kubernetes scheduler would probably reschedule it
- 25:36onto another node within the pod.
- 25:39And then it would reconstruct it.
- 25:41And what happens is there's actually,
- 25:43the Temporal exists as a kind of
- 25:47orchestrator executor model, like a service worker model.
- 25:50So the service maintains the history.
- 25:51So what will happen is whenever that new service comes online,
- 25:55or whenever the new execution comes online,
- 25:57we've rebooted it, it got rescheduled, it comes online,
- 26:00it will stream the old history from the service
- 26:02and then reconstruct it,
- 26:04basically going step by step through it.
- 26:06And so like the function A that was executed,
- 26:10the input and output values are stored in that event history.
- 26:13So the output value, it's like,
- 26:14oh, we've successfully completed execution of function A,
- 26:17store that in variable foo, and then continue onward.
- 26:20And then we can continue reconstructing that service up until it gets to the point where it's like, okay, we have no more events in the history about what happened.
- 26:27So now we know we've, you know, we have reconstructed successfully.
- 26:31Now we continue forward and execute as if nothing had happened.
- 26:35Yeah.
- 26:35So in your non-durable execution code, you might have try, accept, do something else.
- 26:42You might have stuff like stamina or tenacity where you're like, okay, we're going to try this again.
- 26:48There's a lot of that kind of code that you write.
- 26:51And in this world, you could just say like top to bottom,
- 26:54write the happy path, which is great.
- 26:57And then what happens is temporal says,
- 26:59okay, I tried to run this, it failed.
- 27:01So we'll reschedule it with a back off
- 27:03or something along those lines, right?
- 27:06So you can basically not deal with a lot of this
- 27:09and get visibility into the errors and the state of flow
- 27:12by letting the orchestrator manage that, right?
- 27:14Yes.
- 27:15And I'm covering like the top 10% of all the different features.
- 27:19There are so many interesting other features that Temporal provides as an ecosystem.
- 27:25So like one of the other really neat ones is that we provide a really simple way for
- 27:28things to do a human in the loop interaction.
- 27:31So you can very easily send in what's called a signal.
- 27:34So basically sending in data into a running execution and then basically doing some processing
- 27:38on it.
- 27:39So you're waiting on a confirmed signal from someone like your application is doing something
- 27:43you're waiting on to confirm.
- 27:44you can send that in directly into the workflow.
- 27:47And then that will basically be,
- 27:49that's persisted again within the events,
- 27:50within the event history.
- 27:52So if it crashes after that confirmation,
- 27:54that confirmation is stored as well.
- 27:57So you have that,
- 27:58you have the ability to do long running schedules.
- 28:00So there's some cron syntax,
- 28:02like what are called schedules in Temporal.
- 28:04There's so many different features in Temporal
- 28:07that are just really neat
- 28:09and can solve a lot of the problems
- 28:11that you're trying to do.
- 28:12And scaling becomes super easy as well.
- 28:14So like you want to scale, just add more workers to the fleet.
- 28:16That's the easiest thing you can do is just add more of these workers and they basically
- 28:21can be executed across all of your different fleets.
- 28:23So the scaling story is super awesome as well.
- 28:28This portion of Talk Python To Me is brought to you by PyBay.
- 28:31PyBay is an annual conference gathering of Pythonistas put on by the Bay Area Python
- 28:36Association.
- 28:37This year is returning to the UCSF Mission Bay Conference Center in San Francisco, California.
- 28:43It's a one-day conference on October 18th, 2025.
- 28:47I've spoken there previously and had a great time attending.
- 28:50And there's a bonus.
- 28:52Talk Python is sponsoring the conference.
- 28:54Every attendee gets a special conference bundle of paid courses for free as a conference gift.
- 29:00Plus, we'll be giving away a complete set of training materials for a dev team of some lucky attendees.
- 29:06So if you want to connect with the Python people of San Francisco
- 29:09and go home with courses from Talk Python,
- 29:12check out PyBay.
- 29:13Please use our link.
- 29:14It's talkpython.fm/PyBay.
- 29:16The link is your podcast player show notes.
- 29:19Thanks to PyBay for supporting the show.
- 29:21We'll get into it.
- 29:21There's definitely some examples of large scale use cases,
- 29:25you know, high frequency use cases of these things.
- 29:28But going back to the timing,
- 29:30you know, what if your user onboarding looks more like,
- 29:33I guess you could be real simple.
- 29:34You could say in order to create a user account,
- 29:36I have to first have them create and enter their username and email or their email and their
- 29:42password. And then I'm going to send them an email and they got to take an action based on that,
- 29:46right? That would be pretty common, like a long running type of thing you could consider. But
- 29:51for some of these systems, it's like, and prove who you are and upload a document.
- 29:57That's a picture of your ID and somebody will look at it and go, yeah, that looks real enough.
- 30:01And they check a box or, you know, those kinds of much longer onboarding things,
- 30:06Something like that could be modeled with temporal pretty easily.
- 30:08It sounds like.
- 30:09Yeah.
- 30:09So long running workflows are the other, that, that was the feature I couldn't
- 30:12remember, which was timers.
- 30:12And I have no idea why that left my mind.
- 30:14It's one of my favorite features.
- 30:15long running workflows are one of the like amazing use cases of, of temporal.
- 30:20So because everything is maintained in this, in that state and basically crashing
- 30:24doesn't really matter because we can just reconstruct the state, you can have
- 30:27workflows or you can have your executions that can last for days, weeks, years.
- 30:33This is kind of what we know, we kind of known as the entity workflow pattern.
- 30:37So essentially like a user who's going through an onboarding process, you know, like you just
- 30:41said, I think the identity workflow process is actually one of our exact sample applications.
- 30:46So, you know, like you're right, they lay sign up and they have to upload some forms of
- 30:49ID.
- 30:50Someone has to check it.
- 30:51It has to go through maybe a background check process and all of that.
- 30:54That's a long running workflow.
- 30:55That could take days.
- 30:56That could take weeks, depending on what kind of background check you're getting done.
- 31:00Temporal can suspend its state for however long it wants, you know, and we can guarantee that it will come back online.
- 31:07So the interesting thing, and whenever you ever, if you ever see Temporal at a booth at a conference, we were at PyCon this year, for example.
- 31:13Our code sample on our booth has a really interesting statement that always catches people's eye, and it's a little mini workflow, and it's sending emails.
- 31:21And what it does is it says sleep for 30 days.
- 31:24And nobody in their right mind would actually write a sleep for 30 days in code and expect it to actually function.
- 31:30100% works exactly the way you would expect it to in Temporal.
- 31:33And we can guarantee that it works because of the way that Temporal is architected.
- 31:37Those timers basically exist on the servers on this on this temporal service side.
- 31:41And they just get basically your workflow just gets scheduled to resume after the timer has fired.
- 31:46So you can guarantee that long running workflows will complete exactly the way that you expect them to.
- 31:52So, yeah, long running workflows, amazing use case for Temporal.
- 31:55Yeah, it sounds incredible.
- 31:56Now, I do want to dive actually in.
- 31:57It's super interesting how y'all made this happen in Python.
- 32:00But I do want to just maybe talk about the scale.
- 32:03Like if I were to run Temporal, now you guys have a cloud.
- 32:07So I guess stepping just a bit back.
- 32:09This is MIT licensed.
- 32:11Yes.
- 32:11But you also have pricing.
- 32:13Yes.
- 32:14Before we go into what I was going to talk about, let's talk about that difference there, that contrast.
- 32:18Yeah.
- 32:19What's the story?
- 32:20So Temporal is 100% open source.
- 32:22MIT licensed.
- 32:23And so there's the temporal service and there's the temporal SDKs.
- 32:26Every single one of our temporal SDKs are and the service and everything is MIT licensed
- 32:32forever and always that our founders are big, big fans of that.
- 32:36The only SDK that is not is the Java SDK, which is Apache 2.
- 32:40And if you know anything about open source licensing, there is basically a dependency
- 32:44further up the tree that was Apache 2.
- 32:47And you're not allowed to downgrade licensing if you ever make a derivative.
- 32:50So that's the only reason that one is.
- 32:52but every one of our other licenses is MIT licensed.
- 32:55So you could run Temporal open source and be fine.
- 32:58The thing that we have found is that at scale,
- 33:00the service itself is challenging
- 33:03and requires large SRE teams to run.
- 33:06Because essentially what we're doing
- 33:08is we're offering distributed systems as a service.
- 33:10We're offering reliability as a service.
- 33:12Just because we have abstracted
- 33:14these problems away from someone
- 33:16does not mean that the price
- 33:17does not have to be paid by someone.
- 33:18And I'm talking about the metaphorical price,
- 33:20not the dollar price.
- 33:22someone still has to ensure that that database stays up essentially and that your things are
- 33:27still getting scheduled and that the network is up and all of these. So it's super complex to do
- 33:33that. And you can run it. So you can run the temporal service locally. You can run the temporal
- 33:37workers locally. Everything you run is still local. The pricing model for temporal is just the temporal
- 33:42service part, which is run in temporal cloud. So there's a weird misnomer around cloud, which is
- 33:47like cloud always assumes that we run everything for you. Temporal cloud is different. Temporal
- 33:51cloud only runs the temporal service, your workers, where your code executes is always run,
- 33:57at least by for now until who knows if another product will ever come out. I don't know.
- 34:02Is run by you on you in your data center on your machines. So your code, your execution run by you,
- 34:07that service, that brain, the orchestrator, that's the part you could pay temporal cloud for.
- 34:12Right. That's the part that does the orchestration, the part that handles the
- 34:15the failure and retries and that kind of stuff, right?
- 34:18Yeah. Well, Ted, it's the part that actually the failure retries is handled by the state
- 34:22machines that are built in the SDK. It's the part that basically maintains the event history. It
- 34:26maintains the communication mechanisms and it is the orchestrator. Yeah. So, but.
- 34:32So if we use the cloud, I could like reboot my local data center machine or even my local data
- 34:37center. I mean, my version of the cloud, you know, wherever digital ocean or whatever. And when it
- 34:43comes back it'll sort of resume along like you guys will see that it's back and then yeah start
- 34:49running work on something like that that's what i was getting at technically yes so fun fun
- 34:53fun fact about it temporal the again the architecture of this is so brilliant and we could
- 34:58get so touched in the weeds about the temporal service does not actually know about any of the
- 35:02workers that are running it's always a call out model so your your your machines would come back
- 35:07online know that they have things they need to do they would basically start listening back
- 35:11Everything that happens in Temporal listens across task queues.
- 35:14So they would all come back online.
- 35:15They would start listening again.
- 35:17And then they would see that there's still work in the task queues, which the service
- 35:19maintains.
- 35:20But all the service does, it goes, oh, someone requested that I do something.
- 35:24And then it puts it on the task queue.
- 35:25And then the workers handle it.
- 35:26The true magic of Temporal lies within the state machines that are built within the SDKs.
- 35:31But they cannot function without that orchestrator service.
- 35:34I remember when I first started working on the courses.
- 35:38like my primary role is writing courses for Temporal.
- 35:42And if you go on to our Temporal Learn site,
- 35:44you can find a lot of our,
- 35:46I think it's learn.temporal.io.
- 35:48You can find a lot of our courses.
- 35:50I wrote the Java and the Python ones.
- 35:53I remember when I was first writing them,
- 35:54I kept asking the SDK engineers like,
- 35:56well, how does the server do this?
- 35:57How does the server do this?
- 35:58And one of the engineers was like,
- 35:59Mason, you're giving the server too much credit.
- 36:00It's not that smart.
- 36:02It's really the state machines within the workers
- 36:05that are doing all the heavy lifting
- 36:06and the service just maintains it.
- 36:08but with the long way around,
- 36:10what the cloud service does is it maintains that database.
- 36:12So the history, without that event history,
- 36:15that is the magic piece.
- 36:16The event history is the single source of truth
- 36:18of all things that have happened,
- 36:19and that's what the service provides and maintains.
- 36:22So whether you use the cloud version of that
- 36:24or you self-host that, that is up to you.
- 36:26Now, again, if you self-host it,
- 36:27you are now responsible for maintaining it.
- 36:28You are now responsible for upgrading it,
- 36:30security patches, all of that.
- 36:33And there are multiple case studies.
- 36:34There are multiple YouTube videos on our channel
- 36:37of people who have gone the self-hosted route
- 36:39and have found that the cloud route is easier
- 36:42once they've reached a certain scale.
- 36:44So yeah, it's pretty neat.
- 36:45- Yeah, yeah, cool.
- 36:46More and more, that's the business side
- 36:49of what works for open source, right?
- 36:51- Yeah.
- 36:51- 'Cause there's something that you wanna do,
- 36:53and then there's another requirement
- 36:55that you're probably not good at,
- 36:57and you guys would be really good at, right?
- 36:58Like for example, making sure that Temporal itself
- 37:01is reliable and fast and keeps running
- 37:04and that kind of thing, right?
- 37:05- Exactly, yes.
- 37:06And I think it does also come down to, and this is one of the interesting lessons that
- 37:11I've learned throughout my career, is that like, what is your core business?
- 37:14Is your core business to run and maintain a temporal service or is your core business
- 37:18to provide a service to your customers?
- 37:20And whenever the price of running your own services outweighs what you could have just
- 37:24paid someone else to do it for, then at that point, you have to take a look at something
- 37:28and go, maybe I should just pay the provider who has the expertise, who literally all they
- 37:33do all day long.
- 37:34Because usually someone's SRE team doesn't doesn't full time dedicate to learning the ins and outs of a single product.
- 37:39Like I was an SRE.
- 37:40I managed a cloud platform for VRBO for Virgo.
- 37:45I knew there was like 12 different applications in that stack.
- 37:48And the way that I learned about each one was the one that went down that day.
- 37:51So you're constantly like figuring out with like you're learning about it as it's on fire.
- 37:55It's a terrible way to learn.
- 37:58And that's not a great way to run it to to like live your life.
- 38:01i found right why i moved into developer education um exactly there's fewer uh midnight calls in
- 38:08developer education that is the primary reason why i do this now is i i like there is a point when
- 38:16the p when pager duty goes off like one too many times and you become a developer advocate and i'm
- 38:20living proof of that you just know yeah you take it off a space style you just take it out put on
- 38:25some uh gangster music just exactly right exactly if you don't know the reference you need to make
- 38:33sure you put watching office space yeah the movie right i've driven by the list i've driven by the
- 38:38area where it was filmed it was filmed out here in austin where i live was it incredible yes
- 38:42incredible okay so why did i sort of start in that path what i want to talk about is what is
- 38:46so you guys have a cloud version which obviously does stuff in massive scale you talk about a fleet
- 38:51of these things. And by the way, at the execution level, we're probably mostly talking Go and Rust,
- 38:57just so people know, it's kind of like fast, fast innards. But Rakesh asks, like, it seems to be
- 39:03resource insensitive. Is there a lightweight option? Like what is a, what is a minimal temporal
- 39:08rather than a, you know, what Uber does or what, you know, ChatGPT does? Because those things,
- 39:14you just can't compare them, right? It's like, you're not Microsoft, you're not Google, you're
- 39:18not LinkedIn, you're not Netflix. Don't try to be them most. Yeah, it depends on what you're
- 39:24trying to accomplish. So I mean, like, I think when it comes to so there's, there's always there's
- 39:27the service and then there's the worker fleet. So let's talk. I'll talk about the service first,
- 39:30and then we'll talk about the workers. So the service comes in a handful of different flavored
- 39:34offerings. There's a local development binary that is meant to be used for development. And
- 39:40that's what I use on my local laptop all the time. It's also more than suitable for home lab stuff.
- 39:46So if you're wanting to play with this in your home lab, use the use that single binary.
- 39:50It can it's got an in memory data store, but you can have it persist to it to a SQLite database
- 39:55will get you very, very far on home lab stuff. Non prod use cases. Totally fine.
- 40:00Speaker 1: SQLite is underappreciated. People see it as like a toy thing or like I can use this while
- 40:06I'm developing like a sample, but then I don't really like you can put millions of records in
- 40:10SQLite. You can go a very long way. Speaker 1: Oh yeah. Yeah, it is. Yeah,
- 40:14it is an amazing tool it's one of my favorite tools um and then there so in reality what the
- 40:19way that the temporal service is actually built is it's actually just a single binary um but the
- 40:23thing is there are the temporal service is a conglomerate when i say the service i mean like
- 40:27all of the things together it's a conglomerate of multiple microservices that when you put them
- 40:31together they they connect with they interact with each other and there's like four back-end services
- 40:36no three services and a front-end service then there's like a web UI and that's the service but
- 40:40but then you also have to build in a data storage.
- 40:44So for when you get to that point,
- 40:46that's when you either need MySQL, Postgres, or Cassandra.
- 40:48You could probably get away with SQLite on that one,
- 40:50but I've never actually tried it.
- 40:52But we recommend MySQL, Postgres, or Cassandra.
- 40:55And then you can add in other things
- 40:57like Elastic for visibility.
- 40:59You can add Prometheus and Grafana for being able to see.
- 41:02But this is when you're starting to scale up.
- 41:03So if you were doing this on small, itty-bitty scale,
- 41:07you could probably deploy it onto, say,
- 41:08a DigitalOcean droplet
- 41:09and be fine with a single binary.
- 41:11We have tutorials on our learn site
- 41:12on exactly how to do this.
- 41:14And then it scales.
- 41:15So like there's a Docker Compose file.
- 41:17So like once you want to see
- 41:18what all these microservices are doing,
- 41:20like in multiple areas,
- 41:21like you can see how we've deployed all of them
- 41:23and you can play it.
- 41:24There's multiple different Docker Compose files
- 41:26to be like, oh, I want it with this database
- 41:28and these options.
- 41:29And that allows you to kind of like tune it
- 41:31and tweak it to your liking.
- 41:32And then once you get to prod scale,
- 41:34we have Helm charts that we support
- 41:36and you can deploy it directly into Kubernetes.
- 41:38Now, if you're self-hosting in production,
- 41:40Kubernetes tends to be what we see in the wild
- 41:42as the most popular deployment.
- 41:45Now, again, these are single binaries.
- 41:46You can deploy it however you want.
- 41:48So it has a, from development to prod,
- 41:50it has a very nice scaling story.
- 41:53Or the other option is just go to Temporal Cloud.
- 41:55The thing is Temporal Cloud has a minimum pricing structure
- 41:59for it, which we're constantly updating.
- 42:02And that's really useful once you get to actual production
- 42:06use cases and you have people paying you
- 42:08use that money to pay for the temporal cloud.
- 42:10It's not a lot.
- 42:10The temporal cloud pricing is super,
- 42:13I think it's really super interestingly well done
- 42:16because it's based on what we call actions.
- 42:18So like anything that basically causes a right
- 42:20to that durable database,
- 42:21you get billed on like fractions of a penny.
- 42:24So it's consumption based.
- 42:26The main thing is making sure you have enough traffic
- 42:28to cover, basically there's a minimum support cost
- 42:31that you have to pay for like a minimum bill requirement
- 42:33and then you get billed on the actions
- 42:35and making sure you have enough traffic
- 42:36and workload to handle that.
- 42:38I know, and then you get a lot of other cool features
- 42:40in cloud that, I have to make sure I say this carefully,
- 42:44that you don't get on the open source version,
- 42:47but those are all deployment options.
- 42:49So when it comes to feature to feature option,
- 42:52as right now, it's a one-to-one comparison.
- 42:54What runs in open source is what is deployed in cloud.
- 42:58Like, if I built all of my stuff on the open source stuff,
- 43:02I deployed to cloud on occasion to test it,
- 43:03but I'm constantly building on the open source version
- 43:06And all of my stuff runs in cloud.
- 43:07What you get when you go to cloud is you get those production features.
- 43:10You get single sign-on.
- 43:11You get role-based access control.
- 43:13You get more advanced metrics and things of that nature.
- 43:17You get all of these things that really matter at a large-scale production,
- 43:20things that large enterprises care about.
- 43:23And there are ways you can get those in the open source as well,
- 43:27but they come as first-class citizens in the cloud product.
- 43:31Maybe you got to run your own single sign-on identity server
- 43:35or something like that yeah yeah um so over here if i go to the temporal GitHub repo there's docker
- 43:44which has got a docker compose think something yeah there's actually a docker repo repo yeah
- 43:51is there okay so i could even i think it would be like temporal and then doc like in the search i
- 43:54would just search or in the org i would search for docker compose yeah it might be there somewhere
- 43:59uh there we go are you right yeah i'll put that in the links as well i'm a huge fan of docker
- 44:04compose. I think it opens up a bunch of great options. And if you go in here, you can see that
- 44:08there's like the doctor compose my sequel to Docker compose postgres, and then just a bare bones one,
- 44:15right? So if you wanted to self host it, is this a pretty good way to go?
- 44:19Yeah, I think it's a great place to start. I think it always depends on your scale.
- 44:22Like if you if you are good at Docker compose, and you know, you think like, the thing with Docker
- 44:28compose is like, and I believe this is all going to deploy it on a single service. So is like our
- 44:31single server. So like we always talk about like, you know, depends on the level of reliability you
- 44:36need of the service because if the database of the service goes away, then your reliability goes away.
- 44:41Like, you know, but that's kind of like the truth here is with that database being the single source
- 44:45of truth, if that database magically disappears, you don't have it. Now you could, you know, what
- 44:50you could do like an RDS or like a digital ocean managed database and connect that in this.
- 44:55Yeah, run just basically set a room, an off server database connection.
- 44:59string. Yeah, exactly. Right. Of any form that's then, then it's matching the reliability of that
- 45:04database. Yeah, exactly. Yeah. Yeah. So another thing, whenever I hear durable, and actually I see
- 45:09a bit about this in the show notes as well, and you say retry, like if something goes wrong,
- 45:13which we tried and it'll probably resume. Like sometimes it won't. Sometimes there's a poison,
- 45:18what's called a poison message. Like it's cursed to always fail for whatever reason. Like it's
- 45:23trying to get to a service. The domain is gone or it's not coming back. Right. Yep. One of those
- 45:28sorts of things. Three months ago, it was there. Then you said sleep for three months and it woke
- 45:32up and said, wait, it's like Planet of the Apes. You're like, yeah, what have they done? You wake
- 45:37up, you're like, the world is not what I thought, right? How do you deal with that kind of stuff?
- 45:42Yeah. So in the retry policy, so the default retry policy, what is, is it, its default is just retry
- 45:49on a specific time limit forever until it's either canceled or it succeeds. Now, if you expect that
- 45:55something could happen like that. Essentially what you would do is there's something what's
- 45:59known or non-retriable error types. So certain HTTP error codes, you know, might, you might would be
- 46:05like, Hey, you know, this is just not going to come back. 500 is fine, but maybe 404 is like
- 46:11404 might never come back, but 500 very likely could or cannot connect. I don't know. Is that
- 46:17404? I don't think so. I think it does. I don't remember. Yeah. I remember, but there's probably
- 46:20a code that like i i can't connect to the server versus like i got there and it said not here yeah
- 46:26so there's non-retriable error codes and i mean like what we do with the core temporal primitives
- 46:30is more of like um i often tell people it's like yeah like things that can retry let them retry but
- 46:34like say i do a divide by zero error no amount of retries is going to change the laws of physics
- 46:40um you know it's like holding your breath until something changes you're just going to pass out
- 46:44um same thing with these retries so you have to have what are called non-retriable errors and you
- 46:47essentially say, hey, whenever you experience this error, you should just fail. And basically,
- 46:51you would bubble it up and then you have to let the next layer of execution handle it.
- 46:55So yeah, totally a good story for that. Okay. Yeah. But you kind of got to think a little bit
- 46:59about it, right? Just yes. Yes. You still have to think it doesn't take away all the thinking for
- 47:03when it comes to like, what potentially could go wrong, but at least like with all of like the weird,
- 47:08like, you know, okay, this service might go down DNS, someone messed with DNS. It's always DNS.
- 47:13I had I had an it's always DNS moment the other day. And I'm like, I need a sticker for my laptop
- 47:17says this because it got me again.
- 47:19I can't remember what took me out.
- 47:21I suffered something with that as well.
- 47:23And it wasn't even directly me,
- 47:24but it was something that I was subjected to.
- 47:27Yeah.
- 47:27It is always DNS.
- 47:28It's always DNS.
- 47:29Except for when it's the database.
- 47:31Yeah.
- 47:32Or except for when you accidentally deploy
- 47:34the walrus operator on Python 3.7 on the server.
- 47:37That also is not good.
- 47:38And it's not doing,
- 47:39which I took down Talk Python for 20 minutes.
- 47:42I'm like, what?
- 47:43Why won't it run?
- 47:43It was running perfect.
- 47:45Oh, this was like, you know, years ago
- 47:46when those things were like new, right?
- 47:48Yeah.
- 47:49Oh my goodness.
- 47:50So one thing I want to talk about here,
- 47:52let me get back to, that's the right spot.
- 47:54Let's talk about the programming execution model.
- 47:58Let's see, is there a quick start?
- 48:01Let's maybe, let's talk through the quick start.
- 48:02And I think there's just some super interesting
- 48:06modern Python ideas that you got here, right?
- 48:09So maybe talk us through like,
- 48:10how do we get started bringing this in?
- 48:13Does it have to be a from scratch?
- 48:15Or can I take some part of my application, like a particular API endpoint and go, this
- 48:19thing needs, needs some help.
- 48:21And Temporal can help it.
- 48:22Let's just plug it in on this one bit.
- 48:24That's actually how we recommend a lot of people get started with Temporal is like, we
- 48:28don't, we never tell people like do like a whole ground up rewrite of like everything
- 48:31you have.
- 48:32We, I've often told people find something that, like find, find a service that annoys
- 48:38you, that pages you because it's constantly going down because it's unreliable and maybe
- 48:43do a like it's a small service and do a small rewrite of that in temporal and just see how your
- 48:47life makes uh makes a difference so the way that you do it with temporal is like you have to use
- 48:51the temporal sdks so the way that you build temporal applications is you build them using sdks
- 48:56um typically with other workflow-esque engines or other durable execution engines um some of the
- 49:01more modern durable execution engines have kind of followed suit with us but some of the earlier ones
- 49:05didn't we're code-based um we're not dag based we're not yaml based we don't have our own structured
- 49:11DSL, we are 100% code based. And there's a lot of advantages to that. So not XML based. No,
- 49:18no XML. So yeah, so we build you build basically what's called a workflow. Workflow is you can kind
- 49:26of think of a workflow is like your application. It's it's the it's the blueprint of your
- 49:29entire application. And what we'd say about workflows is that they have to be deterministic,
- 49:34like the code within a workflow must be deterministic, and you execute it line by line going
- 49:38down. And then anything within your workflow that potentially could be non-deterministic or
- 49:43could potentially fail. So calling out to a microservice is both of those. It's non-deterministic
- 49:49because you don't know what you're going to get back. And it's potentially going to fail because
- 49:52the service could be down. That goes in what's called an activity. An activity is that thing that
- 49:56automatically gets the retries. Now you implement activities as functions or as methods in Python.
- 50:02You can actually do them as both. And as you were saying in the readme, yeah, we use a lot of
- 50:08Python tooling. So that's actually something that I think that our SDK engineers, we have an entire
- 50:13team whose entire job is to build and maintain our SDKs. They're super proud of. It's one of the
- 50:17things I love talking about. Temporal is not built off of what you would say like an open API spec
- 50:23for a good reason. So it's built basically, I mean, Temporal itself is built in Go. So as you
- 50:28can imagine, everything's built in protobufs. There is a spec on what we build off of, but open API
- 50:33specs generate stuck stub client libraries. And like I've worked with a handful of them. They don't,
- 50:38they're not very idiomatic to the language. Like it kind of looks like someone bolted a C library
- 50:42on top of Python. Like it works, but it doesn't feel like Python. Our SDK engineers spend months
- 50:49studying the programming language, learning out what is idiomatic of the language, what actually
- 50:53makes sense. And then they build into it. So the interesting thing about this is like, you can see
- 50:58here when we define our decorate, our workflows, we define them by decorating classes. And then we
- 51:03the entry point by decorating it with an at workflow.run. So that's how we know where the
- 51:07entry point is. We're using asyncio inside of this to do it. Our activities, when you want to
- 51:13turn a method into an activity, you are a function in an activity, you just decorate it at activity.defin.
- 51:19And now you have an activity. We've done a lot of those kinds of things. We're using context
- 51:25managers very, very a lot or, you know, rigorously within the code base. The really interesting thing
- 51:32is, and I can only talk a teensy bit about this because it's super complex, but there's a really
- 51:36great talk track from it at the PyTexas conference from this year. We built a custom async event loop
- 51:41for this. This runs in a durable asynchronous event loop. And the SDK engineer who built it
- 51:46gave a talk at PyTexas this year, and it's on the PyTexas 2025 website. And I can provide a link to
- 51:51that later. And it's really neat because essentially we had to build a custom event loop to handle
- 51:57all of the way that we expect Temporal to work.
- 52:01And I don't think that building a custom event loop
- 52:02is a very common thing for people to do.
- 52:05So there's a lot of lessons learned there.
- 52:07I think there should be more of it though.
- 52:08I think it's a really interesting story.
- 52:11Yeah, I'll put this in the show notes.
- 52:13Yeah, that's Chad's talk.
- 52:14It's amazing.
- 52:15So like he talks about all the things that he had to do
- 52:17when he was building out a custom event loop
- 52:22for Temporal's AsyncIO event loop.
- 52:24Yeah, so for people for whom this is super new,
- 52:27this idea. You need places in your code to execute to say, okay, we can stop, maybe save some state.
- 52:33And then you talked about like replaying behaviors and so on. So you can write code like await sleep
- 52:39a day, you know, asyncio dot sleep one day. And that goes into this, as you said, durable asyncio
- 52:46execution. So instead of just saying, well, we're going to let the thread do other stuff. It's like,
- 52:51no, save it and then resume it. Right. That's pretty wild. It's pretty great actually. Yeah.
- 52:56And I mean, those, those, and that's one of the great things about the workflows and like
- 53:00that, those you'd have to definitely write as workflows, but yeah.
- 53:02And it takes up no, no energy or it doesn't jam up a CPU thread by sleeping.
- 53:06Like it's usually if you sleep something, that thread is kind of sitting there and it's
- 53:09stuck.
- 53:09this a hundred percent because it's all event sourced under the hood, essentially.
- 53:14the event, basically the timer started event gets recorded into the service and then
- 53:19it gets descheduled.
- 53:20And then that worker, that, that executor can continue performing other tasks.
- 53:23And then once that timer fires, the next task for it to continue execution gets put on the task queue.
- 53:28The worker consumes it, knows, oh, I need to resume.
- 53:31And it resumes.
- 53:31And that can happen whenever.
- 53:33That can happen, you know, a day from now, three days from now, three months from now.
- 53:36It doesn't matter.
- 53:36Eventually it gets put on the queue and it gets executed as if nothing happened.
- 53:39Yeah, that's wild.
- 53:40So interesting question out of the audience.
- 53:42If people went with your cloud option, where does that run?
- 53:45Is that AWS?
- 53:46Is that DigitalOcean?
- 53:48Currently it's in AWS and GCP.
- 53:51Okay.
- 53:51So those are the two clouds.
- 53:52Pick different availability zones.
- 53:54Like if I were in Virginia,
- 53:56US East one or whatever,
- 53:57I could say I want to use that one.
- 53:59Exactly.
- 53:59There's different availability zones
- 54:00and we even have multi-region failover.
- 54:03So if you needed multi-region availability
- 54:04for super, super high availability,
- 54:07which we do have definitely have large customers
- 54:09who need that level of availability.
- 54:11And you can totally do that.
- 54:13Cool.
- 54:13And that doesn't mean you got to be in AWS.
- 54:15No, no.
- 54:16We have people who are running on their own private,
- 54:18they were running on their own infrastructure
- 54:20on their on-prem and they're calling into it.
- 54:22So that's the niftiest thing about temporal cloud is like the security model is super simple because temporal cloud or the temporal service.
- 54:30It doesn't have to be temporal cloud.
- 54:31It's the service, whether you self-host it or whether it's on the cloud.
- 54:34It never connects to you.
- 54:36The workers always do an outbound connection into the temporal service.
- 54:39So if you're using temporal cloud, the only firewall rule you have to allow is a single outbound connection off of a single port.
- 54:45That's it.
- 54:46So it's really awesome.
- 54:47Yeah, I'm impressed with a lot of this.
- 54:49So let's sort of kind of get into that.
- 54:51And I want to maybe close out with two topics,
- 54:53testing and what's next,
- 54:55or like sort of also maybe multi-language stuff
- 54:59we should touch on as well.
- 55:00But let's talk testing first.
- 55:02So there's a couple of interesting challenges here.
- 55:05Like first, if I write code like this
- 55:07and I want to have a unit test,
- 55:08no longer am I like, well, this is complicated.
- 55:11I just have to use pytestAsyncIO.
- 55:12It's like more than that, right?
- 55:14So what's the testing story?
- 55:16Yeah, so the cool thing about the testing story with this
- 55:18is it is technically still pytestAsyncIO.
- 55:21because we're code-based, this is one of the things that I always have to harp, to, to remind people on my courses and everyone's always like, oh, that's so cool.
- 55:29you, because we're code, you have to give up none of your tooling.
- 55:33You don't have to get like, how do you like to package it?
- 55:35Are you a poetry person?
- 55:36Are you a B person?
- 55:36Are you a Pippin person?
- 55:38Whatever you want to use, use it for your testing.
- 55:40Do you want to use a Po the poet?
- 55:42Are you a pie test person?
- 55:44Like, what are you using?
- 55:45Use it.
- 55:45It doesn't matter.
- 55:46Temporal does provide, obviously because these are more complex workflows and stuff.
- 55:50they require a little bit. Every single temporal SDK does provide a testing framework that is built
- 55:56into it. And these integrate natively with all of your testing frameworks. So you can use, you use
- 56:02pytest. I use pytest. Now you could use something else, but all of our courses, I think the temporal
- 56:07102 course, yeah, I wrote that one, has a whole chapter on testing temporal workflows and activities
- 56:13and mocking activities because you have to be able to call them independently because you,
- 56:16Otherwise that's an integration test.
- 56:17It's not a unit test.
- 56:18It is important.
- 56:19I always feel bad about mocking the code.
- 56:20It doesn't seem nice, but you got to.
- 56:22Yeah, it's super easy.
- 56:23It's so nice.
- 56:25The you you basically just read you basically redefine the activity
- 56:28and I just put it in the mocking story in Python is so nice.
- 56:32But you just use our testing framework.
- 56:34And what that does is it basically the testing framework will automatically
- 56:36spin up a temporal service and a worker for you.
- 56:39So because as you can imagine, like the execution part of this is like,
- 56:42you have to have a service running, you have to have a worker
- 56:44and then you have to send like basically use a client
- 56:46to send a request to execute the workflow and it will be executed. The temporal testing service
- 56:51does all of that for you. And it also has basically time skipping. So what you can do is, you know,
- 56:56if I have to test, if I have to test something that sleeps for 30 days, I would actually prefer
- 56:59it to not actually sleep for 30 days. So I can test it. Well, I see I take so long. Yeah. So
- 57:05time skipping is in there and there's a lot of other really neat features in the testing. So
- 57:08every single temporal Python or sorry, sorry, every single temporal SDK has a testing framework
- 57:14built into it that really well enables testing.
- 57:17And it all works natively with the tools that you are already used to using as a developer
- 57:22of whatever language you're already using.
- 57:23Yeah, that sounds great.
- 57:24And you can say things like run this and wait for a week and then resume.
- 57:28And you can just say, and now a week has resumed.
- 57:30You know, a week has passed.
- 57:31Now I see what's happened, right?
- 57:33Like it'll just zip right ahead.
- 57:35Yep.
- 57:35Skips right ahead.
- 57:36Doesn't even, doesn't even worry about it.
- 57:37That's always a fun testing trick.
- 57:39So the other one I want to talk about is when I'm over here,
- 57:43into the GitHub repo, I can scroll down.
- 57:45If I look at the repositories, it's Java SDK, Python SDK,
- 57:49Go SDK,.NET SDK, Ruby SDK, et cetera, et cetera.
- 57:52There's a bunch of interesting things here.
- 57:55Like I can write part of my app in Java,
- 57:58part of the workflow in Java or the workflow items in Java,
- 58:01the queues, and I can do part of it in Python or.NET.
- 58:04And the other part I think is interesting
- 58:06is Python,.NET, Ruby, et cetera,
- 58:08all share a common Rust base.
- 58:10And so it's kind of like they all go in lockstep.
- 58:13Yeah. Yeah. Yeah. So yeah, two great topics there. So the first one I'll start off with is the is the
- 58:19polyglot stuff, because I think it's one of my favorite things. And we don't I don't I don't ever
- 58:23get to talk about it enough. So I'm glad you asked. Underneath the hood, the way that all of this
- 58:27communication happens is it's happening via essentially protobuffs across task cubes to the
- 58:32temporal service back and forth. One of the things that you'll find if you dig into temporal is that
- 58:36we require your input, the inputs and outputs of your functions to be serializable to basically
- 58:43protobufs. Now, if you have something that's not serializable, we obviously, because it's code,
- 58:47we provide you the way to extend the serializer. So as long as you can serialize it, again,
- 58:54it's code, you can do whatever you want with it. But because of that, because everything speaks
- 58:58protobuf, all of these languages can natively speak to each other. So you're right, I can write
- 59:03workflows written in Python and call and have three different activities in that workflow,
- 59:08one written in TypeScript, one written in Java and one written in.NET. And I can call them
- 59:12seamlessly, like basically just by calling execute activity, giving it the name of the function.
- 59:17And then I could actually still then pass in a data class of the data that I have as that
- 59:21parameter, because it's still getting serialized down into a protobuf. It will get deserialized
- 59:25into the other language, execute it and pass back data that I can resume. And then I could call it
- 59:30technically from a client that's written in Go. So this enables Polyglot across all of these
- 59:37languages. And it's amazing. So if you have legacy systems or you have stuff where like you really
- 59:41need something to be written in a whole bunch of different languages, it just gives you this out
- 59:46of the box for free. And I think it's one of the neatest features. And one of the other part that
- 59:50it really does need about this is it's not just like the fact that it can call it, but it also
- 59:56preserves the stack traces as well. So one of the other courses that I developed are Crafting the
- 1:00:00handling strategy course. There's a demo in there where I am showing like basically that exact
- 1:00:07workflow, a Go client that's calling a Java workflow that's calling a Python activity.
- 1:00:12So three different languages. And then I intentionally throw an error in the Python
- 1:00:15activity and I tell it, do not handle it, do not retry it, let it bubble up. And when I get back to
- 1:00:21the Go client, I can see the different stack traces in the different languages all the way through.
- 1:00:25So I get a go basically panic that contains a Java stack trace that contains a, that contains a Python stack trace.
- 1:00:32And I can, I can, I can see all of this across the line.
- 1:00:34So not, and, and also the thing, and just to do it for fun, because I like showing off, I have all of these workers running on different machines.
- 1:00:42So I am, I am running on different, I am crossing process boundaries.
- 1:00:46I'm crossing literally across the network IP boundaries, and then I'm crossing language boundaries and it happens seamlessly and you'd never know that it happened.
- 1:00:53So the orchestration layer is the wildest thing ever.
- 1:00:57And then you asked about the Rust SDK.
- 1:00:59That's a fun one.
- 1:01:00So that kind of goes back into the history a little bit of how Temporal was built.
- 1:01:04And for a crash course in this within two minutes or less,
- 1:01:09essentially our founders started at AWS together and built out what would become,
- 1:01:15they built the foundations for SQS and what would become simple workflow service.
- 1:01:19Then one of the founders left, went to Azure and helped build the Azure Durable Task Framework at Microsoft.
- 1:01:24They met up back together at Uber and built Uber's Cadence.
- 1:01:28Cadence was then basically like battle tested for four years, open sourced, and then they got permission to fork it and build Temporal.
- 1:01:34So Temporal, the company is six years old, but it was a four year old open source project prior.
- 1:01:39So it's a 10 year old open source project, essentially.
- 1:01:41But because of that, what happened at Cadence was I think they wrote the Go and the Java SDKs there.
- 1:01:46So those are very uniquely themselves because they were written independently.
- 1:01:49And then the PHP SDK is its own story.
- 1:01:52Someone wrote that in the community because they really wanted it.
- 1:01:55And it kind of follows its own rules.
- 1:01:57But when they started building the temporal SDKs, TypeScript was the first one and then Python, if I remember correctly.
- 1:02:03They wanted a common core, like basically re-implementing this.
- 1:02:06Because in these SDKs, there are very complex state machines that maintain all of this state of what's going on.
- 1:02:13And they did not want to keep re-implementing this every single time.
- 1:02:16So they built a Rust core SDK, or it's not even an SDK. It's not an SDK. It's just the core. And
- 1:02:22all of the, so the TypeScript, the.NET, the Python, and the Ruby SDKs all have a upper level SDK
- 1:02:28that wraps this core Rust SDK and call into it. So they share a common theme. So there definitely
- 1:02:33will sometimes be features or like things that happen in the Go or the Java SDK that you're like,
- 1:02:37that's a little different because those are not based on Rust core. But yeah, that's how they all
- 1:02:42call in. So like their PIO3 is basically being used here. We're calling into pot with PIO3 into
- 1:02:47a rust binding. and that's like a Pydantic and others. Yeah, exactly. Yeah. So, and it's,
- 1:02:53it's really cool. And that, that makes, adding new SDKs a lot easier because really,
- 1:02:57and truly the hardest part of building the SDKs is, was like those state machines used to take
- 1:03:01a long time. And once they got it figured out on the rust core side, it made adding new languages
- 1:03:05easier. the Ruby SDK is in public preview and will be going generally available here soon. Um,
- 1:03:11And there may be one or two more SDKs coming out within the future.
- 1:03:14If you guessed really hard, you could figure out what it is.
- 1:03:17There's an SDK.
- 1:03:17There's a core that doesn't have an SDK.
- 1:03:22There's no secret.
- 1:03:23There's no secret about that.
- 1:03:25Yeah, of course.
- 1:03:25People have been begging for that for years and it's obvious.
- 1:03:28So yeah, may involve crates.
- 1:03:30Okay.
- 1:03:30So what's, what is the, what's the future?
- 1:03:33Like anything that's worth giving a shout out that's coming or that kind of stuff?
- 1:03:38Yeah.
- 1:03:39I mean, I think that like a lot of times people often ask me like, what is Temporal used for?
- 1:03:44And I would say Temporal is used for anything that like you don't want your code to fail.
- 1:03:48It like it's it's really interesting to help educate people and work on a product that really does affect nearly every single part of the application of the software development lifecycle and every single part of it, of, of, of the industry.
- 1:04:03You know, I was used to working on other products that like, yeah, like I worked at a synthetic data company for a little bit.
- 1:04:08And that had a very niche area.
- 1:04:09And then I worked at DigitalOcean,
- 1:04:10which was cloud products,
- 1:04:12which is still awesome,
- 1:04:12but like doesn't affect everything.
- 1:04:14Temporal really does like,
- 1:04:16are you doing finance?
- 1:04:17Temporal is great for long running transactions.
- 1:04:20Are you doing food delivery?
- 1:04:21Like, are you a fast food industry?
- 1:04:23Are you doing groceries?
- 1:04:24Are you doing, what are you doing?
- 1:04:26Temporal can benefit from it.
- 1:04:27So there's a lot of really cool things.
- 1:04:29You can use it for anything.
- 1:04:30And what we're seeing right now,
- 1:04:32specifically,
- 1:04:33and this kind of alludes back
- 1:04:33to your OpenAI thing earlier,
- 1:04:35is that we're seeing a lot of AI companies
- 1:04:38of value out of this because like when it becomes time to take your agents to production, there's
- 1:04:44a handful of decent production stories out there, but it turns out these are AI agents in production.
- 1:04:50This is microservices in production with a fancy label on top of it. These are just distributed
- 1:04:54systems. Not only are they microservices, they're very slow, long running microservices,
- 1:05:00which make it harder. Yeah. Yeah. That's exactly what Temporal's model is. Do you have a slow
- 1:05:05running microservice that can sometimes fail. Great. We have a product that makes all those
- 1:05:09problems go away. So, you know, like I'll, I'm working on a lot of content right now around
- 1:05:14showing the benefit of temporal in AI. and we have, we have a handful of customers, who I
- 1:05:19can't talk about, that are, using us for lots of different AI related things. but there,
- 1:05:25I mean, you can look on our blog or anything. You can see tons of people that are using it.
- 1:05:28and it's a really cool thing. So I would definitely say like, if you're, if you're trying
- 1:05:31to take AI to production, you should be looking into temporal. it's not an AI tool, you know,
- 1:05:36like we're not, we're not going to like, we're not going to do the thing that every company did is
- 1:05:39we're not going to suddenly pivot and become an AI tool. because we're not, we just, yeah,
- 1:05:45we solve everything. And AI is one of the great things we solve. So that's awesome. Yeah. You're
- 1:05:50not going to vibe code with temporal. Maybe you vibe code, temporal code, but not with temporal.
- 1:05:55No, I've, I've, I've actually vibe coded a handful of temporal things. And it's interesting because
- 1:05:59like i'm super picky uh about what what people's temporal code looks like as because i've been
- 1:06:04teaching people best practices for three years almost three years now and i i'm like no vibe
- 1:06:09coding that's no claude that's wrong like no no no cursor that's wrong like you can't do that so
- 1:06:14and the interesting thing about that is the way that i'm looking at it's like oh i need to make
- 1:06:18more content about this because yes because the llms are not like it's actually funny every now
- 1:06:23and then the llms spit out some of my content um and i can tell when it's my content because i know
- 1:06:27So I write comments in a very particular way.
- 1:06:30And I'm like, oh, okay.
- 1:06:32So what that ends up telling me is,
- 1:06:34oh, I need to make more content around this
- 1:06:36because we're still not vibe coding at 100% capacity.
- 1:06:39Yeah.
- 1:06:40Yeah.
- 1:06:40Yeah.
- 1:06:41That's a whole discussion we could go down.
- 1:06:44You know, I was totally wrong when we started.
- 1:06:46I said we could talk for two hours.
- 1:06:47I think it's three to four.
- 1:06:49Yeah.
- 1:06:49We got so much more we could talk about,
- 1:06:51but there's only so much time we can dedicate to each episode.
- 1:06:55So let's go ahead and call it.
- 1:06:57I say, you know, thanks for being here.
- 1:06:59The more I looked into this,
- 1:07:00this is a super interesting product.
- 1:07:02And there's a lot of neat Python integrations
- 1:07:04like you program it with async and await
- 1:07:08rather than some funky SDK bolt-on thing.
- 1:07:12So people should definitely check it out.
- 1:07:13Final call to action.
- 1:07:14They're interested.
- 1:07:15What do you tell them?
- 1:07:16Check out, just check out the website.
- 1:07:18Check out temporal.io
- 1:07:19or the learn site, learn.temporal.io.
- 1:07:21It's a great place to get started.
- 1:07:23You can install Temporal
- 1:07:24by just running brew install temporal on your Mac,
- 1:07:26or there's commands for Windows and Linux as well.
- 1:07:29Curl commands for that.
- 1:07:31Or Docker compose up.
- 1:07:32Or Docker compose up.
- 1:07:33If you want to do that, totally can do that.
- 1:07:35Just try it out, build a workflow.
- 1:07:37And then what I tell people is try to break it.
- 1:07:39Like start a workflow, kill the worker,
- 1:07:41bring it back online.
- 1:07:42Like I think it's really magical
- 1:07:45when you first actually try to like
- 1:07:47actually break the software and stuff.
- 1:07:49We've had multiple people that have taken jobs here
- 1:07:52who have said, I started playing with it.
- 1:07:53I tried to break it.
- 1:07:54And when I couldn't, I decided to apply for a job here.
- 1:07:57So try to break it.
- 1:07:59See what you can do.
- 1:08:00And you'll be amazed by it.
- 1:08:02Just a personal anecdote.
- 1:08:04I remember when I applied here, I was reading through their docs.
- 1:08:06And I told myself, I was like, if they can do half of the things they claim they can do in the docs, this is revolutionary.
- 1:08:12I've never seen anything like this.
- 1:08:13And it turns out we do all the things we say in our docs.
- 1:08:16It's probably the most interesting tech product I've ever worked with in my career.
- 1:08:20And I know that I will be working with it probably for the rest of my career.
- 1:08:23It fascinates me and I love playing with it.
- 1:08:26Like I build temporal applications at home for fun just because it's like, oh, look,
- 1:08:30I don't have to worry about someone's API going down anymore.
- 1:08:33Yay.
- 1:08:33Yeah.
- 1:08:34It's awesome.
- 1:08:35So I hope you enjoy it as much as I do.
- 1:08:37I'm pretty impressed.
- 1:08:39All right.
- 1:08:39Well, thanks for being on the show.
- 1:08:41Thanks for coming on and sharing everything.
- 1:08:42Yeah, it was great.
- 1:08:43Great to talk with you.
- 1:08:44Yeah, you as well.
- 1:08:45Bye bye.
- 1:08:46This has been another episode of Talk Python To Me.
- 1:08:50Thank you to our sponsors.
- 1:08:51Be sure to check out what they're offering.
- 1:08:52It really helps support the show.
- 1:08:54This episode is sponsored by Posit Connect from the makers of Shiny.
- 1:08:58Publish, share, and deploy all of your data projects that you're creating using Python.
- 1:09:03Streamlit, Dash, Shiny, Bokeh, FastAPI, Flask, Quarto, Reports, Dashboards, and APIs.
- 1:09:10Posit Connect supports all of them.
- 1:09:12Try Posit Connect for free by going to talkpython.fm/posit, P-O-S-I-T.
- 1:09:18The PyBay Conference is returning to the UCSF Mission Bay Conference Center in San Francisco, California on October 18th, 2025.
- 1:09:26Get your ticket and pick up a free conference course bundle from Talk Python.
- 1:09:31Get started at talkpython.fm/pybay.
- 1:09:34Want to level up your Python?
- 1:09:35We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:09:39Our content ranges from true beginners to deeply advanced topics like memory and async.
- 1:09:44And best of all, there's not a subscription in sight.
- 1:09:47Check it out for yourself at training.talkpython.fm.
- 1:09:50Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 1:09:55We should be right at the top.
- 1:09:56You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:10:01and the direct RSS feed at /rss on talkpython.fm.
- 1:10:06We're live streaming most of our recordings these days.
- 1:10:08If you want to be part of the show and have your comments featured on the air,
- 1:10:12be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:10:17This is your host, Michael Kennedy. Thanks so much for listening. I really appreciate it.
- 1:10:21Now get out there and write some Python code.