# LangGraph Parallelism

**URL:** <https://forum.langchain.com/t/langgraph-parallelism/3064>\
**Category:** LangSmith Product Help\
**Created:** [March 3, 2026, 2:44am UTC](https://forum.langchain.com/t/langgraph-parallelism/3064 "2026-03-03T02:44:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![theodevs](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@theodevs](https://forum.langchain.com/u/theodevs)\
**Post date:** [March 3, 2026, 2:44am UTC](https://forum.langchain.com/t/langgraph-parallelism/3064/1 "2026-03-03T02:44:32Z")

</div>

![image](https://canada1.discourse-cdn.com/flex007/uploads/langchain/original/2X/5/506e87b95c62fa55d280c682346dadc8cd9f4266.png)

I’m seeing a discrepancy between **Graph Topology** and **Execution Reality**. My LangGraph has a clear fan-out from `initialize` to four parallel paths (including `guardrail` and `preprocess` subgraphs), yet my **Langfuse** traces show a “staircase” effect instead of vertical overlap.

Despite using **precompiled graphs** to eliminate overhead, the nodes aren’t executing concurrently. Specifically:

- **The Execution Gap:** In the `preprocess` subgraph, `topic_selection` (9.50s) starts only after `extraction` (3.84s) finishes.

- **Subgraph Overhead:** Is this “staircase” an inherent LangGraph mechanism where the orchestrator must checkpoint state before starting the next parallel task?

- **Non-Blocking Traces:** I’ve confirmed Langfuse tracing isn’t the bottleneck, so the delay is happening within the graph’s task coordination.

**Has anyone else faced this sequential execution issue with parallel nodes?**

I’m looking for recommendations on how to achieve true 0-gap concurrency.

- Is this a **State-locking** behavior or a **Python GIL/Async** limitation?

- Any specific search terms or configurations to fix this?

- If you have a Langfuse trace where parallel bars actually overlap, I’d love to see your setup.

---

<div class="post-metadata">

**Author:** ![Bitcot\_Kaushal](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@Bitcot\_Kaushal](https://forum.langchain.com/u/Bitcot_Kaushal)\
**Post date:** [March 3, 2026, 4:14am UTC](https://forum.langchain.com/t/langgraph-parallelism/3064/2 "2026-03-03T04:14:20Z")

</div>

Hi @theodevs ,

The runtime (async vs. sync) and whether your nodes are truly async + non-blocking determine true concurrency in LangGraph; parallel edges do not ensure parallel execution.

Also, you can also look for LangGraph parallel edges async execution, RunnableParallel, and async node execution LangGraph in the LangChain/LangGraph async execution docs. Avoid blocking code, and make sure all LLM/tool calls are fully async for true 0-gap overlap; otherwise, it’s typically runtime behavior rather than state-locking.

Reference: [Durable execution - Docs by LangChain](https://docs.langchain.com/oss/python/langgraph/durable-execution?utm_source=chatgpt.com)

---

<div class="post-metadata">

**Author:** ![theodevs](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@theodevs](https://forum.langchain.com/u/theodevs)\
**Post date:** [March 5, 2026, 1:55am UTC](https://forum.langchain.com/t/langgraph-parallelism/3064/3 "2026-03-05T01:55:50Z")

</div>

hi @Bitcot_Kaushal

As a reference, here is the simple code structure I’m using:

1. Guardrail Subgraph

```python

class GuardrailInput(TypedDict):
    question: str

class GuardrailOutput(TypedDict):
    output: str

@observe()
async def guardrail(state: GuardrailInput) -> GuardrailInput:
    # Write to OverallState
    model = ChatOpenAI(name=settings.local_chat.large_model, api_key=settings.local_chat.large_api_key, base_url=settings.local_chat.large_api_base)
    result = await model.ainvoke(f"Return false or true wether this user query is negative or not {state.get('question')}")
    output = result.content
    return {"output": output}

guardrail_graph = StateGraph(GuardrailInput, output_schema=GuardrailOutput)
guardrail_graph.add_node("guardrail", guardrail)
guardrail_graph.add_edge(START, "guardrail")
guardrail_graph.add_edge("guardrail", END)

guardrail_graph = guardrail_graph.compile()

```

1. Short Answer Subgraph

```python
class shortInput(TypedDict):
    question: str

class shortOutput(TypedDict):
    output: str

@observe()
async def short(state: shortInput) -> shortInput:
    model = ChatOpenAI(name=settings.local_chat.large_model, api_key=settings.local_chat.large_api_key, base_url=settings.local_chat.large_api_base)
    # Write to OverallState
    result = await model.ainvoke(f"answer this user query in 30 sentence long: {state.get('question')}")
    output = result.content
    return {"output": output}

short_graph = StateGraph(shortInput, output_schema=shortOutput)
short_graph.add_node("short", short)

short_graph.add_edge(START, "short")
short_graph.add_edge("short", END)

short_graph = short_graph.compile()

```

1. Main Graph that calling Subgraph

```python
class MainInput(TypedDict):
    question: str
    guardrail: str
    short: str

class MainOutput(TypedDict):
    guardrail: str
    short: str

@observe()
async def guardrail(state: MainInput) -> MainOutput:
    # Write to OverallState
    
    result = await guardrail_graph.ainvoke({'question': state.get('question')})
    
    return {"guardrail": result}

@observe()
async def short(state: MainInput) -> MainOutput:
    # Write to OverallState
    result = await short_graph.ainvoke({'question': state.get('question')})
    return {"short": result}

@observe()
async def orchestrator(state: MainInput) -> MainOutput:
    # Write to OverallState
    print(state)
    return {"state": state}

main_graph = StateGraph(MainInput, output_schema=MainOutput)
main_graph.add_node("guardrail", guardrail)
main_graph.add_node("short", short)
main_graph.add_node("orchestrator", orchestrator)

main_graph.add_edge(START, "short")
main_graph.add_edge(START, "guardrail")
main_graph.add_edge('short', 'orchestrator')
main_graph.add_edge('guardrail', "orchestrator")
main_graph.add_edge("orchestrator", END)

main_graph = main_graph.compile()

```

This is how i start my code

```python
@observe()
async def main():
    result = await main_graph.ainvoke({"question": 'hi'})
    return result

result = await main()

```

This is the running result

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/langchain/original/2X/3/3cb2d57a8204c626330b8a63d30618de8f6ed5e4.png)

I’m seeing a significant latency gap in my `short` node within this LangGraph implementation. I’ve confirmed that **Langfuse** is not the cause, and I am already using **asynchronous** `ainvoke` throughout the process.

1. **Orchestration Overhead:** Is this delay an inherent behavior of nesting `StateGraph` objects, or is there a bottleneck in how I’ve structured these parallel transitions to the `orchestrator`?

2. **Architecture Feedback:** Do you see any issues with how `MainInput` and `MainOutput` are managing the merged state that could be causing a processing lag?

---

<div class="post-metadata">

**Author:** ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)\
**Post date:** [March 7, 2026, 12:08am UTC](https://forum.langchain.com/t/langgraph-parallelism/3064/4 "2026-03-07T00:08:59Z")

</div>

Hi @theodevs

what local provider and model are you using? Ollama?

---

<div class="post-metadata">

**Author:** ![Robinson56](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/robinson56/32/3671_2.png) [@Robinson56](https://forum.langchain.com/u/Robinson56)\
**Post date:** [October 27, 2026, 4:30pm UTC](https://forum.langchain.com/t/langgraph-parallelism/3064/5 "2026-10-27T16:30:48Z")

</div>

I’ve seen similar behavior when working with parallel workflows. One thing worth checking is whether the nodes are connected through an unintended dependency or whether the graph is using synchronous functions instead of async execution. In LangGraph, parallel nodes can run in the same superstep when the graph structure allows it, but shared-state updates and task scheduling can affect the execution pattern. I’d also check whether the async calls are properly awaited and whether any blocking operations are running inside the nodes. Comparing execution timestamps with debug logs may help identify where the delay occurs.
