{
  "id": 14060669,
  "title": "Admit the Event Before the Free Model Touches It",
  "url": "https://urgent.news/2026/10/12/admit-the-event-before-the-free-model-touches-it",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-12T22:45:56.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/kongkong1/admit-the-event-before-the-free-model-touches-it-2j2"
  },
  "original_language": "en",
  "account": "The article emphasizes the importance of admitting an event in a durable outbox before a free model processes it. The billing webhook, which carries event ID, account ID, and reason code, should first admit the event by inserting a row into an outbox table with a unique key. This prevents duplicate writes if the free model retries or the server restarts. The admission route should be simple, checking a shared secret, inserting the outbox row, and returning a 202 status code. If the insert hits a unique constraint, it returns 202 without calling the model. The article warns against spending a fragile free call before verifying the event will not arrive again.",
  "summary": "I keep replaying one ugly afternoon whenever a webhook and a free model share the same request. The billing provider retried, the free server restarted, and two explanations landed for one event that nobody had firmly admitted. A zero price had become the excuse to call the model before the database said yes. Was I debugging a flaky model, or was the request path doing a job it should never own?…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}