One line of Python, and a 3× drop in p99
Removing an unconditional structured-log warning (plus four Prometheus-style metric increments) from a Python ad-decisioning service's hot path cut sustained p99 latency from ~48ms to ~18ms and CPU from 8–10 to 2–4, with pre- and post-deploy latency bands not overlapping at all. The guard treated fixed-policy callers that intentionally send no posteriors as anomalies, so it fired on 100% of traffic; the cost was the synchronous serialise-and-write to stdout under the GIL, not string formatting, as the barely-moved memory graph showed. A 5ms trough reading right after deploy would have overstated the win as 10×, so let changes ride a full traffic cycle before quoting numbers, distinguish expected from unexpected absence, and treat always-firing signals as bugs.
Related posts
- Reducing our pager load
incident.io mediumAdeptincident.io pages on every Sentry error, and cut the resulting noise with four quick changes instead of switching to error-rate alerting. Go Slack helpers return a separate warning for expected failures such as archived channels or missing scopes, with staticcheck deprecating the raw client. Best-effort code paths set a context-level Urgency so only Urgency=page errors wake anyone. Pub/Sub handlers page only after more than three failed attempts, and errors from sales demo accounts no longer page; one engineer spent about a week and pager load dropped sharply.
- Logs, Metrics, and Traces: What Does Each Signal Tell You?
Railway easyNoviceLogs, metrics and traces answer different questions: metrics show when behaviour changed, traces show where in the service graph a request slowed or failed, and logs explain why. A worked checkout incident follows a p99 latency alert to a slow fraud-check span and then to logs filtered by trace_id, which is why structured JSON logs should carry trace_id/span_id and services should propagate the W3C traceparent header. On Railway, logs and infrastructure metrics are collected natively, while traces need OpenTelemetry exported to a third-party backend.
- How we improved availability through iterative simplification
GitHub Engineering mediumAdeptGitHub cut timeouts in its Rails monolith with small, measured changes found through Datadog metrics, Splunk logs and custom MySQL slow-query monitors. Each change was validated with Scientist experiments or rolled out gradually behind Flipper feature flags. Reordering a Command Palette query to look up a user's contributions before filtering by org removed a large IN clause and was 80-90% faster, and batching access checks added another 20-80% and 30-40%. Skipping unneeded authorization filters on a busy redirect endpoint cut tail latency and timeouts. Not every idea paid off: moving sorting into the application was 40-80% slower, so that experiment was dropped.
- The journey of building a comprehensive attribution platform
Grab Engineering easyNoviceGrab's ads and promo attribution system evolved from a Kappa-architecture streaming engine to a Lambda architecture that pairs real-time stream processing with Spark batch jobs over S3. The pure streaming design cut attribution latency from 2-3 days to minutes, but it struggled with processing cost, long attribution windows, out-of-order events and multi-touch models. Adding an offline batch layer gave historical context and fault tolerance, kept discrepancies under 1% and cut real-time processing costs by about 25%. To limit the cost of maintaining two codebases, Grab plans to reserve the real-time path for time-sensitive metrics such as cost-per-order budget capping and move all other reporting to batch.
- Incident Report: November 25th, 2025
Railway mediumAdeptSlow GitHub API calls (about 4x normal p95 latency) during peak hours backed up Railway's Temporal-based task queue, causing workers to run out of memory and crash in a cascading thundering-herd pattern as surviving and newly started workers were overwhelmed by the backlog. Deployments for Free, Trial and Hobby tiers were paused and Pro deploys delayed for roughly two and a half hours, while running services stayed online. Recovery came from increasing worker CPU and memory and fixing worker parameters that made them request more tasks than they could handle. Follow-up measures include an auto-tuning algorithm for worker task intake, more task queue capacity, and removing external API dependencies from critical workflows.