simplicity over sophistication tradeoffs

Shopify rejects smarter autoscaler, unblocks $1.5M in fleet savings elsewhere USENIX
TL;DW
  • Shopify's decision to use a fixed 14-replica ceiling instead of a sophisticated per-shop autoscaler unblocked $1.5M in annual savings for a separate cost-optimization team.
  • The original autoscaler formula created a hidden dependency: scaling down baseline replicas for cost savings also reduced flash-sale safety margins, putting two teams in conflict without visibility.
  • Fixed target eliminated coupling between day-to-day provisioning and flash-sale readiness, allowing the cost team to right-size the fleet independently without risking sale performance.
  • Even in the best case, fine-tuning targets by historical peak QPS saved only ~$30 per sale ($72K/year), far less than the adjacent opportunity the simpler approach enabled.
  • Before adding sophisticated automation, ask three questions: What's the best-case ceiling savings? What's the carrying cost forever (data pipelines, alerts, coordination)? What systems will it block for other teams?
  • Complexity isn't free even after launch—ongoing data scoping, pipeline maintenance, alerting, and cross-team coordination are subscription costs that compound over time.
  • Simple solutions can still be rigorous: Shopify deployed the fixed-target autoscaler with shadow mode validation, tier-by-tier rollout, and detailed error logging before each promotion.
  • Over-engineering doesn't just waste effort; it actively blocks wins elsewhere by creating hidden dependencies that constrain what other teams can safely change.
  • The failing mode of the simpler solution (over-provisioning, wasting money) is preferable to the failing mode of the sophisticated solution (stale data causing under-provisioning and outages).

Choosing a fixed 14-replica cap over a per-shop QPS-based autoscaler avoided new data pipelines and stale-data failure modes, and freed a parallel team to right-size baseline clusters from 8 to 4 replicas — saving $1.5–1.8M annually versus the $6k/month the sophisticated version would have yielded.

automated production resilience testing

Uber's production load-tester runs 28,000 failover tests across 650 services, finds 5,000+ capacity limits USENIX
TL;DW
  • Halloween 2020 Uber Eats outage: failover to healthy region overloaded it instead, requiring days to recover—proved failover drills must test at peak load.
  • Uber maintains N+1 regional redundancy but prior failover drills were operationally expensive, required coordinating hundreds of engineers, and couldn't test realistic load patterns.
  • Single-service traffic draining achieves 2x failover multiplier per region with far lower operational risk than full regional failover.
  • Built MuttLoader: automated PID controller-based system that ramps traffic to target CPU/latency/QPS in production, then soaks and aborts safely.
  • Pre-test eligibility validation filters services by capacity, traffic volatility, topology, and scalability linearity; production is the only viable failover test environment at scale.
  • Health monitoring aborts tests via queue latency (P99.9), application metrics, resource limits, and system conditions—catches degradation before on-call alerts fire.
  • Platform safeguards prevent MuttLoader bugs: rollout gates, staged promotion from low to high criticality services, and operation expirations prevent permanent load tests.
  • 28,000 tests across 650 services over 12 months found 5,000+ limits; reduced provisioning by 50,000 CPU cores, validating both resilience and cost efficiency.
  • Request queue latency is the leading indicator to monitor—rises before response latency spikes, enabling early abort before service overload and customer impact.
  • Stateful systems (databases), traffic volatility, continuous deployments, and multi-cloud hardware differences remain unsolved gaps requiring constant test adaptation.

After a 2020 regional database failure triggered a secondary outage during mitigation, Uber built an automated system that drains traffic from individual services in production using a PID controller, aborting on queue latency, error rates, or dependency signals. Over six years it eliminated secondary failover outages and reclaimed 50,000 over-provisioned CPU cores.

planning-first AI development workflow

Overmind replaces code review with pre-implementation plan review, triples issue completion USENIX
TL;DW
  • Peer review of AI-written code fails because AI lacks the human engagement and reasoning that makes peer review valuable—the pushback, care, and philosophy behind decisions.
  • Shift engineering responsibility left by having engineers own research and planning, not just implementation—this reduces handoff overhead as AI handles most code generation.
  • Move code review earlier to plan review: humans approve detailed one-page markdown plans specifying *how* to build (not just *what*), then AI implements and auto-merges if it matches the plan.
  • Only review code differences from the approved plan, not full pull requests—this reduces review time from hours to minutes and encourages higher feedback quality.
  • Plans must be imperative, not declarative—describe the journey from point A to B (including database migrations, feature flags, performance targets) not just the endpoint specification.
  • Rejecting a plan adds ~40 minutes to lead time; rejecting code adds ~16 hours—early feedback is vastly cheaper, so do more plan reviews with broader participation including product managers.
  • Tripled issue completion and reduced lead time from 3.2 to 1.3 days by cutting cognitive load: engineers only hold plan context in mind (quicker to write and review) rather than code context for days.
  • How you build matters far more than what you build—the differentiator is hundreds of engineering trade-off decisions (memory vs. disk, performance vs. cost) made during planning, not the final spec.
  • Deliberately restrict communication bandwidth between humans and AI agents to force high-quality handoffs: no continuous chat feedback, so the plan must be good or the agent will produce unusable code.
  • Validate AI plan implementation weekly via manual sampling of random executed plans to maintain confidence that differences are caught—if the check fails, all subsequent trust collapses.

