1. Database Performance advanced

    A multi-tenant platform's database performance is fine for most tenants and severely degraded for a few. What are the likely causes and their fixes?

    2 min answer database-performancemulti-tenancystatisticsplans
  2. Database Performance advanced

    A query that ran in 40 ms has taken 40 seconds since Tuesday. The query and the code are unchanged. What happened?

    2 min answer databasequery-planstatisticsdiagnosis
  3. Database Performance advanced

    A search product must choose between indexing throughput and query latency on the same hardware. How should the trade be made explicit and managed?

    2 min answer meilisearchsearchindexingcontention
  4. Database Performance advanced

    A voucher-redemption feature creates a single hot row that thousands of buyers hit in the same second. Compare row-level locking, optimistic concurrency, bucketed counters and an in-memory reservation service.

    3 min answer hot-rowcontentionoptimistic-concurrencyreservation
  5. Database Performance advanced

    An application with ten million users has a database bottleneck. In what order do you intervene, and why is sharding last?

    2 min answer databasescalingshardingreplicas
  6. Database Performance advanced

    Review this proposal. A team has six slow queries against a 400 GB table taking 40,000 writes a minute, and proposes adding six indexes, one per query. What would you remove, what would you change, and what would you keep?

    3 min answer indexeswrite amplificationbuffer poolquery plans
  7. Horizontal vs Vertical Scaling intermediate

    A service is at capacity. When is vertical scaling the better answer than horizontal, and what is the trap in each direction?

    2 min answer unacademyscalingverticalhorizontal
  8. Horizontal vs Vertical Scaling advanced

    A stateful service runs on 16 large nodes, each holding a large in-memory working set. You must move to 200 small nodes under live traffic, for finer failure granularity and better bin-packing. Sequence the migration, and say what changes that nobody plans for.

    3 min answer scalingpartitioningcache hit ratefan-out
  9. Horizontal vs Vertical Scaling intermediate Multiple choice

    A workspace product's primary database is at its limits. Should it scale vertically, add replicas, or shard? What order and what evidence?

    2 min answer scalingverticalshardingreplicas
  10. Horizontal vs Vertical Scaling intermediate

    When is vertical scaling the better answer, and what makes horizontal inevitable eventually?

    2 min answer scalingverticalhorizontalavailability
  11. Latency advanced

    A collaborative editor must feel instantaneous to users on different continents, where physics imposes a floor of roughly 150 ms round trip. How is the latency requirement met at all?

    2 min answer latencylocal-firstoptimistic-uiperception
  12. Latency advanced

    A load generator reports a p99 of 30 ms at 5,000 rps. In production at the same rate, users report multi-second stalls, and the service's own latency metrics agree with the load test. Both measurements are honest. What is being missed?

    3 min answer coordinated omissionload testingpercentilesqueueing