Gateway is the existing Lyceum API server extended with Iris-specific endpoints. It manages the deployment lifecycle, maintains CloudSQL as the source of truth, provisions replicas via Streamer, and handles callbacks from Execlet nodes.
Responsibilities
Deployment Lifecycle: Create, stop, pause, and resume deployments
Replica Management: Provision, scale, and track replica status
Database: Maintain dedicated_deployments and deployment_replicas tables
Cache Seeding: Write initial deployment metadata to Redis
Docker Compose Job Rendering: Renders docker-compose template ⧉ with model container (vLLM) and InferenceWorker sidecar configuration
Streamer Communication: Submits rendered docker-compose jobs to Streamer, which assigns them to Execlet nodes for execution
Callback Handling: Receive status updates from Execlet nodes
API Endpoints
External (User-Facing)
Endpoint
Method
Caller
Purpose
/api/v2/external/inference/create
POST
User (lyceum-cli or direct API)
Create a new dedicated deployment
/api/v2/external/inference/stop
DELETE
User
Stop a deployment and abort all replicas
/api/v2/external/inference/get
GET
User, InferenceProxy, DeploymentScaler
Retrieve deployment details and replica status
/api/v2/external/inference/list
GET
User, DeploymentScaler
List deployments (user's own or all for service tokens)