{"id":2802,"date":"2026-09-18T14:57:19","date_gmt":"2026-09-18T14:57:19","guid":{"rendered":"https:\/\/adjoe.io\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/"},"modified":"2026-11-24T17:35:24","modified_gmt":"2026-11-24T17:35:24","slug":"the-mayday-framework-a-centralised-anomaly-detection-system","status":"publish","type":"engineer_blog","link":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/","title":{"rendered":"The Mayday framework: Birth of a centralised anomaly detection system"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Since we published the <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/anomaly-detection-system\/\" target=\"_blank\" rel=\"noreferrer noopener\">anomaly detection system<\/a>, adjoe has more than doubled its daily active users. But that is not the only thing that grew.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More users means more publishers, campaigns, countries and more advertisers. The number of data slices you have to monitor grows faster than the traffic itself, because it grows with the product of those dimensions rather than the sum. Our alerting system had to evolve with it, and it did.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That post ended with a promise: move from a daily statistical sweep to something that fires every few minutes and watches over our core KPIs continuously. We kept the promise.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The statistics are the half that gets talked about. The other half is everything that happens after a value is flagged: getting it to the one person who can act on it.&nbsp;This post covers both: the anomalies that are detected and the engine that helps deliver it to the responsible person. <br><br>Together they are what we call the <strong>Mayday Framework<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why the initial detection system ran out of road<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The original design worked. It bootstrapped each data slice until a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Kolmogorov%E2%80%93Smirnov_test\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Kolmogorov%E2%80%93Smirnov_test\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Kolmogorov-Smirnov test<\/a> agreed the old and recent windows came from the same distribution.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then it flagged a recent value as an outlier if it failed either a Z-test or an interquartile-range check. Failures went out over a webhook.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What it could not do was <strong>scale in the organisational <\/strong>dimension. Each new alarm meant a new pipeline: new SQL, a near-copy of the detection code, its own delivery snippet, and schedule.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Without shared standards, our alarms caused constant noise, fragmented communication, and ambiguity during silent periods.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Failure<\/strong><\/th><th><strong>Looks like<\/strong><\/th><th><strong>Needs<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Wrong maths<\/strong><\/td><td>False positives, missed incidents<\/td><td>Better detectors, per-metric significance gates<\/td><\/tr><tr><td><strong>Right maths, no action<\/strong><\/td><td>Alerts land, nobody responds<\/td><td>Routing, grouping, deduplication, formatting<\/td><\/tr><tr><td><strong>Right maths, right routing, dead pipeline<\/strong><\/td><td>Silence that reads as health<\/td><td>Decoupled delivery, heartbeats, an external watchdog<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Published work on anomaly detection concentrates almost entirely on the first row. Making sure the right grouping and formatting, or the external watchdog, is where the Mayday Framework kicks in.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the Mayday framework is put together<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Mayday is one <a href=\"https:\/\/airflow.apache.org\/\" data-type=\"link\" data-id=\"https:\/\/airflow.apache.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Airflow DAG<\/a> that runs every 15 minutes, and takes care of all three points mentioned above.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today, it carries more than <strong>50 active detectors<\/strong> across more than 15 domains.<br>It is delivered through 10+ independently scheduled routes to email, Google Chat and Slack.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The framework splits cleanly into two: a <strong>declaration layer<\/strong> and an <strong>engine<\/strong>.<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">YAML<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-yaml\">framework\/\n---Declaration\n\u251c\u2500\u2500 config.yaml            # every detector + every delivery route\n\u251c\u2500\u2500 queries\/&lt;domain&gt;\/      # one SQL file per detector\n\u251c\u2500\u2500 python_transforms\/     # optional post-SQL hook, one per detector\n\u251c\u2500\u2500 cards\/&lt;domain&gt;\/        # chat card templates\n---Engine\n\u251c\u2500\u2500 math_library.py        # the statistical models\n\u251c\u2500\u2500 helper.py              # query loading, staging, dedup, rendering, sending\n\u251c\u2500\u2500 runner.py              # builds the pipeline from config.yaml\n\u2514\u2500\u2500 env.py                 # the one place production and staging differ<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Each detector declares five things:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Declares<\/strong><\/th><th><strong>Answers<\/strong><\/th><\/tr><\/thead><tbody><tr><td>A query<\/td><td>What data?<\/td><\/tr><tr><td>A method plus its parameters<\/td><td>What counts as anomalous?<\/td><\/tr><tr><td>Dimensions<\/td><td>Which slicings to test independently?<\/td><\/tr><tr><td>A dedup key and window<\/td><td>When is this the same alert as last time?<\/td><\/tr><tr><td>A channel and template<\/td><td>Who sees it, and in what shape?<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Those declarations project into a pipeline. Each detector delivery route becomes an individual task. Three execution gates decide which one runs on a given cycle:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" height=\"1200\" width=\"1200\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/image-1.png\" alt=\"The Mayday Framework: Birth of a Centralised Anomaly Detection System\" class=\"wp-image-3003\" srcset=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/image-1.png 1200w, https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/image-1-150x150.png 150w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The three gates are the reason a fifteen-minute cadence remains affordable. And fanning out delivery tasks ensures a broken detector cannot silence the rest.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The key here is automation: none of this workflow is wired by hand. The entire task graph is derived from the config file on every deploy.&nbsp; Adding a detector means writing <strong>one SQL file and one config block<\/strong>. The Airflow task is auto-generated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">One configuration file as the source of truth<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Our core design choice: a detector is a declaration, not a program. A single config file specifies the measurement, tests, frequency, deduplication, and routing. Airflow tasks, queries, and final alerts are all projected automatically from that setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a real detector: the view-to-click conversion rate, checked hourly across four dimensions. Comments are added for readability:&nbsp;<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">YAML<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-yaml\">V2C:\n  display_name: &quot;V2C (View-to-Click Rate)&quot;\n  query_file:   queries\/tech_alerts\/master_data_hourly.sql\n\n  # The metric \u2014 a ratio. Both sides are summed per hour, then divided.\n  numerator_col:   clicks\n  denominator_col: views\n\n  # Run the same test independently across four slicings of the data\n  dim_cols: [sdkhash, platform, mmp_name, osversion]\n\n  # How and when to test\n  hourly_check:\n    cron:   &quot;45 * * * *&quot;                  # every hour, at :45\n    method: historical_baseline_iqr_anomaly_detection\n\n    baseline_hours:               336     # 14 days of history\n    min_baseline_hours:           336     # ...and require it to be complete\n    min_baseline_samples_per_hod:  14     # ...with 14 same-hour samples\n\n    iqr_upper_multiplier:         4.0     # spike fence, above p90\n    iqr_lower_multiplier:         3.0     # drop fence, below p25\n    min_baseline_avg:           0.001     # ignore slices averaging under 0.1%\n\n  # Stay quiet about a repeat of the same slice for 4 hours\n  dedup:\n    key: [dimension, dimension_val]\n    lookback_hours: 4\n\n  # Where it goes\n  alerts:\n    gchat:\n      card_file: cards\/tech_alerts\/tech_alerts.json<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">That is the whole detector. No Python, no scheduling code, no delivery code.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same test runs independently across four slices of the data, per SDK, per platform, per attribution partner, per OS version. So a regression confined to one iOS version surfaces on its own rather than being averaged away in a global number.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The method line is the pluggable part. Swap it, adjust the parameters under it, and the same query and chat card now feed a completely different statistical test.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 1 Detection: Maths, revisited<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Dual-baseline IQR<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Our workhorse point detector, <code>historical_baseline_iqr_anomaly_detection<\/code>&nbsp; began as a straight port of the original. The original combination was <a href=\"https:\/\/en.wikipedia.org\/wiki\/Z-test\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Z-test\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Z-test<\/a> and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Interquartile_range\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Interquartile_range\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">IQR<\/a>: two different statistics over the same window. That guards against distributional assumptions, which is real but not our main source of false positives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our main source of false positives was <strong>time of day<\/strong>. Offerwall traffic is deeply diurnal. Views at 03:00 UTC look nothing like views at 18:00 UTC. So any detector that compares \u201cnow\u201d against a flat 14-day average fires every single night, then again every morning.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So we changed what should agree. For every metric and every dimension value, we build <strong>two<\/strong> baselines from the trailing 14 days:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>A flat baseline<\/strong>: every hour in the window.<br><\/li>\n\n\n\n<li><strong>An hour-of-day baseline<\/strong>: only those hours whose clock hour matches the current one. Yesterday\u2019s 14:00, the day before 14:00, and so on.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Each baseline yields its own fence, computed from percentiles rather than mean and standard deviation, so a single past incident in the baseline cannot inflate the threshold:<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Python<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-python\">upper = p90 + 4.0 \u00d7 (p90 \u2212 p25) \n\nlower = p25 \u2212 3.0 \u00d7 (p75 \u2212 p25)<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">An alert fires only when the current value breaches the <strong>same side of both fences simultaneously<\/strong>. A 03:00 trough breaches the flat fence but sits comfortably inside its own hour-of-day fence, so it is silent. A genuine collapse at 14:00 breaches both, so it fires.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><br>Blindspots the first system missed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Then, we found the incidents our detector was structurally blind to.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Consider a conversion rate that erodes from 30% to 20% smoothly over three weeks. That is a serious regression, roughly a third of the conversion gone. At no individual hour does it breach any fence, because the baseline is <em>also<\/em> drifting down. It is always within tolerance of its recent self. The detector reports health the entire way down.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Percentage-change thresholds cannot catch this. Neither can point-anomaly detection of any kind, including the dual-baseline detector above. The signal is not in any single observation; it is in the slope. A detector that only ever compares now against recently is unable to see a decline that moves recently along with it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So we added a second detector class,&nbsp; <code>logistic_regression_trend_anomaly_detection<\/code>. <br>For a ratio metric over a 21-day window (504 hourly observations) we fit a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Generalized_linear_model\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Generalized_linear_model\" target=\"_blank\" rel=\"noreferrer noopener\">Binomial GLM<\/a>:<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Python<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-python\">logit(numerator \/ denominator) ~ hours_since_start + C(hour_of_day)\n<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>hours_since_start<\/code> coefficient is the trend.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The 23 hour-of-day dummies absorb the diurnal cycle, so the slope estimate is the trend <em>after controlling for time of day<\/em>. This matters significantly, because without it the fitted slope mostly reflects where in the daily cycle the window starts and ends.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We predict the rate at the start and end of the window <strong>at the same reference hour-of-day<\/strong> for the same reason.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" height=\"560\" width=\"1000\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/image.png\" alt=\"The Mayday Framework: Birth of a Centralised Anomaly Detection System\" class=\"wp-image-3002\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">An alert fires only when three conditions hold together:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The slope\u2019s p-value is below <strong>0.01<\/strong>. Deliberately strict: over 504 observations a random walk will clear p &lt; 0.05 often enough to be a nuisance.<\/li>\n\n\n\n<li>The predicted decline is at least <strong>20% relative<\/strong>.<\/li>\n\n\n\n<li>The predicted decline is at least <strong>N percentage points absolute<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">All of which is one config block. Same metric as the hourly detector earlier, same query, same chat card only the test and its parameters change:&nbsp;<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">YAML<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-yaml\">V2C Gradual Decline:\n  display_name: &quot;V2C \u2014 Gradual Decline&quot;\n  query_file:   queries\/tech_alerts\/master_data_hourly.sql   # same query\n  numerator_col:   clicks\n  denominator_col: views\n  dim_cols: [sdkhash, platform, mmp_name, osversion]\n\n  trend_check:\n    cron:   &quot;0 3,9,15,21 * * *&quot;           # 4\u00d7 a day \n    method: logistic_regression_trend_anomaly_detection\n\n    window_hours:              504        # 21 days of hourly observations\n    hour_of_day_fixed_effect: true        # control for the diurnal cycle\n    relative_drop_threshold:  0.20        # \u2265 20% decline, end vs start\n    p_value_threshold:        0.01        # ...and a slope we&#039;re confident in\n    min_absolute_drop:        0.02        # \u2265 2pp \u2014 relative alone is scale-blind\n    min_denominator:         10000        # ignore thin slices\n\n  dedup:\n    key: [dimension, dimension_val]\n    lookback_hours: 72                    # a slow bleed needn&#039;t be re-announced daily\n\n  alerts:\n    gchat:\n      card_file: cards\/tech_alerts\/tech_alerts.json          # same card<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Two detectors, one metric, watching for two genuinely different kinds of failure, and the difference between them is twelve lines of configuration.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Significance Gates are not just a detail<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Roughly half the tuning effort in this system went into deciding what <em>not<\/em> to test. Every detector carries floors: a minimum baseline average, minimum denominator, baseline hours, same-hour samples.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They matter more than the test statistic. A slice with 10 views has a wildly unstable conversion rate and will breach any fence. Without floors, your alert channel fills with statistical noise from irrelevant slices. The real signal is buried, which returns you to the \u201cnobody acts\u201d failure mode by a different route.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Detection thresholds are per-metric, and any framework that pretends otherwise will silently mislead you.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 2 Delivery: From flagged to acted on<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Detection and delivery are not the same&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The single most consequential architectural decision in Mayday:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" height=\"1110\" width=\"1568\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/image-3.png\" alt=\"The Mayday Framework: Birth of a Centralised Anomaly Detection System\" class=\"wp-image-3005\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There is one deliberate exception. If a group\u2019s delivery fails, its files stay in <code>pending\/<\/code>, which means every channel for that group is retried, including ones that already succeeded, so a duplicate is possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When correctness and tidiness conflict in a monitoring system, correctness wins every time.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Deduplication is a first-class feature, not a filter&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The most common reason alerting systems get ignored is not inaccuracy. It is repetition. An incident lasting four hours, on a 15-minute detector, is sixteen identical messages. People mute the channel and then miss the next real one.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So deduplication is declared alongside the detector:<\/p>\n\n\n\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">YAML<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-yaml\">dedup:\n  key:            [sdkhash, alert_type]   # what makes this alert &quot;the same alert&quot;\n  lookback_hours: 4                       # ...and how long we stay quiet about it<\/code><\/pre>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Before an alert is staged, the framework reads recent sent\/ history, builds the set of identities already delivered inside the lookback window, and drops rows that match. That same four-hour incident becomes <strong>one<\/strong> message. The window is per-detector: hourly volume checks use 4 hours; three-week trend detectors use 72, because a slow bleed does not need re-announcing daily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We also thread chat messages. Every Google Chat message is posted with a stable thread key of <code>project : detector : group : UTC<\/code> date, so a follow-up alert for the same thing on the same day replies in-thread rather than opening a new top-level card. A multi-hour incident is one readable conversation. Threads roll over daily, so a week-long issue is seven threads rather than one unreadable one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Route by who acts, not by what fired<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The original system posted everything to one webhook. That is fine with three alarms and unusable at scale.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Mayday, every detector declares a grouping key, and delivery is built around it.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A budget report grouped by account manager produces one email per manager, containing only their campaigns, with their own reporting line automatically copied in, from one detector run, with no per-manager configuration anywhere.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then the channel is matched to the decision:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Channel<\/strong><\/th><th><strong>Shape<\/strong><\/th><th><strong>Right for<\/strong><\/th><\/tr><\/thead><tbody><tr><td>Google Chat \/ Slack<\/td><td>Rich cards, collapsible sections, deep links<\/td><td>Urgent, single-decision, \u201clook at this now\u201d<\/td><\/tr><tr><td>Email<\/td><td>HTML tables, CSV\/JSON attachments, capped inline rows<\/td><td>Reports someone will sort, filter and work through<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" height=\"918\" width=\"1682\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/image-2.png\" alt=\"The Mayday Framework: Birth of a Centralised Anomaly Detection System\" class=\"wp-image-3004\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The image above shows us how informative can one Google Chat card be. This one alert already gives you insight into \u201cwhat\u2019s the acceptable range of values\u201d vs. \u201cwhat is the current anomalous value. You can also directly add a deep link to your monitoring dashboard.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Knowing when the detector is broken<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This closes the third failure mode, and it is the piece we would tell anyone to build first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Every run writes a small heartbeat object at start and overwrites it at finish. A <strong>separate<\/strong> watchdog pipeline reads those objects and reports when a run is still marked. Starting past its allotted slot, naming the detectors that were consequently skipped.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two design points earn their keep:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>It is a separate pipeline.<\/strong> A watchdog cannot reliably detect that the system it monitors failed to run if it is part of that same system.<br><br><\/li>\n\n\n\n<li><strong>The finish marker is written unconditionally<\/strong>: Whether the run succeeds, fails, or is fully skipped, the marker is recorded. \u201cStill running\u201d must mean exactly that \u2013 not \u201cfailed before the bookkeeping happened.\u201d<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Isolation, because one broken detector must not silence the others<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Originally, one task delivered everything. Its logic was correct, and its blast radius was the entire platform: a single failing detector left every other domain\u2019s alerts sitting undelivered in <code>pending\/<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now each delivery route is its own task, waiting only on the detectors inside its own scope. A detector that has not fired this cycle does not block anything. A detector that has <em>failed<\/em> blocks only its own route.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>In an alerting system, resilience means independent failure domains.<\/strong> A shared delivery path is a single point of failure with extra steps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Moving forward\u00a0<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Two directions we are actively working on:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Thresholds that tune themselves.<\/strong> Every floor and multiplier is currently hand-set from a backtest. That does not scale to hundreds of detectors. We want per-metric parameters fitted from historical alert precision, so a detector calibrates itself against its own track record.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Correlated incidents.<\/strong> When one upstream cause breaks four metrics, we currently send four alerts. Grouping causally-related alerts into a single narrative is the next big reduction in noise.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Our conclusion from the first article still holds. With large-scale systems like these, we never reach perfection, but you get better. What we would add is that \u201cbetter\u201d turned out to mean something different from what we expected.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We assumed the road ahead was better statistics. It was mostly better engineering around ordinary statistics, and that is where the returns were. <br><br>We\u2019ll keep sharing what we learn along the way. Stay tuned for more <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/\" target=\"_blank\" rel=\"noreferrer noopener\">engineering stories<\/a> from adjoe.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:32px\">Build products that move markets<\/h2>\n\n\n<section class=\"l-section l-section--jobs-include is-light l-pt-lg l-pb-lg\" data-block=\"jobs-include\">\n\t<div class=\"l-wrapper\">\n\t\t<div class=\"jobs-include\">\n\t\t\t\n\t\t\t<div class=\"jobs-include__table-wrap\" tabindex=\"0\">\n\t\t\t\t<table id=\"jobs-include-table-1\" class=\"jobs-include__table\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th scope=\"col\">Role<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Team<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Location<\/th>\n\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t<\/thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\" data-label=\"Role\">\n\t\t\t\t\t\t\t\t\t<a class=\"jobs-include__role\" href=\"https:\/\/adjoe.io\/ko\/careers\/open-positions\/5c1d70f8-e163-424f-b9af-91745beb1e06\/\">\n\t\t\t\t\t\t\t\t\t\tSenior Data Engineer (f\/m\/d)\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/th>\n\t\t\t\t\t\t\t\t<td data-label=\"Team\">\n\t\t\t\t\t\t\t\t\tPlaytime Data Science\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<td data-label=\"Location\">\n\t\t\t\t\t\t\t\t\tHamburg\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t<\/table>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Since we published the anomaly detection system, adjoe has more than doubled its daily active users. But that is not&#8230;<\/p>\n","protected":false},"author":74,"featured_media":6195,"template":"","engineer_blog_category":[72],"class_list":["post-2802","engineer_blog","type-engineer_blog","status-publish","has-post-thumbnail","hentry","engineer_blog_category-data-science"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Build a Centralised Anomaly Detection System: Mayday Framework<\/title>\n<meta name=\"description\" content=\"Discover how adjoe built the Mayday Framework to scale anomaly detection, reduce alert noise, and deliver actionable insights across 50+ detectors.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Build a Centralised Anomaly Detection System: Mayday Framework\" \/>\n<meta property=\"og:description\" content=\"Discover how adjoe built the Mayday Framework to scale anomaly detection, reduce alert noise, and deliver actionable insights across 50+ detectors.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/\" \/>\n<meta property=\"og:site_name\" content=\"adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-24T17:35:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"1190\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/\",\"name\":\"Build a Centralised Anomaly Detection System: Mayday Framework\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png\",\"datePublished\":\"2026-09-18T14:57:19+00:00\",\"dateModified\":\"2026-11-24T17:35:24+00:00\",\"description\":\"Discover how adjoe built the Mayday Framework to scale anomaly detection, reduce alert noise, and deliver actionable insights across 50+ detectors.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/#primaryimage\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png\",\"width\":1800,\"height\":1190},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/the-mayday-framework-a-centralised-anomaly-detection-system\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Mayday framework: Birth of a centralised anomaly detection system\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"description\":\"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.\",\"publisher\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"adjoe | Making every interaction the start of lasting value\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/Adjoe\\\/100076450974671\\\/\",\"https:\\\/\\\/www.instagram.com\\\/adjoe.io\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/adjoe\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Build a Centralised Anomaly Detection System: Mayday Framework","description":"Discover how adjoe built the Mayday Framework to scale anomaly detection, reduce alert noise, and deliver actionable insights across 50+ detectors.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/","og_locale":"ko_KR","og_type":"article","og_title":"Build a Centralised Anomaly Detection System: Mayday Framework","og_description":"Discover how adjoe built the Mayday Framework to scale anomaly detection, reduce alert noise, and deliver actionable insights across 50+ detectors.","og_url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/","og_site_name":"adjoe | Making every interaction the start of lasting value","article_publisher":"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","article_modified_time":"2026-11-24T17:35:24+00:00","og_image":[{"width":1800,"height":1190,"url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/","url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/","name":"Build a Centralised Anomaly Detection System: Mayday Framework","isPartOf":{"@id":"https:\/\/adjoe.io\/ko\/#website"},"primaryImageOfPage":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/#primaryimage"},"image":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/#primaryimage"},"thumbnailUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png","datePublished":"2026-09-18T14:57:19+00:00","dateModified":"2026-11-24T17:35:24+00:00","description":"Discover how adjoe built the Mayday Framework to scale anomaly detection, reduce alert noise, and deliver actionable insights across 50+ detectors.","breadcrumb":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/#primaryimage","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/09\/13-Behind-the-Scenes_-How-We-Built-an-Anomaly-Detection-System.png","width":1800,"height":1190},{"@type":"BreadcrumbList","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/the-mayday-framework-a-centralised-anomaly-detection-system\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/adjoe.io\/ko\/"},{"@type":"ListItem","position":2,"name":"The Mayday framework: Birth of a centralised anomaly detection system"}]},{"@type":"WebSite","@id":"https:\/\/adjoe.io\/ko\/#website","url":"https:\/\/adjoe.io\/ko\/","name":"adjoe | Making every interaction the start of lasting value","description":"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.","publisher":{"@id":"https:\/\/adjoe.io\/ko\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/adjoe.io\/ko\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/adjoe.io\/ko\/#organization","name":"adjoe | Making every interaction the start of lasting value","url":"https:\/\/adjoe.io\/ko\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","width":1200,"height":630,"caption":"adjoe | Making every interaction the start of lasting value"},"image":{"@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","https:\/\/www.instagram.com\/adjoe.io\/","https:\/\/www.linkedin.com\/company\/adjoe"]}]}},"_links":{"self":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog"}],"about":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/types\/engineer_blog"}],"author":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/users\/74"}],"version-history":[{"count":5,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2802\/revisions"}],"predecessor-version":[{"id":5683,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2802\/revisions\/5683"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media\/6195"}],"wp:attachment":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media?parent=2802"}],"wp:term":[{"taxonomy":"engineer_blog_category","embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog_category?post=2802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}