لا تخمّن — قيس أولاً. يمكن أن تأتي البطء من جانب العميل أو الشبكة أو الخادم أو قاعدة البيانات. يجد النهج المنهجي إلى أين يذهب الوقت، ثم يصلح أكبر مساهم بدلاً من التحسين العشوائي.
تسلسل منهجي
1. MEASURE → where is the time spent? client render, network, server, DB?
2. REPRODUCE → confirm it reliably (same endpoint, payload, user)
3. TRACE → use APM/distributed traces to find the slow span
4. CHECK RECENT CHANGES → deploys, config, traffic, data growth
5. ISOLATE → layer by layer, narrow to one component
6. FIX the biggest contributor → re-measure to confirm
