Skip to content
Discussion options

You must be logged in to vote

Hi @Laci556!

Yes, you can absolutely serve multiple services on the same server. ASGI applications are composable, and connect-python is designed with this in mind - each generated application class (e.g., ElizaServiceASGIApplication) has a .path property specifically for mounting.

Using Starlette (recommended)

from starlette.applications import Starlette
from starlette.routing import Mount

from your_service1_connect import Service1ASGIApplication
from your_service2_connect import Service2ASGIApplication

service1_app = Service1ASGIApplication(YourService1Impl())
service2_app = Service2ASGIApplication(YourService2Impl())

app = Starlette(
    routes=[
        Mount(service1_app.path, ser…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Laci556
Comment options

Answer selected by Laci556
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants