Skip to content
syntaqx

The Playbook

How to read the playbook, the principles behind every standard in it, and a map of the whole book, from HTTP fundamentals to leading the team.

6 min readUpdated

This is the playbook I bring to every team: the decisions I've already made, written down so they don't get re-argued in every new codebase. Little of it is novel. Most of it is a published standard (an RFC, a spec, a practice from Stripe, GitHub or Google) applied consistently, and the consistency is the value.

Each doc makes its own case: the problem, the default, why it beats the alternatives, and what it costs. The sources at the bottom are evidence and further reading, not the argument. If a default can't be defended without "because Stripe does it", it doesn't belong here.

Defaults can be overridden, but an override is a decision, and it gets written down (Decisions & Design Docs). Where this site departs from its own playbook, the departure is an ADR; everywhere else, the playbook is the explanation. CI fails any doc that drops its references, links to a doc that doesn't exist, or wraps JSON in an envelope.

How to Read It#

It reads front to back. The sections run from the shared vocabulary and how the work is decided and written, through designing, building and protecting the system and the money it moves, to how it is tested, shipped and run, what its data teaches you, and how the team behind it grows. Every doc links to the one before and after it.

It also reads by chapter. Each doc stands on its own and links back to anything it builds on, so you can start wherever your problem is.

Principles#

The rest of the playbook is built from these.

  1. Standards before inventions. If an RFC, a spec or a widely adopted practice already solves it, use that: Link for pagination, RFC 3339 for time, Idempotency-Key, RateLimit, Deprecation and Sunset, QUERY. A standard arrives with documentation, client libraries and engineers who already know it. An invention has to earn its place.
  2. HTTP means what it says. Methods carry intent, status codes carry outcome, headers carry metadata. Bodies carry resources: a list is an array, a single resource is an object, and there are no data envelopes.
  3. Make the wrong thing hard. Money is an integer, so it can't drift. State transitions are guarded in the database. Method overrides can only become QUERY. A guardrail beats a guideline.
  4. Everything retries, so everything is idempotent. Networks fail after the work is done. Keys, dedupe and at-least-once handling are designed in from the start, not added after the first double charge.
  5. Nothing is rewritten. Financial records, events, decisions and incidents are appended, corrected with new entries, and kept explainable.
  6. Change is additive. APIs, schemas and events grow without breaking anyone. Breaking changes ship as new versions with a dated, announced sunset.
  7. Observable by default. Every request has an ID, every log line is structured, every service has an SLO. If you can't see it, you can't own it.
  8. Small, reversible steps. Small PRs, expand-and-contract migrations, flags and progressive rollouts. The cost of a mistake is how hard it is to undo.

The Map#

Section What it's for Chapters
Fundamentals The shared vocabulary everything else assumes REST & HTTP Verbs, Time & Date Formats, Identifier Conventions, Addresses & Geocoding, Phones & Emails, Text & Unicode
Product Deciding what to build, what not to, and when it's ready for whom Discovery & Research, Problem Statements & Acceptance Criteria, Backlogs, Roadmaps & Capacity, Release Stages
Development How code gets decided, written, reviewed and kept healthy Decisions & Design Docs, Repos & Local Dev, Commits & Review, Code Ownership, Documentation, Dependencies & Upgrades, Build vs Buy, Tech Debt, AI-Assisted Development
Architecture How services divide the work and talk to each other Service Boundaries, Retries & Timeouts, Events, Background Jobs, Application Caching, Realtime Connections, Admission Control, Multi-Tenancy, Replacing a System
Database Schemas, queries and changes that hold up under load Naming, Transactions & Concurrency, Performance, Zero-Downtime Migrations, Effective Dating & History
API Design The shape of an API before any endpoint exists Principles, Naming, Relationships & Expansion, Authentication, Versioning, API Styles, GraphQL, SDK Design, Webhooks
Requests & Responses What crosses the wire, request by request JSON Fields, Errors, Idempotency, Pagination, Filtering & Sorting, HTTP QUERY, Caching, Rate Limiting, Long-Running Operations, Bulk Operations, HTTP Compression
Frontend Interfaces that work for everyone, fast Accessibility, Web Performance, Design Tokens, Forms & Validation, Error & Empty States, Internationalization, SEO, Link Previews & Social Cards, Mobile Apps
Building Blocks The features nearly every product ends up building, from audit trails to AI agents Audit Trails, Data Retention, Custom Fields, Rules as Data, Workflows, Matching & Merging, Search, Imports & Exports, Integrations, Notifications & Consent, File Uploads, Media Compression, Generated Documents, Offline-First Sync, Location Tracking, Reservations & Holds, Automated Risk Decisions, Trust & Safety, Weighing Competing Objectives, LLM Features, AI Agents in the Product
Security Deciding what to defend, then defending it Threat Modeling, Authentication & Sessions, Choosing an Identity Provider, SSO & Identity Federation, Authorization, API Security, Security Headers & CSP, Sensitive Data, Encryption at Rest, Support Access & Internal Tools, Infrastructure Access, Vulnerability Management, Securing Software Updates, AI & LLM Security
Money The engineering of money, for anyone who handles it Money, Payment States & Ledgers, Multi-Currency & FX, Subscriptions & Recurring Billing, Usage-Based Billing, Sales Tax & VAT, Accounting & Revenue Recognition
Compliance The frameworks auditors and regulators hold you to, and what meeting them takes PCI DSS, SOC 2, GDPR & Privacy, HIPAA, Calls, Texts & Email, Electronic Signatures & Records, Children's Privacy & Age Assurance, Open-Source Licenses
Quality Knowing it works before customers do, and learning fast when it doesn't Quality Strategy, Testing Strategy, Automated Testing, Manual & Exploratory Testing, AI-Assisted Testing, Test Data & Environments, Visual & Cross-Platform Testing, Load & Performance Testing, Defects & Triage, Release Readiness, Quality Metrics
Delivery Getting a change from merge to production safely CI & Continuous Deployment, Feature Flags, Deployment Strategies, Where to Run It, Containers, Infrastructure as Code, Mobile Releases
Observability Seeing what a running system is doing, and why Observability, Logs, Metrics, Tracing & Sampling, Instrumenting with OpenTelemetry, Running the Collector, Errors & Profiling, Frontend & Synthetic Monitoring, Dashboards & Alerts
Operations Running it, and recovering when it breaks Environments & Configuration, Kubernetes, SLOs, On-Call, Incidents & Postmortems, Disaster Recovery, Cost & FinOps, Customer Support Operations
Telemetry & Analytics Measuring what people do with the product, and keeping that data honest and lawful Event Design & Instrumentation, Collecting Events, Consent & Privacy in Telemetry, Product Analytics, Experimentation & A/B Testing
Data Platforms Where analytical data lives, how it moves and is modeled, and who may read it Separating Production from Analytics, Warehouses, Lakes & Lakehouses, Running a Cloud Warehouse, Real-Time Analytical Databases, Streaming & Event Processing, Data Pipelines, Modeling Analytical Data, Data Science & ML Platforms, Data Governance & Access
Leadership Hiring, growing and organizing the people who do all of this Hiring & Interviews, Onboarding, 1:1s & Feedback, Career Ladders, Performance Reviews, Team Structure, Growing Managers, Communication & Meetings, Measuring Engineering

Books

The playbook applies anywhere. When one subject needs more than a chapter, like an industry's networks, rules and economics, I write it as a book instead: see Books, starting with Payments, Field Operations and Gaming.

Where to Start#

References#

Specifications

Reference

  • MDN: HTTP, the most readable reference for every header, method and status code

In practice