Running multiple Starlette App instances in the same python process #3003
-
Hey, In our Python process we need to run multiple Starlette applications, each bound to a Uvicorn server listening on a different port. Lifespan of each server instance (and so Starlette app) is essentially short, as server implements "MCP server" interface for a short-lived AI task. Server/app instances should not be shared between tasks. We see I totally understand that our use case is not a typical one (server is usually supposed to run for all the lifetime of the Python process), but maybe there are plans to rework the helper? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please disregard, just realized this is part of sse-starlette project. |
Beta Was this translation helpful? Give feedback.
Please disregard, just realized this is part of sse-starlette project.