Наше предупреждение о задержке nginx срабатывало каждое утро для водителей на 4G, а наш API отвечал за восемьдесят миллисекунд
DEV · 22.11.2026 · 08:58
Приложение для водителей загружает маршрутный манифест из нашего API в начале каждой смены. Предупреждение срабатывало, когда задержка превышала три секунды в течение десяти минут.
Оригинал
Our nginx latency alert fired every morning for drivers on 4G and our API had answered in eighty milliseconds
Our drivers' app downloads the day's route manifest from our API at the start of each shift, a JSON document of about two megabytes. nginx sits in front of the API, and our latency dashboard and alert were built from its access log, using $request_time. The alert fired when the ninety fifth percentile went above three seconds for ten minutes. From the day the bigger manifests went live in September it fired every weekday between six and seven. We spent three weeks on the API. We added an index,