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
Show parent comment
1
u/alatmaca Oct 18 '26
Thanks, that makes sense. My plan is to migrate from SQLite to PostgreSQL, make critical business writes idempotent, and then introduce Pi-Durable for long-running workflows with human waits and retries.
Would you recommend this approach? Specifically, how would you handle atomicity between business writes and durable workflow state, and what would you consider the minimum safeguards before adopting Pi-Durable?