Skip to content

ADR: Edge deploy economics

ADR: Edge deploy economics

Status: accepted, 2026-09-01, the evening the meter was read.

In plain words

The site's secure entry point (the Netlify edge) runs on a free plan with a monthly credit allowance, and on its first full day, app changes that never touched the edge used over half of it by rebuilding the edge. One line of settings (netlify.toml) now rebuilds the edge only when its own files change.

What that is worth: a developer learns to read a platform's meter in the first week, and the organization keeps the edge free with no paid plan.

Context

The HTTPS edge runs on Netlify's free plan, which allots 300 credits a month. On the first full day of the custom domain the billing page showed 168.2 credits gone. The breakdown was the lesson: 11 production deploys had consumed 165 credits at 15 each, while actually serving the site all month cost 3.3 (1,835 requests plus bandwidth). Netlify's default is to rebuild the edge on every push to the connected repository, and this repository pushed ten times that day shipping application changes that never touched the three files the edge is made of.

Decision

Scope edge rebuilds to edge changes with one line in netlify.toml:

ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- edge/ netlify.toml"

When the diff is empty the build exits before it starts and no deploy credit is spent. No paid plan. The math never justified one: the burn was a default behavior, not real usage, and this edge layer retires at the planned registrar transfer around the end of October anyway.

