r/AI_Agents • u/alatmaca • Oct 17 '26
Discussion Is migrating my existing Python agent architecture to Pi-Durable a good idea?
I’m building a B2B SaaS with a Python-based architecture. The system uses separate LLM calls within Python components, with business logic, workflow orchestration, and application state managed by the existing application. I’m currently using SQLite.
As the system grows, I’m thinking about potential challenges around concurrent users, long-running workflows, retries, failure recovery, and agents handing tasks back and forth.
I’ve been advised to consider migrating the orchestration layer to Pi-Durable, but I’m not sure whether this is the right move for my current architecture.
Does migrating to Pi-Durable make sense in this situation, or would I be better off keeping my current architecture and improving it as needed? What trade-offs should I consider before making this decision?
View all comments
1
u/Significant_Tune9219 Oct 18 '26
Moving the loop into a durable runtime does not move the charge. In this setup the workflow log would live in one place and the business write would still live in the Python process and SQLite, and those are different lifecycles. A retry of the loop after a crash can run that Python step again even though the write already committed, and the durable history will say the step succeeded twice. I would leave the orchestration where it is until the side effect and the record of that side effect commit together. The kill-the-worker test only passes if the second run does not create a second write.