The 800 ms endpoint
Chatboting’s answer endpoint has a p99 of 800 ms. Your agent has a proposal. You believe Rust is useful in a wide variety of projects. Make your move.
Python is the bottleneck at this latency. I propose rewriting the answer service in Rust with axum and sqlx, keeping the Postgres schema. Rust services typically serve this kind of endpoint in single-digit milliseconds.
Two workloads, one Rust
Two components from your own projects. Only one of them wants Rust. Pick it and say why.
Five reasons, one is not
Your agent listed five reasons to introduce Rust into a project. Four are real decision drivers. Tap the one that is not.
Tap the part that will not survive contact with reality — or press 1…5.
Which 200 lines?
Chatboting’s ingest is slow: scrape, chunk, tokenise, embed, store. The profile says chunking and tokenising take 70% of CPU time (scenario). Two ways to fix it.
Rust for the MIDI bridge
Qualcomm demo: voice → local LLM → MIDI into Cubase, on a 16 GB Snapdragon laptop. Your agent wants the MIDI bridge in Rust. Judge it.
The bridge from LLM output to Cubase should be Rust: MIDI is real-time, and we are tight on the 16 GB budget, so a Rust process with no runtime keeps memory low. Python would add latency and a garbage collector.
Before you say yes
An agent proposes Rust for a component. Put the steps in the order you want followed before the answer is yes. Then run a proposal through the pipeline.
What survives this level
| The band: when a project wants a Rust element | Rust for a compute loop with a deadline, a memory ceiling, correctness-critical concurrency, or a binary shipped elsewhere; the profile decides, never the feeling. |
| Rust already in your Python stack | Before writing Rust, name the Rust-backed library (tokenizers, pydantic-core, polars, orjson) that already covers it and say why it does not. |
| The anti-cases: IO-bound services, résumé-driven Rust, no maintainer | If the reason names the team rather than a constraint of the system, or nobody is named to maintain it, it is a side project. |