Storefront GraphQL
Limits & Quotas
Exact default limits enforced by xclade-store-backend on /graphql and /admin/graphql
Security Limits & Quotas
All limits below reflect the exact defaults compiled into xclade-store-backend (internal/platform/config/config.go, internal/server/router.go, and graph/middleware/security.go).
Limit Comparison Table
| Control | Storefront (/graphql) | Admin (/admin/graphql) | Wire Error Code |
|---|---|---|---|
| Max AST Depth | 10 (GRAPHQL_MAX_DEPTH) | 14 (GRAPHQL_MAX_DEPTH + 4) | QUERY_DEPTH_EXCEEDED |
| Max Aliases | 15 | 30 | ALIAS_LIMIT_EXCEEDED |
| Max Directives | 50 | 75 | DIRECTIVE_LIMIT_EXCEEDED |
| Max Complexity | 1500 (GRAPHQL_MAX_COMPLEXITY) | 1500 | — |
| Max Batch Size | 5 (GRAPHQL_MAX_BATCH) | 5 | BATCH_LIMIT_EXCEEDED |
| Max Request Body | ~105 KB (15,000 query + 25,000 vars + 64 KiB buffer) | 16 MiB (supports batch imports) | QUERY_TOO_LARGE (413) |
| Execution Timeout | 10,000 ms (GRAPHQL_TIMEOUT_MS) | 10,000 ms | Request canceled |
| Rate Limit | 150 req/min per actor ID / IP (GRAPHQL_RATE_LIMIT_PER_MIN) | 150 req/min per actor ID / IP | RATE_LIMIT_EXCEEDED (429) |
| Introspection (Prod) | Disabled for anonymous/customers; allowed for Store Admins | Allowed for Store Admins | GraphQL error |
CSRF Guard (GET) | Enforced in production | Always enforced | CSRF_PREFLIGHT_REQUIRED (400) |
Internal Query & Cache Capacities
| Resource | Default Capacity |
|---|---|
| Parsed AST LRU Cache | 1,000 query documents per pod |
| Automatic Persisted Queries (APQ) LRU Cache | 512 SHA-256 query hashes per pod |
| Default Public Response Cache TTL | 300s (GRAPHQL_CACHE_TTL_SECONDS, overridden per root query field) |
| Admin SSE Keep-Alive Ping | 15s |
Scaling Limits
Need higher sustained throughput, elevated rate budgets, or dedicated read replicas for flash drops? Upgrade your store pod tier (Mini, Startup, Scale, or Enterprise) directly from Console → Billing & Plans with zero downtime.