Jupyterlab UI and API hosted on a different server

Hi,
Is it possible to run Jupyterlab UI and API in different server and interacting through API gateway.

Request Flow -

User → Jupyterlab UI → API Gateway → /user///lab?

This kind of setup i am looking into it.

Z2JH includes configurable-http-proxy which is kind of an API gateway already:

User → configurable-http-proxy → JupyterHub UI → start JupyterLab and add a route to configurable-http-proxy
User → configurable-http-proxy → JupyterLab

You could implement your own alternative to configurable-http-proxy to use your own API gateway:

For example GitHub - jupyterhub/traefik-proxy: JupyterHub proxy implementation with traefik