N°002

Name

12× throughput

Client

Turbo Diesel Engine Parts

Year

2026

Type

Performance engineering

Stack

Prometheus, Grafana, redis_exporter, asyncio, a reproducible load generator

Outcome

7.8 to 95.2 requests per second; p95 3.20 s to 0.43 s at 25 concurrent, with the model and Twilio stubbed

About

The WhatsApp service was correct and slow. Before changing anything we built a load generator that replays real conversation shapes with the model and Twilio stubbed, measured a baseline, and put the numbers in a document. The causes were ordinary once they were visible: a new Twilio client on every request, synchronous calls inside the event loop, no connection pool. Three long-lived clients, an asynchronous path for the slow calls and a pool later, the same test showed 12 times the throughput and a p95 down from 3.20 seconds to 0.43. Prometheus scrapes the app on the internal network, Grafana shows the 11 panels that matter, eight alert rules watch the things that have actually gone wrong before, and WARNING and ERROR lines go to a phone. The live webhook p95 is set by the model, on purpose, and the dashboard says so.

Before and after on the same synthetic load: throughput and p95, with the model and Twilio stubbed

Bar chart, before and after on the same load test: throughput 7.8 to 95.2 requests per second, p95 latency 3.20 to 0.43 seconds

Eight alert rules, each for something that has actually gone wrong before

Two-column panel listing the eight Prometheus alert rules and what each one means: webhook p95 slow, dependency dominates latency, event loop blocked, Redis down, Redis evicting, Redis memory high, templates slow, templates undelivered

The fix that mattered most: three long-lived clients instead of a new one per request

Diagram: before, a new Twilio client created on every request; after, three long-lived clients (Twilio, the model, a Redis pool) shared by every request

Delivery status per message, written by Twilio's status callback: sent, delivered, read, or why not

The console's developer page rendered from sample data: delivery status per outbound message and the health of each sender

©

2026

ConnectionSphere Ltd

Registered in England and Wales, No. 16412374

©

2026

ConnectionSphere Ltd

Registered in England and Wales, No. 16412374

©

2026

ConnectionSphere Ltd

Registered in England and Wales, No. 16412374

Create a free website with Framer, the website builder loved by startups, designers and agencies.