Repository navigation
v0.8.1 — Production hardening
Production hardening. Making SendDock honest to run at scale, keep, and observe.
Added
- Safe multi-replica operation. The IMAP bounce poller is now leader-elected with a Postgres session advisory lock, so only one replica polls each mailbox at a time. The scheduled-campaign worker, broadcast queue and webhook delivery were already coordinated (atomic claim /
FOR UPDATE SKIP LOCKED) — the poller was the last unguarded loop. Running more than one instance no longer double-processes bounces. The container entrypoint also retries migrations instead of dying when two replicas racegoose upagainst the same database. - Observability for the send pipeline. Logs are now structured JSON (
slog), and a PrometheusGET /metricsendpoint exposes send attempts/sends/failures, SMTP errors by 4xx/5xx class, broadcast queue depth, webhook delivery outcomes, bounce/complaint ingest and poller tick duration./metricsis unauthenticated by convention — scope it at the network layer. See Monitoring.
Docs
- Backups & Recovery — a dedicated, discoverable page (previously buried inside Updating): scheduled
pg_dump, off-site encryption, a clean-instance restore walkthrough, a rehearsed-restore recipe, and why a pre-update dump is the real rollback path. - Monitoring — the metric catalog, a Prometheus scrape example and the JSON log format.