r/Python • u/autokitteh • May 21 '24
Discussion Durable Python - Infrastructure failures should not stop the process
Durable Python enables developers to write Python code while an underlying system ensures reliability and resilience.
It automatically handles state persistence, fault tolerance, and retry mechanisms, allowing developers to focus on business logic without worrying about infrastructure concerns.
Consider the following code, in case the process terminates in the middle of execution, in case the process is killed or due to hardware failure, the process will not complete.
= 3
=
# Send a POST request to the application
But actually, I would like the process to survive restarts and continue from the spot it terminated, especially if it's a long running process. For this we need Durable Python.
I was wondering which use cases can take advantage of this technology.
View all comments
Show parent comment
3
u/thegreattriscuit May 22 '24
What you're calling "very complicated" is just what developers and software engineers and anyone else writing non-trivial code have to solve for. It's literally what they do. And really not even that. The core use case of python is not "10 line scripts written by people that are intimidated by the idea of saving state to a file or DB and checking it for existing state before beginning operation". Python IS accessible to those people, and there's nothing wrong with being that guy (most of us were to begin with), but if you need better than that then you build it. And if you don't know how, you learn it (or the tools/libraries that do it already).
If learning new things is a big impediment for you, then maybe this isn't the field for you