Rippling builds mongoxide, a Rust-native drop-in MongoDB client for its Python monolith, in just under three engineering months with a spec-driven agent workflow, including a 600-test PyMongo parity suite in two engineering days, cutting read latency by up to 45%
PyMongo sits on the hot path of over 800 million MongoDB queries a day in Rippling's Python monolith. Two Core Platform engineers built mongoxide, a Rust MongoDB client for Python (PyO3, maturin, tokio, rayon) that keeps PyMongo's read API so call sites can swap without rewriting, plus a zero-copy object-document mapper. Because a behaviour difference could corrupt payroll data, they needed a broad parity suite. For each parity feature they wrote a short spec (a canonical example test, success and failure criteria, how to label divergences, authoritative PyMongo sources, readability rules), had agents produce implementation plans that humans reviewed, then had agents enumerate test combinations. That produced a 600-test parity suite in two engineering days. The same approach built a lightweight server implementing MongoDB's wire protocol for noise-free benchmarking in roughly an hour of engineering time. The whole library, with parity, correctness and benchmarking suites, took just under three engineering months, and it went to production behind shadow testing and staged rollout.
The numbers (as reported)
| Build time | Just under three engineering months (library plus parity, correctness and benchmarking suites) |
|---|---|
| Parity suite | 600 tests in two engineering days |
| Mock wire-protocol server | Roughly an hour of engineering time |
| Read latency | Up to 45% lower; tail and customer-perceived latency down as much as 60% |
| ODM vs MongoEngine | 20x-37x lower latency in benchmarks |
Facts
- Company / subject
- Rippling
- Tools
- Unstated
- Codebase
- mixed
- Work type
- Language port
- Stack
- Rust, Python, PyO3, maturin, tokio, rayon, MongoDB
- Published
- 2026-02-24
- Last checked
- 2026-11-23
What the source claims Practitioner (own blog/paper)
Claimed by the builder, writing about their own work. Not checked independently.
- A 600-test parity suite against PyMongo built in two engineering days 600 tests in 2 engineering days
“we were able to implement a 600 test parity suite in two engineering days”
- A MongoDB wire-protocol mock server for benchmarking built in about an hour ~1 hour
“an agent was able to produce a working implementation in roughly an hour of engineering time”
- Read-heavy MongoDB latency cut by up to 45%, tail latency by up to 60% up to 45% / 60%
“we reduced the latency of our read-heavy MongoDB workloads by up to 45%”
- The library and its test suites were built in just under three engineering months < 3 engineering months
Caveats
Rippling's own engineering and hiring post. No coding agent or model is named, so tools are Unstated. The post credits agents mainly with the parity suite and benchmarking tooling; it does not say how much of the Rust library itself agents wrote. Benchmarks were run on a laptop; the production latency drop is shown as a dashboard chart. No manual-effort baseline is given for the three months.
More stories by tool: Unstated
Related topics: Language ports