CockroachDB Mastery (Senior → Principal)
Operate
- Confirm whether the real problem is multi-region latency, survivability, or operational simplicity.
- Treat topology, locality, and transaction shape as first-class design inputs.
- Design with contention, retries, and regional failure in mind.
- Prefer simple data models and explicit transaction boundaries.
Default Standards
- Expect transaction retries and design idempotently.
- Keep hot-row contention visible and minimized.
- Use regional placement intentionally, not by default cargo cult.
- Review schema changes with rollout behavior and backfill cost in mind.
- Observe latency by region, statement, and contention class.
“Bad vs Good”
-- ❌ BAD: one global counter row becomes a contention hotspot.
-- ✅ GOOD: shard counters or redesign aggregation semantics.
Validation Commands
- Review statement plans and contention insights.
- Test transaction retry behavior in application code.
- Validate regional latency and failover assumptions with realistic traffic.
References