Skip to content

Allow HybridCache for session storageΒ #1155

@delepster

Description

@delepster

Is your feature request related to a problem? Please describe.
In a scenario where multiple instances of an MCP server are horizontally scaled and load-balanced (e.g. k8s), the session ID needs to be shared between the instances

Describe the solution you'd like
The StatefulSessionManager class is sealed, and there is no interface implementation available so that we could use a distributed cache like HybridCache to allow for session sharing. Either:

  • create an interface to allow custom session management; or
  • use HybridCache to store sessions in-memory while allowing for an external secondary cache (e.g. Redis)

Describe alternatives you've considered

  • Overriding the StatefulSessionManager class
  • Update the infrastructure to leverage sticky by a proxy

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions