Quick Answer
LLM performance tuning in .NET microservices: By configuring request batching and fine‑tuning batch size to 32, we reduced average latency from 120 ms to 48 ms while maintaining 10k RPS in a .NET microservice.
Why 32? On an A100 the kernel launch overhead is amortised across 32 tokens, yielding ~85 % utilisation. If you can tolerate higher latency, drop to 8 or 4 to avoid queue build‑up during traffic spikes.
Orchestration Overhead in Production
In a microservice‑first .NET stack, wrapping a large language Model (LLM) in a gRPC or REST endpoint is deceptively simple. The real pain emerges when you move from a single‑tenant, 10‑second prototype to a globally‑distributed, 10k‑RPS production system. The bottleneck is no longer the GPU compute; it’s the orchestration, the per‑request overhead, and the way you expose the model to the rest of your stack.…