AI Hints
Home›LangGraph Tutorial›Persistence and Deployment
LangGraph · Lesson 108 of 120

Deployment Options

Where graphs run.

⏱ 2 min read▶ Video at 1:56:40🎓 Free
Watch this lesson in the LangGraph courseWatch on YouTube ↗Full LangGraph course

Once your graph works, where does it run? You can host it yourself, like any Python web app, or use a managed platform built for agents.

Deployment Options
From the video: Deployment Options
  • Where does it run?
  • Host it yourself
  • Or a managed platform

Ways to deploy

Your own server, with FastAPI, in a Docker container, gives you full control. Cloud services, like a container platform, scale it for you. And LangSmith deployment, from the LangChain team, runs graphs with persistence, streaming, and background runs built in.

OptionGood for
FastAPI + Dockerfull control
Cloud containerseasy scaling
LangSmith Deploymentagents, built-in persistence
Serverlesslight, short graphs

Production checklist

Whichever you choose, check these. A database checkpointer. Secrets in environment variables, never in code. Tracing turned on. Limits on recursion and tool calls. And tests that run before every release.

keyvalue
Persistencedatabase checkpointer
Secretsenvironment variables
TracingLangSmith
Limitsrecursion, tools

Summary

Graphs can run on your own server, in cloud containers, or on a managed platform. Use the production checklist either way. Next, designing good state.

Key takeaways
  • Self-host
  • Managed platform
  • Production checklist
Next up: Designing State — keep it small