Tenant Domain Setup in Go: Upsert DNS Records and Converge Deliverability Proof
go
dev.to
Use one durable intent row per tenant domain, upsert every record instead of creating it, and let verification be a separate step that converges on its own. Design for the retry, because in tenant onboarding the retry is the normal case: a property manager double-clicks Add domain, the queue redelivers the same job, a deploy restarts the worker between the DKIM write and the DMARC write. None of that is exotic. It's Tuesday. The page fires on bounce rate, not on the write that caused