DEPLOYED P95 SERVING LATENCY
850 ms → <200 ms p95
Measured before and after deploying vLLM continuous batching + PagedAttention on 2x NVIDIA A10G 24GB.
Tail latency drops when KV memory fragmentation, redundant prefill, and synchronous side work are removed from the GPU path.
CORE QUESTION — How do you cut production p95 tail latency by >4x on constrained 24GB GPUs without dropping concurrent document throughput?
Built at HamoonTech for production customer-support routing on 2x NVIDIA A10G 24GB GPUs: replaced naive request-at-a-time inference with vLLM continuous batching and PagedAttention, added Redis semantic caching (~35% redundant forward-pass reduction), moved downstream work into Celery/Kafka queues, and instrumented SLO alerting via Prometheus and Grafana.
Maturity · Production Deployed — Production platform built at HamoonTech (Jun 2022 – May 2024); proprietary code & raw customer traffic remain private.
DEPLOYED P95 SERVING LATENCY
850 ms → <200 ms p95
Measured before and after deploying vLLM continuous batching + PagedAttention on 2x NVIDIA A10G 24GB.
PRODUCTION ROUTING TRAFFIC
~15,000 documents/day
Sustained customer-support document flow at 15–25 peak concurrency on Kubernetes.
REDIS SEMANTIC CACHE BYPASS
~35%
Redundant GPU forward passes eliminated prior to vLLM admission; downstream enrichment offloaded to Celery & Kafka.
BOUNDARY — Observed on the deployed HamoonTech stack (Jun 2022 – May 2024); measurement window & exact sample size are undisclosed.
FastAPI routing · TLS · rate bounds
Redis hit bypass (~35%)
Continuous batching · PagedAttention
2x NVIDIA A10G 24GB · K8s pods
Celery / Kafka background pipelines
Prometheus · Grafana p95 SLOs
Engineering decisions — ledger of 3, as recorded. The signal edge marks the rejected alternative in each row.
| Ref | Decision — and why | Trade-off accepted | Rejected alternative |
|---|---|---|---|
| A | Move KV allocation onto PagedAttention continuous batching Static batching starves mixed-length support routing queries and fragments 24GB A10G VRAM. | Tighter coupling to vLLM worker lifecycle and CUDA memory tuning. | Scale naive sequential FastAPI + HuggingFace generate replicas horizontally. |
| B | Gate GPU admission behind a Redis semantic cache Recurring support intents triggered redundant prefills across peak bursts, wasting limited A10G compute. | Cache invalidation and similarity-threshold tuning required to prevent stale routing answers. | Send every normalized query unconditionally through the LLM forward pass. |
| C | Offload enrichment and multi-stage transforms to Celery/Kafka Keeping downstream I/O outside inference worker threads stabilizes tail SLOs during burst ingestion. | Additional operational surface for broker lag monitoring and dead-letter recovery. | Run synchronous downstream webhook and persistence calls inside the inference request. |
Revision table — evidence provenance, verbatim from the record
| Rev | Evidence | Result | Semantics |
|---|---|---|---|
| A | Deployed serving path p95 latency Observed before and after migrating customer-support routing to vLLM continuous batching + PagedAttention + semantic caching. Measurement window and sample size are omitted as unknown. | 850 ms → <200 ms p95 on 2x NVIDIA A10G 24GB | RECORDED Supported |
| B | Production traffic & cache bypass Recorded on the deployed HamoonTech Redis semantic cache + Celery/Kafka workflow path; not claimed as an external cross-tenant benchmark. | ~15,000 documents/day · 15–25 peak concurrency · ~35% redundant forward-pass reduction | RECORDED Supported |
| C | Independent external reproduction Proprietary employer workload; raw customer traffic and exact request distributions remain private. | None claimed | RECORDED Not claimed |
Schedule of capabilities — 6 entries, as recorded
Audience — MLOps & LLMOps Platform Teams · Production AI Infrastructure Engineers · Site Reliability Engineers · High-Throughput Inference Teams
EVALUATION METHOD
Serving p95 collapses when iteration-level batching, KV paging, and semantic deduplication shield limited 24GB GPUs from redundant work.
Before/after production measurement on the deployed HamoonTech 2x NVIDIA A10G Kubernetes stack across live customer-support routing volume.
NOTE 1 — OWNERSHIP.
Production engineering platform built at HamoonTech (Jun 2022 – May 2024)
Sanitized production architecture case study grounded in HamoonTech serving telemetry; proprietary configs, customer data, and internal cluster manifests are omitted.
NOTE 2 — READING. Numbers on this page carry their boundary lines. Quoting a result without its boundary omits its scope.