Skip to content

Commit a33d5c0

Browse files
authored
Merge pull request #419 from apollographql/sync/main-into-develop-pr-416
Sync main → develop (PR #416)
2 parents f44b468 + ff28dab commit a33d5c0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/source/deploy.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ When an MCP client initializes a session with Apollo MCP Server, it receives a s
9898

9999
Most cloud load balancers (ALB, GCP LB) don't support header-based session affinity. Use Nginx, HAProxy, or Envoy/Istio for proper session routing.
100100

101+
#### Stateless mode
102+
103+
Although MCP is a stateful protocol by default, the Streamable HTTP transport supports operating in a stateless mode.
104+
This means that the session ID will not be passed back and forth between the client and server and each request made to the MCP server happens in its own HTTP POST.
105+
Disabling the session state being managed in memory by a single host allows for horizontal scaling of the server, though could lead to unknown issues if your MCP client has a dependency on sticky sessions.
106+
107+
You can configure stateless mode in the transport config section:
108+
109+
```yaml
110+
transport:
111+
type: streamable_http
112+
stateful_mode: false
113+
```
114+
101115
### Scaling Recommendations
102116
103117
For the Apollo Runtime Container:

0 commit comments

Comments
 (0)