IssueRaiser

[RFC]: Rust front-end

### Motivation vLLM has always had a strong python bias to make it accessible to a wide range of contributors, and to exploit ML libraries including pytorch, triton, etc. Historically, we have managed the inherent performance downsides of python, which include garbage collection and restricted parallelism due to the GIL. The measures taken include resorting to multiprocessing for CPU parallelism, which includes the capability to scale out the API server process. As GPU latency continues to fall, request concurrency grows, and large-scale deployments become the norm, the CPU parts of the system have again become a bottleneck in many situations. This is often seen in the front-end process where the asyncio event loop can’t keep up. Further, our front-end python code has become increasingly complex and fragile as it has evolved organically. With the advent of coding agents, the python vs rust contributor accessibility issue is minimized. It seems the time is right to explore a rust-based alternative to the python front-end process: - It will allow us to eliminate the local api server process scale-out pattern which imposes some awkward limitations and is the source of significant complexity - It is an excuse to restructure the front-end code cleanly “from scratch” - It can be implemented as a “drop in” alternative to the existing front-end api server process transparently to users - It’s much better suited for maintainable production software: - It’s much harder to wr

Posted by njhill on Apr 24, 2026, 11:46 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

github (SaaS)

[RFC]: Rust front-end

njhillApr 24, 2026, 11:46 PM

### Motivation vLLM has always had a strong python bias to make it accessible to a wide range of contributors, and to exploit ML libraries including pytorch, triton, etc. Historically, we have managed the inherent performance downsides of python, which include garbage collection and restricted parallelism due to the GIL. The measures taken include resorting to multiprocessing for CPU parallelism, which includes the capability to scale out the API server process. As GPU latency continues to fall, request concurrency grows, and large-scale deployments become the norm, the CPU parts of the system have again become a bottleneck in many situations. This is often seen in the front-end process where the asyncio event loop can’t keep up. Further, our front-end python code has become increasingly complex and fragile as it has evolved organically. With the advent of coding agents, the python vs rust contributor accessibility issue is minimized. It seems the time is right to explore a rust-based alternative to the python front-end process: - It will allow us to eliminate the local api server process scale-out pattern which imposes some awkward limitations and is the source of significant complexity - It is an excuse to restructure the front-end code cleanly “from scratch” - It can be implemented as a “drop in” alternative to the existing front-end api server process transparently to users - It’s much better suited for maintainable production software: - It’s much harder to wr

Comments (0)

No comments yet. Start the discussion.

Comment on this issue