Engineering Notes
Code is abundant now. Architecture, maintainability, and staying true to what the application is for are still the hard part.
Twilio Messaging With Per-Company Keys
Why each company in a multi-tenant app sends text messages with its own Twilio credentials, how webhooks find the right tenant, and how consent is enforced.
Private S3 Storage With Pre-Signed URLs
A private S3 bucket is not an authorization system. The application decides who may see a file, then hands out a short-lived pre-signed URL.
Multi-Tenant Data Boundaries in PostgreSQL
In a multi-tenant app, the company ID must never come from the request body. How I enforce company boundaries in queries and why it also makes changes easier.
Email Connections That Survive Auth Expiry
Email in a multi-tenant app has two readers and several providers with different login lifetimes. This is how I kept sync reliable and what happens after three failures.