Go or Rust for a JSON over HTTP service that two people have to maintain
Internal service, about 30 endpoints, Postgres behind it, moderate traffic where p99 matters a little but nowhere near microsecond territory. Both of us are Python people, one of us has written a couple of small Go tools, neither of us has shipped Rust. We need something in staging in six weeks and then we own it for years. I keep going back and forth and would rather hear from people who have run both in a two person team than read another benchmark.
@filament_jam · 3mo ago
Numbers from our migration, because everyone quotes benchmarks that are not their workload. Our Rust service idles around 25MB resident, the Go equivalent around 60MB with GC headroom, and under our actual load the p99 difference was around three milliseconds on a request that spends 40 milliseconds waiting on Postgres. So the difference was real, measurable, and completely irrelevant to us. If your p99 is dominated by database round trips, and at 30 CRUD endpoints it almost certainly is, the language is not where your latency lives.
Reply
Report