February 2025 Summaries
2 posts from DBOS
Filter
Month:
Year:
Post Summaries
Back to Blog
AI agents are increasingly capable of handling complex, real-world tasks, but integrating them into production systems to manage asynchronous workflows remains a challenge. Durable execution, a concept introduced to enhance AI agent reliability, enables these systems to interact robustly with external tools, maintaining fault tolerance and persistence even during failures. This approach is exemplified in a refund process AI agent, which can autonomously manage tasks such as processing refunds asynchronously while involving humans in decision-making as needed. By applying durable execution principles, the agent ensures that workflows remain uninterrupted and that tasks are neither duplicated nor lost, thereby enhancing the reliability of AI automation. The integration of frameworks like DBOS with popular AI systems such as LangGraph allows for seamless orchestration of complex workflows within application code, without needing external orchestrators or job queues. This synergy not only simplifies the development of durable AI agents but also improves observability and state management, ensuring that customer service operations reliant on AI are efficient and resilient.
Feb 24, 2025
1,504 words in the original blog post.
Building a reliable Next.js application capable of handling long-running tasks, such as processing large files, handling webhooks, or scheduling email batches, is challenging due to HTTP request timeout limitations. Traditionally, this requires setting up and maintaining additional infrastructure with a queueing system like BullMQ. However, DBOS offers an alternative by allowing developers to execute these tasks directly within a Next.js app using an open-source TypeScript library that relies on storing execution states in a database. This enables tasks to resume seamlessly after failures or interruptions, maintaining continuity even if users disconnect or servers restart. A practical example demonstrates a simple app with two buttons for launching and crashing a background task, showcasing that tasks resume from the last stored checkpoint upon app restart. DBOS facilitates this process with decorators like @DBOS.workflow() and @DBOS.step(), ensuring tasks can be reliably managed without complex external systems. The library also supports other reliability features like task queuing and automatic retries, making it a versatile tool for enhancing the robustness of Next.js applications.
Feb 07, 2025
438 words in the original blog post.