Overmind's CEO details how shifting peer review from code to written implementation plans—reviewed before an AI agent writes a line—cut lead time from 3.2 to 1.3 days. Plans define success criteria upfront, enabling automated verification and SOC 2 compliance without line-by-line code review.

AI skills need benchmarking not just deployment

Gregg: AI prompts replace perf tools at OpenAI, delivering 100x faster fixes USENIX
TL;DW
  • AI prompts now replace specialized performance tools—analyze CPU profiles, generate optimizations, and create pull requests autonomously with single prompts.
  • Performance engineers must measure AI skill accuracy through grading/micro-benchmarking; unvalidated skills risk industry reputation, seen in Brendan 2015 skill improving from 17% to 86% accuracy through iteration.
  • TTFB (time-to-first-token) remains primary metric; fundamentals unchanged, but measurement, interpretation, and fixes are now mostly AI-automated via Codex or similar tools.
  • Connect all data sources—profilers, flame graphs, monitoring, code bases, chat—before using AI; this replaces previous requirement of enabling frame pointers for traditional performance analysis.
  • AI exhibits junior-engineer behavior on nuanced problems: enabling transparent huge pages showed only 4% improvement but AI initially claimed no improvement, requiring expert steering.
  • Performance prompt anatomy: inputs (alerts, continuous profiling, eBPF), analysis via methodologies/skills, actions (pull requests, tunable changes), and 24/7 bots for regression detection.
  • Skills without measurement are dangerous; validate with grading before deployment to avoid unproven performance tools entering market based solely on marketing claims.
  • AI automation doubled performance optimization speed—colleagues generate 100 performance pull requests weekly—but developers code equally faster, keeping engineers working as hard as ever.
  • CLI automation requires explicit safety guardrails: teach AI your concerns about overhead (<0.1%), observer effects, kernel crashes, malware risk, and customer data exposure before execution.
  • Virtual AI clones trained on published work have inherent limits: they capture only 2010–2015 output, miss unpublished deleted content, and lack real-time knowledge updates the original engineer possesses.

Gregg describes replacing iostat, vmstat, and flame-graph workflows with LLM agents that analyze CPU profiles, file tickets, and open PRs—producing dozens of fixes per week. The unsolved problem: no standard benchmark exists to grade AI perf-engineering skill, leaving teams blind to what they're actually deploying.

agentic coding org structure

Google, HubSpot, JP Morgan engineers: code generation isn't the bottleneck, review and QA are Android Developers
TL;DW
  • Shipping 10x code doesn't mean 10x features—the bottleneck shifts from code generation to review, testing, CI infrastructure, and long-term maintenance responsibilities.
  • Specialized agent teams (performance, logging, compliance) outperform single general agents; use router agents to delegate to domain experts rather than giving one agent all skills.
  • Implement review agents separate from code-writing agents with guardrails; require playbook ownership and audit trails so rogue deployments can be stopped immediately.
  • Focus code review on architectural intent and decisions, not nits—automate nitpick detection so human reviewers think about what the code should do, not formatting.
  • Skill proliferation creates technical debt; delete unused skills (unused in past 30 days) automatically and consolidate via formal skill evals as models improve.
  • Split harness engineering into two layers: approved model providers (Gemini, Claude, etc.) plus team-specific customizations (MCP servers, skills) that can be promoted to company-wide repos.
  • One-pagers describing internal infrastructure, acronyms, and framework context help agents understand company-specific domain language better than raw codebase alone.
  • Agent productivity overloads local machines—developers unknowingly trigger 3–5 concurrent Gradle builds; monitor resource usage, adjust GC strategy (G1 instead of Parallel), and move CI workloads to cloud.
  • Team structure flattens as AI enables cross-domain contributions, but domain experts still needed for architectural decisions; growth challenge is building judgment, not just enabling contribution.
  • Humans must decide where to apply cognitive effort; guardrails on Android PRs increase confidence for non-experts to contribute, making smaller specialized teams more effective.

Six engineering leaders discuss agentic coding at scale, arguing the constraint has shifted from generation to review, deployment safety, and maintenance. They describe specialized agent teams (performance, logging, security), human-in-the-loop PR gates with rollback, and skill repos balancing centralized controls with team-level experimentation.