N+1 at the gateway

Wire 22
HTTP/2Users200 req/sApp backend1 vCPU · 1 GBAPI server1 vCPU · 1 GB
GraphQLHTTP/2Users200 req/sApp backend1 vCPU · 1 GBAPI server1 vCPU · 1 GB

Fix the board. Turn every goal green.

Traffic
200 req/s · reads only
Limit
App backend answers about 3,300 req/s
Bill
  • App backend4 USD/mo
  • API server4 USD/mo
8 of 100 USD/mo

Goals

Not tested yet

99 of 100 requests finish faster than this.The share of requests that fail or get no answer.What the servers and services cost each month.

Each GraphQL query resolves 50 records through separate calls. The API receives 200 queries/s. Fix the resolver with at most three edits. Keep p99 below 180 ms.

0:00. Gateway p99 is above 180 ms. Graph: catalog calls run at 50 per query, and catalog CPU is at its limit.

A page waits for its slowest callDrag or use arrow keys to change the calls per page

Calls per page: 20 · 18% of pages wait 2.0 s

Parts you can add: App backend. At most 16 parts. Budget: 100 USD/mo.

Tap a part to add it, or drag it onto a trace.Click a part to add it, or drag it onto a trace.