tubeshowcase●1,658,115 videos♡ My collection 0
← Learn to Code

Learn to Code12:02

Running GenAI in containers: Dynamic Sessions

Microsoft Developer ↗

From the creator

In this final episode of the series, Ayan Gupta is joined once more by Brian Benz, who demonstrates Azure Container Apps Dynamic Sessions, a revolutionary way to run AI workloads in containers that maintain state across requests. Imagine shipping someone not just a cup of coffee, but the entire coffee machine in a box so they can keep refilling without starting over. That's exactly what dynamic sessions do for AI! Traditional containers are ephemeral, once the task completes, everything resets. But with Azure Container Apps Dynamic Sessions, your code execution environment persists, maintaining context and allowing for interactive, stateful AI interactions. Brian shows how he contributed a dynamic sessions tool to LangChain4j, making it incredibly easy to integrate this powerful capability into your Java applications. The session demonstrates a complete code execution engine that combines LangChain4j with Azure Container Apps Dynamic Sessions and OpenAI. You'll see how to ask a question ("If a pizza has radius Z and depth A, what's its volume?"), have the AI generate Python code to solve it, execute that code in a dynamic session, and return the calculated result. The system can also upload files, download generated content, and maintain a persistent execution environment across multiple requests. This session wraps up the entire Java and AI for Beginners series with cutting-edge cloud-native AI patterns. Congratulations on completing this journey! Resources: aka.ms/JavaA

Published 2025-11-05 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code