Saas for SMBs
Playbooks and case studies covering saas for smbs.
Temporal Tables vs. Event Sourcing: Pick the Right Audit Trail
Temporal tables and event sourcing look interchangeable until an auditor or a disputing customer forces you to prove something specific. The right pick depends less on scale than on which question your business actually needs to answer.
How to Migrate a Live Multi-Tenant SaaS DB With Zero Downtime
A practical playbook for migrating a live multi-tenant Postgres database without a maintenance window. Includes the dual-write pitfall that quietly corrupts tenant data — and how a per-tenant write-version flag prevents it.
What Is Event Sourcing? Stop Losing the Why Behind Your Data
Your database records what is true now, not what happened. Event sourcing inverts that model — making the sequence of events the source of truth, so the audit trail becomes structural instead of optional.
How to Sunset a Legacy Feature Without Breaking Power Users
Most feature deprecations fail because usage analytics tell you who calls a feature, not what job it's doing. Here's a playbook for sunsetting legacy features when a vocal minority of power users has built workflows you've never seen.
What Is RAG? Stop Letting Your LLM Hallucinate Your Own Data
Your chatbot invents answers about your own product because the LLM has never seen your docs. Here's what RAG actually does, why retrieval quality matters more than model choice, and when fine-tuning is the wrong fix.
Microservices vs. Modular Monolith: Pick the Right Architecture
Your monolith is slow to deploy and teams are stepping on each other. Before you split into microservices, here's how to tell if your real problem is coupling, pipeline design, or actual scale — and which architecture solves which.
AI Feature Flags Cheatsheet: What to Gate, Rollback, and Monitor
Standard feature flags gate users. AI features need a second layer that gates model behavior — version, prompt, embedding schema, output quality. Here's the reference cheatsheet.
Celery vs. Temporal: Pick the Right Workflow Engine for AI Jobs
Celery loses in-flight state when a worker dies mid-chain — and no amount of logging fixes that. Here's an honest head-to-head with Temporal for teams running multi-step LLM and document-parsing pipelines in production.
How to Migrate a Multi-Tenant SaaS Schema Without Breaking Tenants
Every migration guide assumes all consumers of the database deploy at the same time. In a multi-tenant SaaS, they don't. Here's the playbook we run when tenants are on different release tracks and a single ALTER TABLE would break half your customers.
Backfill Embeddings for 1M Rows Without Killing Postgres
Backfilling embeddings into a live Postgres table with a million rows isn't an ETL job — it's a queue problem. Here's a lease-based pattern that survives crashes, respects rate limits, and never holds a lock longer than one UPDATE.
Kafka vs. SQS: Pick the Right Queue for Your AI Pipeline
Choosing between Kafka and SQS for an AI pipeline usually comes down to one question most benchmarks skip: do you need the message log to be a replayable asset for retraining and audit? Here's the honest tradeoff.
How to Cut Over a Live Database Schema Without Downtime
A step-by-step playbook for renaming columns, dropping tables, and restructuring core models on a live production database — without a maintenance window. Written for CTOs whose deployment pipeline isn't clean enough to ship app and DB changes atomically.
_1751731246795-BygAaJJK.png)