# Has anyone integrated a multi agentic system in langgraph with fastapi?

**URL:** https://forum.langchain.com/t/has-anyone-integrated-a-multi-agentic-system-in-langgraph-with-fastapi/648
**Category:** LangGraph
**Tags:** self-hosted, python-help
**Created:** [July 23, 2025, 8:43am UTC](https://forum.langchain.com/t/has-anyone-integrated-a-multi-agentic-system-in-langgraph-with-fastapi/648 "2025-07-23T08:43:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sahil0094](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/sahil0094/32/312_2.png) [@sahil0094](https://forum.langchain.com/u/sahil0094)
#### Post date: [July 23, 2025, 8:43am UTC](https://forum.langchain.com/t/has-anyone-integrated-a-multi-agentic-system-in-langgraph-with-fastapi/648/1 "2025-07-23T08:43:07Z")

</div>

Has anyone integrated a multi agentic system in langgraph with fastapi ?

---

<div class="post-metadata">

### Author: ![anil](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anil](https://forum.langchain.com/u/anil)
#### Post date: [July 23, 2025, 9:28am UTC](https://forum.langchain.com/t/has-anyone-integrated-a-multi-agentic-system-in-langgraph-with-fastapi/648/2 "2025-07-23T09:28:52Z")

</div>

Hey,  
I’ve built a couple of co-pilot style apps which uses langgraph (to handle the orchestration of the agents) along with fastapi. It’s designed to handle multiple user conversations concurrently.  
We’re using checkpointers to manage the state of the graph. Used `postgresSaver` for one and this managed checkpointer service `convo-sdk` for one.  
Let me know if you have any specific questions around the implementation or performance benchmarks.

---

<div class="post-metadata">

### Author: ![sahil0094](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/sahil0094/32/312_2.png) [@sahil0094](https://forum.langchain.com/u/sahil0094)
#### Post date: [July 23, 2025, 9:41am UTC](https://forum.langchain.com/t/has-anyone-integrated-a-multi-agentic-system-in-langgraph-with-fastapi/648/3 "2025-07-23T09:41:09Z")

</div>

can you please share the repo or some code , i want to see the structure and importantly, are you using websockets or sse style streaming with front end?

---

<div class="post-metadata">

### Author: ![arthurmarcal](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/arthurmarcal/32/246_2.png) [@arthurmarcal](https://forum.langchain.com/u/arthurmarcal)
#### Post date: [July 23, 2025, 10:08am UTC](https://forum.langchain.com/t/has-anyone-integrated-a-multi-agentic-system-in-langgraph-with-fastapi/648/4 "2025-07-23T10:08:06Z")

</div>

Since I can’t share my codebase directly, here are a couple of public examples that might help:

- **Production-grade template** : [wassim249/fastapi-langgraph-agent-production-ready-template](https://github.com/wassim249/fastapi-langgraph-agent-production-ready-template)

- **Simpler example** : [Sajith-K-Sasi/chatbot\_langgraph\_fastapi](https://github.com/Sajith-K-Sasi/chatbot_langgraph_fastapi) – A lightweight example of using LangGraph with FastAPI to build a chatbot.

In my current setup, I use **FastAPI primarily as a backend for the platform layer**. Each incoming request triggers the execution of a **precompiled LangGraph** , which is initialized once when the FastAPI app starts. I deploy this via **AWS ECS Fargate**.

The architecture is split into two services:

- One handles the **FastAPI HTTP layer**.
- The other runs the **LangGraph execution** (workers).

These two services communicate using a **pub/sub queue pattern** with **Redis (AWS ElastiCache)** and **Celery**.

For managing **memory and conversation state** , I use the **Postgres Checkpointer** (on **AWS RDS** ) to persist thread history and agent state.

Overall, each request simply routes input to the appropriate graph and invokes it.

Let me know if you have more specific questions about the setup.

---

<div class="post-metadata">

### Author: ![sahil0094](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/sahil0094/32/312_2.png) [@sahil0094](https://forum.langchain.com/u/sahil0094)
#### Post date: [July 23, 2025, 5:56pm UTC](https://forum.langchain.com/t/has-anyone-integrated-a-multi-agentic-system-in-langgraph-with-fastapi/648/5 "2025-07-23T17:56:27Z")

</div>

Thanks a lot, this helps