Consequences

  • Application pushes cost zero Netlify credits. Edge changes still deploy themselves, which is the behavior that was always wanted.
  • Build hooks would bypass the rule; this project uses none. A deliberate edge redeploy can be forced from the Netlify UI.
  • The known trap: on a cold build cache (a cache clear, or Netlify's first build after a config change) the two commit references can be equal, the diff comes back empty, and a REAL edge change gets silently skipped. The routine after any edge change is therefore: push, then glance at the deploys page and confirm a build actually ran; force one from the UI if it did not.
  • The general lesson, worth keeping: a managed platform bills on its defaults, not on your intent. Read the meter in the first week, find which line item is really moving, and fix the configuration before reaching for a credit card.

Addendum, 2026-09-09: a second origin behind the one edge

The edge fronts two origins now. Two lines above the catch-all send theyard-cosmos.stevenstout.biz to the second container group, the one whose default store is Azure Cosmos DB, and the rest of the file is as it was (ADR: A permanent address for the second site). The economics are the reason the second name is an alias on this site and not a site of its own: a second site would have had a second deploy meter, and every edge change would have cost 15 credits twice. This change cost one edge deploy, and the routine above applied to it unchanged: push, read the deploys page, force a build if the cold-cache trap skipped it. The record it belongs to carries the meter's reading before and after.

Addendum, 2026-10-05 (1.0.3.76): what it would cost to serve the script from the edge

The edge proxies every request to Azure, and a proxied file is cached per node, so a quiet site misses on its hashed script most of the time (ADR: Cache headers, the addendum of 5 October). The way to end that on Netlify is to publish the built files to the edge itself, which makes every app version a Netlify production deploy. Priced against Netlify's pricing page on 5 October:

Credits a month Cost a month
Today: only edge changes deploy about 0 $0 on the free plan, 300 credits
September's pace, 252 versions at 15 credits each 3,780 about $30 on Pro (3,000 credits for $20, then $10 for 1,500 more)
October's pace so far, about 115 versions 1,725 about $19 on Personal (1,000 credits for $9, then $5 for each 500 more)

What it buys is about a quarter of a second on a first visit's script, once per visitor per version. The recommendation is to wait: the domain's registrar lock ends around 30 October, the edge was always going to move to Cloudflare then, and Cloudflare's free plan caches the hashed files with Smart Tiered Cache, which serves a quiet site's files from one upper tier instead of a cold cache per node. Bandwidth and requests already cost credits on today's plan and are not changed by this.

Where it sits

No ring is involved, because this is a hosting cost decision about when the Netlify edge rebuilds, settled by one ignore line in netlify.toml.

Files

  • netlify.toml: the ignore rule that stops app-only pushes from redeploying the edge, shown live below.
  • edge/_redirects: the whole edge, seven lines, shown live below: the bare and www names redirect, the second site's name proxies to the second origin, everything else proxies to the first.
  • edge/README.md: how the edge project is wired to the repo.
  • docs/hosting/HOSTING.md: where the edge sits in the chain.
# Only rebuild the edge when the edge itself changed. App pushes were
# burning 15 Netlify credits each on redeploys of three unchanged files;
# exit 0 here means "nothing under edge/ or this file moved, skip it".
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- edge/ netlify.toml"

Live from netlify.toml, region ignore-rule, read from this build at 99df7a8.

https://stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
https://www.stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
http://stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
http://www.stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
# The second site, whose default store is Azure Cosmos DB, under its own name
# (ADR: A permanent address for the second site). These sit above everything in
# netlify.toml, because Netlify reads this file's rules first and the first
# matching rule wins.
#
# Every page is the bare path with a query naming the view, the vehicle or the
# document, and the rendering service draws it (ADR: A rendering service beside the API); each
# domain's page goes to the service under that site's name. The query goes with
# a 200 rewrite.
#
# Everything else, the bundle, the photographs and /api, goes to the one web app
# that serves both sites (ADR: One web app for every .NET process). Those two
# rules are in netlify.toml, because only a rule written there can add a header
# to what it proxies, and the web app learns which site a request is for from the
# X-Yard-Host header those rules add. Until 19 October they were here, one per
# site, each to a web app of its own.
https://theyard-cosmos.stevenstout.biz/ https://app-theyard-render-ss-zmnetj67bn5h2.azurewebsites.net/site/cosmos 200!
http://theyard-cosmos.stevenstout.biz/* https://theyard-cosmos.stevenstout.biz/:splat 301!
/ https://app-theyard-render-ss-zmnetj67bn5h2.azurewebsites.net/site/sql 200!

Live from edge/_redirects, region rules, read from this build at 99df7a8.

Enforced by

Not machine-checked. Held by review.

Store

The Yard, home

Steven StoutStaff .NET engineerRemote

Production .NET that stays up. Built with AI, measured on every version.

Steven Stout

Hi, I'm Steve. I build the systems that make delivery boring in the best way, then coach people inside them.

  • 200+

    production releases, none took the platform down

    Conway Investment Research, 2019 to 2024. Sole engineer for the first three years on a live financial advisory platform.

    See how
  • 50%

    shorter release cycle

    Storee Construction, 2024 to 2026. Four ASP.NET applications onto one .NET 10 platform on Azure, with a four-person team I hired and mentored.

    See how

01Verified

Steven Stout

A real person, and the work is mine.

  • Identity

    Checked by LinkedIn, not by me.

    LinkedIn verified my government ID.

  • Running system

    You are looking at it.

    Version 1.0.5.273 is live. Nothing ships unless it passes the automated gates first.

That's who I am. Here's how I work.

02Strengths

Ten strengths, each with the proof beside it. The numbers match my resume and LinkedIn, and the live ones are read from this site as you look.

  • 01

    Keeps production alive

    200+ releases on a live financial platform, and none took it down. Sole engineer for the first three years.

    See the Conway work

  • 02

    Simplifies messy systems

    Four ASP.NET applications onto one .NET 10 platform on Azure, and a release cycle 50% shorter.

    See the Storee work

  • 03

    Marries dev and infrastructure

    Blue-green releases at Storee that flipped in about 5 seconds with nobody signed out, and Azure Front Door at two employers.

    See this site's cloud

  • 04

    Designs data that holds up

    White-label clients on one shared database, the isolation built into the data, and no cross-client issues.

    See the Conway work

  • 05

    Keeps AI-written code honest

    15 quality numbers that may only improve: 273 releases in a row with none worse.

    See the quality numbers

  • 06

    Resourceful

    $30,000+ cut from Azure and vendor spend at Conway. This site's Azure bill is public, resource by resource.

    See the bill

  • 07

    Builds people up

    Hired and mentored a four-person team. 13 colleagues recommend me by name.

    Read the recommendations

  • 08

    Takes ideas to production

    This site: designed, built and run solo, with 352 versions measured through one gate.

    How it was built

  • 09

    Writes clearly

    Posts on real engineering problems, in plain words.

    Read the blog

  • 10

    Owns decisions

    153 decision records, each with its tradeoff and the call I made.

    See the decision records

Built with AI. Gated so quality never slides.

Steven Stout’s showcase: a used-vehicle auction on .NET and React, built and run by one engineer, live on Azure, with its decisions written down.

No quality number has gotten worse at any release since 1.0.5.1 on 10 November: 273 releases in a row.

One engineer, an AI agent and a gate that checks 15 quality numbers on every release. 352 versions measured, with every result public, the worst days included.

82 releases in the last 7 days, each through the same gate.

Async methods with no CancellationToken, may only fall

11091.0.3.1391.0.5.2731.0.4.115, the ratchet
Every number, on the Quality page

TheYard, right nowLive

Answering in

unread

02505007501,000

server time at p95, the usual five minutes of the last day.

Azure this month

unread

the bill, by resource, read from Azure. The Admin tab shows every line.

Since the last roll

unread

 

rolled in place by the pipeline, behind one gate.

People who have visited

unread

30 days agotoday

Scanners, my own tools' and my own reads left out.

03Start here

04Where teams are heading

How I see engineering with AI, and the setup on this site that backs it.

AI-augmented teams · Architecture and ownership

AI writes more of the code. Someone still has to own what ships.

Teams are going to be heavily AI-augmented. That moves the senior job toward architecture and technical ownership: deciding what to build in pieces small enough to verify, and owning what ships.

  • Task tracking will get automated too. Judgment stays human: seeing a design fail at scale before it does.
  • On this site the AI's first design held the whole catalogue in memory. I caught it when the App Service plan hit 82 per cent and moved the work to the store.

What the AI wrote, what I decided

07Tech stack

  •    
  •    
  •    

Read from the build, never typed by hand

What TheYard runs on

What we use, where it runs, its AWS twin, the version as built, and the file that proves it.

Cloud patterns, not one vendor: every Azure piece in this stack has a named AWS twin. Mapped, not yet run on AWS.

  • .NET 1114 projects
  • React 19.3TypeScript 7.0
  • Azure9 Bicep files
  • 11GitHub Actions workflows
The whole stack, with the file that proves each line

The last release the gate stopped was 1.0.5.258 on 2 December, at its browser 1 of 2 job.

08How it is built

09How it is run

10Who and why

Next step

11What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn