Patterns & Anti-patterns.

Senior engineering is rarely about knowing a syntax trick. It is knowing what to repeat, what to avoid and what tradeoff you are accepting.

patternPRODUCTION

Persist Tracking History Beyond Data View Retention

Copy time-bounded system tracking into your own historical model when long-term analysis is a requirement.

trackingretentiondata viewshistory
patternPRODUCTION

Explicit SELECT Lists

Name the columns you intend to move instead of depending on SELECT *.

sqlschemamigrationmaintainability
patternPRODUCTION

Intermediate Tables for Large Transformations

Split complex transformations into observable stages instead of one giant query.

sqlperformanceautomation studiostaging
patternPROJECT

Externalize Heavy SSJS Processing

Use SSJS for platform-local orchestration, but move large/complex processing to an external system when the workload demands it.

ssjsapiarchitecturetimeout
patternPRODUCTION

Golden Record Inside SFMC — Constrained Architecture

A pragmatic consolidation layer inside SFMC when enterprise CRM/MDM capabilities are unavailable.

identitygolden recordgovernancemultibrand
anti-patternSTUDY

Hardcoded Credentials in Scripts or Assets

Credentials embedded in SSJS, CloudPages or Content Builder become difficult to rotate, audit and protect.

securitysecretsssjscloudpages
anti-patternPRODUCTION

SELECT * in Production Automations

Convenient during exploration, fragile as a durable data contract.

sqlselect starschema
anti-patternPRODUCTION

Redesign Before Discovery

Do not “clean up” an undocumented production org before understanding what is actually active.

discoverymigrationlegacygovernance
patternPRODUCTION

Operational Baselines Before Alerts

Know normal runtime, row count and cadence before deciding what “unhealthy” means.

observabilityautomationbaselinehealth
patternPROJECT

Idempotent Integration Writes

Make retries safe by designing an operation so the same event can be processed more than once without duplicating side effects.

apiidempotencyretryintegration
patternPRODUCTION

Precompute Heavy Message-Time Personalization

Move large lookups and expensive transformations out of email render time when the data can be prepared earlier.

ampscriptemailperformancepersonalizationprecompute
anti-patternPRODUCTION

“Complete” Means Healthy

Treating a successful status as the only health signal hides stale data, runtime regression and partial business failure.

automation studiomonitoringfreshnessruntimerow count
patternLAB

Webhook Ingress Boundary

Keep public webhook ingress small, authenticated and validation-focused before handing work to deeper automation.

webhookn8nsecurityingress
patternLAB

Backup Before Upgrade

Treat a tested rollback path as part of the upgrade, not as an afterthought.

backupupgradedockerrollback
patternPROJECT

Schema-First Metadata Ingestion

Normalize external metadata into stable typed records before building reports, graphs or drift logic.

schemametadatanormalizationsfmc-auditor
patternSTUDY

AI Output With Provenance Boundaries

Make AI-assisted technical work label what came from source material, observation, inference and missing context.

aillmprovenancereview
anti-patternSTUDY

Public Admin Surface by Convenience

Do not expose n8n/admin dashboards publicly merely because the webhook endpoints must be public.

securityn8nadminreverse proxy