Performance audit for backends, databases and message queues
I find what actually limits your system: database queries and locks, connection pools, message queues, the network or the code. You get root causes backed by measurements and a prioritized plan of fixes, not a list of generic recommendations.
What I look at
-
1.Databases
PostgreSQL: query plans, indexes, locks, autovacuum, connection pooling. ClickHouse: schema and sorting keys, background merges, heavy queries.
-
2.Message queues and data pipelines
Kafka: consumer lag, partitioning, batch sizes, rebalances and their effect on processing time.
-
3.Backend
CPU and memory profiling, garbage collection, N+1 queries, timeouts and retries, container limits and thread pools.
-
4.Behavior under load
Controlled load to see where p95 and p99 latency start to grow and what breaks first, alongside system metrics, so that every root cause is confirmed by data.
What you get
- A report covering the system's capacity limit, measured bottlenecks and causes of degradation.
- A prioritized remediation plan with the impact, effort and risk of each item.
- Capacity planning if the measurements show that the system is running out of resources.
- Optionally: help with the fixes and a follow-up measurement to confirm the effect.
The engagement follows the same steps as other projects: consultation, agreement on success criteria, measurements and tests, and delivery of the report and code. See how I work.
Approach
An audit answers three questions: where the real limit of the system is, what hits it first, and what each improvement is worth. Every conclusion is backed by a measurement, not an opinion. Quite often the outcome is an optimization after which some of the servers can be switched off.
Write-ups (in Russian, on Habr):
FAQ
When should you consider a performance audit instead of adding more servers?
When adding resources stops giving a proportional gain: p95 and p99 latency grow at moderate CPU usage, doubling the pods does not double the throughput, the system degrades at peak load, and the infrastructure bill grows faster than traffic. The limit is usually set by queries, locks and configuration rather than hardware.
Do you need access to production?
Read-only access to metrics, logs and database statistics is enough. Nothing is changed in production without your approval, and heavy measurements run in a test environment or during off-peak hours.
What if we have almost no monitoring?
Then the first step is a minimal metrics setup for the duration of the audit. You can keep it afterwards and grow it into full monitoring.
How much does it cost?
The initial consultation is $100. We go through your system and the symptoms, and afterwards I quote the cost and timeline of the audit. The price is fixed in the contract before work starts.
Other services: Load testing with k6 in CI/CD · SIP/VoIP and PBX load testing · Monitoring with Prometheus and Grafana · all services.