Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Nextdoor Engineering 5 min read Case study mediumAdept

Catching Anomalies Early in Mobile App Releases

Nextdoor detects silent regressions in weekly iOS and Android releases at 1% phased-rollout adoption by applying difference-in-differences analysis instead of aggregate metrics, which hide small cohorts and are skewed because early adopters are more active users. They compare per-user metric changes for adopters versus non-adopters three days before and after release, verify the pre-trend assumption with a standard-deviation bound, and fit a linear regression with a time×treated interaction term to estimate each release's effect. In one example, a 5% app-session undercount was flagged on day one, 10 days earlier than week-over-week monitoring, without needing to model seasonality or day-of-week effects.

Assumes: phased app rolloutsbasic statisticslinear regression

Related posts

  • App stability at scale with a layered defense

    Grab Engineering mediumAdept

    Grab keeps its Android and iOS superapp stable with a layered, shift-left defense against crashes. Prevention comes first: lint rules (including custom rules written from post-mortems) block merges in CI, followed by unit, UI component, E2E and manual QA testing and a mandatory one-week Grab Early Access build that auto-tickets new crashes. At the release gate, a week-long staged rollout monitors the new version's crash rate in isolation and auto-pauses expansion, while feature flags act as kill switches. In production, hard-threshold and trend alerts, a flag-first → server-side fix → hotfix escalation ladder, automated triage with severity SLAs, and a flag-rollout history dashboard contain and diagnose crashes that slip through.

  • Slack Audit Logs and Anomalies

    Slack Engineering mediumAdept

    Slack Enterprise Grid audit logs record platform actions and include anomaly events that flag unusual behaviour such as new user agents, excessive downloads, unexpected scraping, IP address changes and session fingerprint mismatches. Anomalies are best treated as investigation leads rather than incidents: tune them by allowlisting trusted CIDR ranges and ASNs, correlate them (a user_agent plus excessive_downloads plus session_fingerprint pattern suggests a stolen cookie being used to scrape), and aggregate per-user counts against historical norms. Ingesting the full audit log stream, not just anomalies, supplies context such as which files were downloaded. A walkthrough of a departing employee scraping data shows the dashboard investigation flow and session termination, and recommends allowlisting expected user agents rather than blocklisting bad ones.

  • ClickHouse forecasting and anomaly detection with time series foundation models

    ClickHouse mediumAdept

    TimesFM 3.0, a pretrained time-series foundation model, can be called from ClickHouse SQL via executable Python UDFs that forward arrays to an HTTP model server, giving zero-shot forecasts and anomaly scores without per-series training. SQL handles aggregation, ordering and time bucketing. aiForecast returns median, q10–q90 bounds and nine native quantiles per step, and aiDetectAnomalies scores rolling held-out windows by normalized forecast error. On Walmart M5 store sales, adding a known-future Christmas event flag as a covariate dropped Christmas anomaly scores below the threshold in nine of ten stores (e.g. TX_2 from 8.65 to 2.71). The weights carry non-commercial restrictions and the demo is for local evaluation only.

  • Scaling ClickStack alerting with built-in anomaly detection

    ClickHouse mediumAdept

    Managed ClickStack adds z-score anomaly detection to query-builder charts, computing the expected value from a 7-bucket one-minute moving average and the standard deviation over a longer baseline (two hours by default). A minimum 5% relative change keeps stable metrics with near-zero variance from firing, and a 30-second delay prevents batched collector sends from looking like drops. Alert evaluation was scaled to tens of thousands of alerts by loading configs only for due alerts, running lookups concurrently, batching result writes, moving webhook delivery to a background queue, and hash-sharding alerts across workers with backfill for missed windows. The current detector misses gradual drift and seasonality, so static thresholds remain recommended for persistent limits.

  • Unfold's Modern Mobile Release Process and the Subtle Art of Making Them Boring

    Squarespace Engineering mediumAdept

    Squarespace's Unfold team moved from ad hoc, manager-driven mobile releases to an automated one-week release train for iOS and Android, run by a rotating release captain. A scheduled Friday branch cut, cherry-pick automation for release-candidate fixes, a Monday–Wednesday QA window planned in Xray, and staged store rollouts that halt automatically on Crashlytics and Amplitude health thresholds (e.g. crash-free sessions above 99.5%) keep releases uneventful. Hotfixes dropped from many per month to about five per year, and captain effort fell from hours to minutes a day. The team got there by starting with a biweekly train, defining halt/hotfix criteria in retrospectives, and adopting Runway as the release control center.

The quest for software engineering knowledge.

Look:
Layout: