ByRecordDocs
byrecord.com›

Reliability and operations

How the platform is hosted, deployed, watched and kept running, and what happens when a part of it fails, as built today.

This page describes how the platform is run today. The controls that protect data, money and access are on Security and data handling.

Hosting

  • AWS, in the US East (N. Virginia) region. The application, its database and its stored files all run there.
  • Health-checked containers. The application runs in containers behind a load balancer, which sends traffic only to a copy that passes its health check. A copy that fails it is replaced automatically.
  • A managed database. Each programme's data is in a PostgreSQL database on Amazon Aurora, on a private network with no route from the internet. Its storage is encrypted at rest, and the application connects to it over TLS. Automated backups are kept for 35 days, and the database can be restored to any point within them. Anything run against production, such as a migration or a check of the books, runs as a one-off task inside that network.
  • Stored files (proofs of payment, photos, attachments) are kept in encrypted object storage and downloaded only through a short-lived link issued after the request has been authorised.
  • Secrets are held in AWS Secrets Manager and reach the application only through its environment. The console shows whether each one is configured, never its value.
  • The public sites (byrecord.com and these docs) are static pages served from AWS's content delivery network, apart from the platform.

Environments

Production and a programme's sandbox are separate deployments of the same code, each with its own database and settings. The platform checks which one it is when it starts, and again before any migration runs, and refuses to start when a setting belongs to the other.

ProductionSandbox
PaymentsLive. A test key is refusedTest mode only. A live key is refused
EmailDelivered. Redirecting all mail is refusedEvery email goes to one test inbox, which is required
TextsDelivered. Redirecting all texts is refusedNone, unless redirected to one test number
DatabaseThe programme's own. A sandbox database is refusedA sandbox database; any other is refused
DataThe programme's customersMade-up customers, seeded

Deploys

A production deploy is a deliberate, recorded step, never automatic:

  1. Approved. Each production deploy is approved individually, and so is each migration run on production.
  2. Tested on the exact code. The full test suite, the type checks, and the check that nothing internal reaches what a customer's browser downloads all pass on the commit being released. The image is built from a clean checkout of that commit, so nothing uncommitted reaches it.
  3. A snapshot first. A snapshot of the database is taken before anything changes.
  4. An immutable image. The image is tagged with its commit and the release pins it by its digest. The new release differs from the one it replaces only in that image.
  5. Migrations before traffic. Any migrations run as a one-off task of the new release, before any traffic moves to it. Each is checked first to only add (tables, columns, indexes), so the old and new code both run on the schema while the release rolls out. If a migration fails, the release goes no further.
  6. A rolling release. A new copy takes traffic only once it passes its health check. If it does not, the old one keeps serving.
  7. Checked after. Health, the main pages and the logs are checked once the release is out. The books' validator also runs on the first scheduled pass after a new copy starts, so the books are checked again soon after every deploy.

Each release is tagged with its commit and recorded in the deploy history.

Rolling back

A rollback points production at the previous release, whose image is still pinned by digest, and rolls the same way. There are no down-migrations: the schema stays as the newer migrations left it, which is why migrations only add. The data is never rolled back with the code.

Settings without a deploy

A set of business settings, such as invoice lead days, the autopay hour and the statement send day, can be changed by an admin in the console without a deploy. Each change is recorded with who made it and when, and is in force on every copy of the server within 30 seconds.

Monitoring

WhatWatches
Health checkEvery copy answers a health check, which the load balancer and the container service use to decide whether it serves
System healthOne page for the operator's staff, red, amber or green: the payment account, email delivery reports, texting, the sync with your API, every scheduled job, the books' last validation, the latest statement, last month's close, and outbound mail, with failures per hour over the last 24 hours
LogsStructured logs from every copy, collected centrally
The booksThe ledger validator runs every day and emails the operator's staff when the books disagree with billing
Staff alertsEmail to the operator's staff when a statement is blocked or not sent, a dispute opens, a refund fails after succeeding, a hold is expiring, your API does not take a restore, or a billing contact becomes unreachable
IntegrationsEvery webhook the platform receives is recorded as verified or refused, with the reason and never the payload, and shown on System health. Each sync with your API is recorded with its errors

Scheduled jobs

The platform's timed work runs on a scheduler inside every copy of the server. Every minute it runs each job whose interval has passed, one at a time, and records the run.

JobEveryWhat it does
Billing5 minutesRaises invoices that are due, charges automatic ones in the customer's morning, retries declines whose day has come
Standing5 minutesOpens and releases holds, retries restores, and restores any suspension the bill no longer justifies. It never suspends
Notices15 minutesThe notice ladder's timed steps, card-expiry notices, reminders to save a payment method
Device sync15 minutesDevices and locations from your API; notices a suspension you reversed
Device alerts5 minutesOne offline alert and one back-online notice per outage
Webhooks1 minuteDelivers and retries webhooks to your endpoints
Card checksHourlyEach default card's monthly check, in the customer's morning
StatementHourlyBuilds and checks last month's statement on the 1st, and sends it on its send day
LedgerHourlyPosts anything not yet posted, recognises revenue, and settles each ended month to its statement
Ledger validationDailyChecks the books against billing

Every copy runs the scheduler, and during a release the old and new copies overlap, so each job is written to be safe when two copies run it at the same moment: guarded updates, idempotency keys written before the payment rail is called, a claim on each notice and alert before it is sent, and locks wherever two writers could race.

When a job fails

A job that fails is recorded with its error, the rest of the pass carries on, and the job runs again at its next interval. The critical jobs (billing, notices, standing, card checks, the ledger and the statement) turn System health red when their last run failed, and any job that has not started within three of its intervals is flagged.

Parts of the platform tell each other what billing did as it happens, inside the server. Those messages are not stored, so each part that listens also has a backstop job that rebuilds from the records: the ledger hourly, standing every 5 minutes, notices every 15 minutes. A message lost in a crash is caught at the backstop's next run.

When something fails

IfWhat happens
A copy of the server stops answeringIt fails its health check and is replaced automatically
A new release fails its health checkThe old release keeps serving
A migration failsThe release is not rolled out
The payment rail's answer to a charge is lostThe charge is retried with the same idempotency key, so it is never made twice
Your API gives an unclear answer to a suspend or restoreThe platform reads the location's state back from you before deciding what happened
Your API does not take a restoreIt is retried every 30 minutes, and the operator's staff are told each time
A sync with your API failsThe run is recorded with its errors and System health shows it. The gap counts neither up nor down in a customer's uptime, and device status never affects billing or standing
A webhook to your endpoint failsIt is retried on a backoff; see Webhooks
Email delivery reports stop arrivingSystem health warns. A final notice not reported delivered does not count toward suspension, so no account becomes eligible on an unconfirmed notice
The books disagree with billingThe validator emails the operator's staff, and the month cannot be closed until it agrees, unless an admin closes it with a reason on record
The statement's check disagreesThe statement is blocked, not sent, and the operator's staff are told which rows differ

Nothing in the platform suspends a customer on its own: a suspension always needs a named person, and every rule is checked again at that moment. See Collections and service control.

Status and incidents

  • The status page at status.byrecord.com shows the platform's status. It is hosted separately from the platform, so it stays up when the platform does not.
  • Every incident is written up: what happened, how it was found, the cause and the fix, a timeline, the impact, and the lessons.
© 2026 ByRecord · byrecord.com · Status