skip to content

What event-delivery defaults should a platform team enforce for every asynchronously triggered function in an organisation, and what does each default cost the teams?

level: principalimportance: should knowfreq 32%

answer

  1. silent loss is the platform default
  2. mandatory catch-net, owned alarm
  3. retries follow declared side effects
  4. age follows declared freshness
  5. check it in templates, not reviews

basics

~20 s

Mandate a failure destination with an owned alarm, enough retention and timeout ordering checks on every asynchronous function; derive retries and event age from declared side effects and freshness. The costs are alarm noise, storage, pipeline friction and exceptions.

solid answer

~50 s

With dozens of teams, the platform's default is silent loss: no destination, no alarm. I would make a few things **mandatory**: a failure destination (or a dead-letter queue on polled sources) on every asynchronous consumer, an **alarm with a named owner** on each, **retention** longer than the longest unwatched stretch, and a **timeout ordering** check. Retry count and maximum event age I would not fix centrally; I would make teams **declare** each function's side-effect class and freshness, and derive the settings from that, because the right count for a ledger write is wrong for a card charge. Enforcement lives in deployment templates and a CI policy check, with time-limited exceptions. The costs are real: alarm noise from low-value functions, storage, friction in the pipeline and a shared replay tool to maintain. I would roll it out as audit, then warn, then block.

go deeper

for a junior

Remember that out of the box, many platforms discard failed asynchronous events, which is why organisations set defaults.

for a middle

Explain which delivery settings can be fixed fleet-wide and which depend on each function's side effects and freshness.

for a senior

Show how you would encode the defaults in templates and a CI policy check, and how you would audit what was deployed outside them.

for a principal

Weigh mandate against autonomy: name the costs of each default, decide what to mandate, derive or leave alone, and plan the audit, warn, block rollout.

## Why a fleet default at all On many function platforms an asynchronous consumer, out of the box, retries for a bounded time and then discards the event. No failure destination, no alarm. One team that knows this configures its functions carefully. An organisation with dozens of teams and hundreds of functions ends up with a mix, and the gaps show up only during an outage, when a weekend of order events turns out to have gone nowhere. The lead's decision is which delivery settings to make **mandatory**, which to **derive** from something teams declare, and which to leave alone, and how to enforce them without becoming a bottleneck. There is no single right answer; each default has a cost, and the balance depends on how much the business loses when an event disappears. ## Candidate defaults 1. **A catch-net on every asynchronous consumer.** A failure destination for events the platform invokes asynchronously, and a dead-letter queue on every polled queue source. 2. **An alarm with an owner on every catch-net.** Arrivals page or ticket the team that owns the function. 3. **Retention past the blind spot.** Destination retention longer than the longest stretch nobody is watching. 4. **Timeout ordering.** Downstream call timeout below function timeout, and function timeout plus batching window well below the source's visibility timeout. 5. **Retry count and event age from declared classes.** Each function declares whether its side effects are idempotent and how long its events stay useful; the template sets the values. 6. **Source filtering preferred over discard-in-handler.** A lint rule or review prompt when a handler visibly returns early on most events. 7. **One shared replay tool**, so redrive is a tested capability rather than a script written mid-incident. ## What each costs | Default | What it buys | What it costs | |---|---|---| | Mandatory catch-net | No silent loss | A queue or topic per function, small storage charges, more resources in every template | | Owned alarm | Failures reach a person | Alarm noise from low-value functions; teams must triage or tune severity | | Long retention | Survives an unnoticed weekend | Storage, and sensitive payloads kept longer, which may matter for data rules | | Timeout ordering check | No duplicates made by configuration | Pipeline friction; some legacy functions need rework before they pass | | Declared classes | Retries suited to side effects | Teams must classify honestly; a wrong class gives wrong settings everywhere | | Shared replay tool | Safe, repeatable redrive | A tool the platform team must build, document and keep working | ## Mandate, derive or leave alone The useful split is by whether a setting has **one right answer across the fleet**. - Silent loss is wrong for almost every business event, so the catch-net and its alarm can be **mandated**. Exceptions exist (a best-effort metrics ping), so allow an explicit opt-out with a reason and an expiry rather than none. - Retry count and event age have **no fleet-wide right value**. A non-idempotent charge wants few retries; an idempotent ledger write wants all of them. Fixing one number centrally guarantees it is wrong for half the fleet. Deriving them from a declared class keeps the decision with the team that knows the side effects while keeping the result consistent. - Batch size and window depend on traffic and latency targets. Publish guidance, do not enforce. ## Enforcement that does not become a queue - Put the defaults in the **shared deployment templates** or modules, so a new function gets them without asking. - Add a **policy check in CI** that fails a deployment missing a catch-net, missing an alarm owner, or with misordered timeouts. - Run a **periodic audit** of what is deployed, since not everything goes through the templates. - Track **exceptions** with an owner and an expiry date, reviewed on a schedule. ## Rolling it out 1. **Audit** the fleet and publish the gap: functions without a catch-net, alarms without owners. 2. **Warn** in CI for a period, with a self-service fix in the template. 3. **Block** new violations, then work down the existing list with the owning teams. 4. **Measure**: events recovered by replay, alarms acknowledged, exceptions open. If alarms go unacknowledged, the noise cost is winning, and severity tiers or routing need work. ## The trade-off in one line The platform team trades some autonomy and some friction for a guarantee that no event-driven function in the organisation can lose a business event without someone being told. Whether that trade is worth it depends on what a lost event costs; for orders, payments and ledgers it nearly always is.

  • A team says its function only emits best-effort analytics and wants no failure destination. How do you handle it?
    Allow it as a recorded exception: the team states why loss is acceptable, names an owner and the exception expires for review. That keeps the default strong while admitting real cases. Without an expiry, exceptions pile up and quietly become the new default.
  • How would you tell whether the alarm default is costing more than it saves?
    Track alarms by acknowledgement and outcome. If most are acknowledged without action, or teams mute them, noise is winning: add severity tiers by function class, route low-value functions to a ticket queue instead of paging, and keep paging for business-critical events.

  • One retry count and event age for the whole fleet keeps things simple and safe.
  • A catch-net is optional because the platform's own retries cover outages.
  • Code review alone will catch functions missing a failure destination.
  • Mandatory alarms cost nothing, so every function should page someone.
  • Exceptions to the default should be refused outright to keep it strong.