Performance

Thonem Performance Guide

How to measure and improve Thonem performance without masking bottlenecks or sacrificing transaction correctness.

01 / MEASURE THE JOURNEY

Latency belongs to a request path

Capture the actual route/workload, percentile latency, concurrency and response behavior. A machine load average alone does not identify the slow boundary.

02 / DATABASE EVIDENCE

Find expensive work before adding cache

Inspect query frequency, examined rows, locks and indexes. Cache only when it has a clear invalidation model and does not hide correctness problems.

03 / PROVIDER WAITS

Bound external latency

Use explicit connect/read timeouts and decide what can safely become asynchronous. Provider slowness should not indefinitely consume application workers.

04 / VERIFY THE CHANGE

Compare before and after using the same workload

Keep evidence for the baseline and result. If correctness, error rate or reconciliation degrades, a faster median is not a successful optimization.