Cost Efficiency
Server-side resource-consumption bounds — pagination, rate limits, retry caps, timeouts, token budgets, agentic-loop iteration caps, file-size limits.
The resource-bounds layer: is resource consumption bounded, metered, and controlled?
In scope. Missing pagination on list endpoints, unbounded query result sets, retry storms without backoff caps, timeout absence on outbound calls, missing LLM max_tokens / context-window caps, agentic-AI loop iteration budgets, file-upload size limits, webhook-handler idempotency, runaway background jobs, batch-operation bounds, cold-path resource amplification. Also covers energy / carbon consumption patterns — the mechanism (unbounded resource use) is the same regardless of whether the harm lands on dollars, latency, or externalities.
Not in scope. User-perceived slowness as the primary defect — that's performance. Denial-of-service via hostile input — that's injection-and-input-trust plus this taxon. Regulatory-mandated retention windows as the primary concern — that's regulatory-conformance.
Distinct because. The defect is the meter runs unbounded, independent of whether a user notices. A pattern about "LLM call has no max_tokens" is cost-efficiency. A pattern about "slow query affecting p95 response time" is performance primary.
Conceptual sub-structure. Input bounds (pagination, file size, query limits), retry / timeout discipline, inference-cost bounds (tokens, agent iterations), idempotency / dedup, resource budgeting.
Patterns in this taxon (113)
- mediumA context compaction or summarization strategy is implemented for long sessionsab-000313 · ai-token-optimization
- highAdaptive throttling on 4xx SMTP responsesab-000936 · deliverability-engineering
- highAn abort/cancel mechanism exists for in-flight AI requestsab-000326 · ai-token-optimization
- infoAnalytics sampling rate is intentionally configuredab-001716 · marketing-analytics
- lowAPI Rate Limits Differentiated by Roleab-002271 · saas-authorization
- lowAPI responses include appropriate cache headersab-002212 · saas-api-design
- lowAPI timeout handling configuredab-002211 · saas-api-design
- highAutomated warm-up schedule with daily volume rampab-000930 · deliverability-engineering
- highBackground jobs have explicit retry capsab-000247 · ai-slop-cost-bombs
- mediumBackground modes and services are justified and not battery-drainingab-000508 · app-store-review-blockers
- highBackground scripts or service workers terminate when not in useab-001372 · extension-ux-performance
- lowBackpressure when pipeline is saturatedab-000896 · data-sourcing-provenance
- mediumBadge updates do not trigger excessive background CPU usageab-001369 · extension-ux-performance
- lowBatch endpoint item limits enforcedab-000392 · api-security
- infoBatch processing is used for non-interactive AI tasksab-000324 · ai-token-optimization
- highBatch submission attempts above 5 per 60 seconds trigger temp block and admin alertab-001086 · directory-submissions-moderation
- lowBulk operations available where neededab-002202 · saas-api-design
- highBurst capacity tested at 10x normal volumeab-001988 · operational-resilience-email
- lowBurst detection and volume smoothingab-000937 · deliverability-engineering
- highCAPTCHA or rate limiting prevents bot postsab-000705 · community-moderation-safety
- criticalCAPTCHA, honeypot, or rate limiting applied to all submission formsab-001078 · directory-submissions-moderation
- mediumConnection Counts Denormalization/Cachingab-000763 · community-social-engagement
- highConnection List Scalabilityab-000761 · community-social-engagement
- lowContext window utilization is monitored or boundedab-000215 · ai-response-quality
- criticalContext window utilization is tracked and surfacedab-000309 · ai-token-optimization
- criticalConversation history is truncated or summarized for long sessionsab-000310 · ai-token-optimization
- lowCPU and memory resource limits defined for all podsab-001648 · infrastructure-hardening
- mediumCron jobs have execution-time limitsab-000246 · ai-slop-cost-bombs
- lowData export rate-limited to prevent harvesting abuseab-000727 · community-privacy-controls
- criticalDatabase list queries have LIMIT and paginationab-000237 · ai-slop-cost-bombs
- mediumDuplicate account creation is difficultab-000707 · community-moderation-safety
- highEmail send routes have per-recipient rate limitingab-000242 · ai-slop-cost-bombs
- mediumEmbedding model dimensions are appropriate for the use caseab-000318 · ai-token-optimization
- mediumESP response codes mapped to internal status modelab-002464 · sending-pipeline-infrastructure
- mediumExpensive operations are cached or marked as fresh-requiredab-000251 · ai-slop-cost-bombs
- mediumExpensive operations have resource limitsab-001850 · mcp-server
- highExponential backoff with jitter on client reconnection, not fixed retry intervalab-000738 · community-realtime
- lowExternal API calls have an explicit timeoutab-000245 · ai-slop-cost-bombs
- highExternal API calls inside loops are batched or rate-pacedab-000241 · ai-slop-cost-bombs
- highExternal API calls inside loops use Promise.all batchingab-000244 · ai-slop-cost-bombs
- lowFeed Caching & Stalenessab-000769 · community-social-engagement
- highFeed Query Performance & Indexingab-000765 · community-social-engagement
- highFile upload endpoints have size and type restrictionsab-002197 · saas-api-design
- criticalFile upload handlers enforce a maximum file sizeab-000238 · ai-slop-cost-bombs
- highFile uploads enforce MIME type and size limits server-sideab-001081 · directory-submissions-moderation
- lowFiltering and sorting supported where appropriateab-002201 · saas-api-design
- infoGET handlers consider stale-while-revalidate cachingab-000254 · ai-slop-cost-bombs
- lowGlobal system rate limit as safety netab-000939 · deliverability-engineering
- highGraphQL query depth and complexity limitsab-002196 · saas-api-design
- lowGraphQL query depth limitedab-000393 · api-security
- highIdempotency keys for payment and mutation endpointsab-002198 · saas-api-design
- highImage processing has output dimension limitsab-000239 · ai-slop-cost-bombs
- highInput length limits are enforced on user promptsab-000176 · ai-prompt-injection
- lowIP-based rate limiting on unauthenticated endpointsab-000388 · api-security
- lowLog retention policy is definedab-002322 · saas-logging
- criticalLogin endpoint has rate limitingab-002232 · saas-authentication
- mediumLong-running tools have timeoutsab-001844 · mcp-server
- mediumMax message payload size enforced server-side; oversized frames rejected with errorab-000744 · community-realtime
- highMemory usage remains below 50MB during sustained operationab-001373 · extension-ux-performance
- lowMessage priority separates transactional from marketingab-002455 · sending-pipeline-infrastructure
- mediumNew account posting is rate-limited or delayedab-000709 · community-moderation-safety
- lowNo debug logging in productionab-002307 · saas-logging
- mediumNo large unused dependencies in bundleab-002061 · performance-load
- infoNon-persistent background scripts used where possibleab-001339 · extension-permissions-security
- lowPagination limits enforcedab-000391 · api-security
- highPagination on list endpointsab-002168 · saas-api-design
- lowPagination or lazy-loading handles large review setsab-001208 · ecommerce-reviews
- mediumPDF generation has page count limitsab-000240 · ai-slop-cost-bombs
- lowPer-campaign rate limits configurableab-000938 · deliverability-engineering
- highPer-ISP rate limits enforcedab-000935 · deliverability-engineering
- highPer-user connection limits enforced to prevent slot exhaustionab-000736 · community-realtime
- mediumPermanent failures do not retryab-002453 · sending-pipeline-infrastructure
- criticalPre-appointment reminder sent at configurable interval via scheduled job, not polling loopab-000572 · booking-notifications-reminders
- mediumPrompt templates minimize boilerplate tokensab-000317 · ai-token-optimization
- highQueue backpressure on ESP outageab-001982 · operational-resilience-email
- infoRAG chunk sizes are tuned for retrieval quality vs. token costab-000319 · ai-token-optimization
- mediumRate limiting enforced per authenticated userab-000387 · api-security
- criticalRate limiting implementedab-002204 · saas-api-design
- lowRate limiting is applied per tenantab-002328 · saas-multi-tenancy
- highRate limiting is applied to payment submission endpointsab-001163 · ecommerce-payment-security
- highRate limiting is enforced on AI endpointsab-000192 · ai-prompt-injection
- highRate limiting middleware imported is actually appliedab-000281 · ai-slop-security-theater
- mediumReal-time fan-out uses channel membership cache, not per-message permission readsab-000749 · community-realtime
- mediumRelationship State Resolutionab-000762 · community-social-engagement
- highRepeated or identical AI queries are cachedab-000320 · ai-token-optimization
- mediumRequest body size limits configuredab-002199 · saas-api-design
- mediumRequest body size limits enforcedab-000385 · api-security
- lowRequest deduplication implementedab-002040 · performance-deep-dive
- mediumResource limits enforcedab-002087 · plugin-extension-architecture
- lowResource limits enforced on workersab-001989 · operational-resilience-email
- mediumResponse length is proportional to query complexityab-000200 · ai-response-quality
- criticalResponse max_tokens is explicitly set on all AI API callsab-000315 · ai-token-optimization
- highRetries use exponential backoffab-002450 · sending-pipeline-infrastructure
- mediumRetry logic uses exponential backoffab-000327 · ai-token-optimization
- mediumSemantic or fuzzy caching is implemented for similar queriesab-000321 · ai-token-optimization
- highSmaller models are used for simple tasks (model routing by complexity)ab-000316 · ai-token-optimization
- highSMS send routes are rate-limitedab-000243 · ai-slop-cost-bombs
- lowSpam patterns and duplicate content are detectedab-000695 · community-moderation-safety
- lowStorage usage within reasonable limitsab-001891 · mobile-offline-storage
- lowSuppression list lookup is indexed for O(1) performanceab-000874 · data-quality-list-hygiene
- highSystem prompt token count is reasonableab-000311 · ai-token-optimization
- mediumTemporary failures do not block the rest of the queueab-002449 · sending-pipeline-infrastructure
- lowTenant creation is validated and rate-limitedab-002351 · saas-multi-tenancy
- lowThird-party SDK clients are constructed once (singleton)ab-000253 · ai-slop-cost-bombs
- highToken counting is performed before API calls to prevent hard limit errorsab-000312 · ai-token-optimization
- infoToken or usage indicator is shown near the inputab-000145 · ai-chat-visibility
- mediumTyping indicators debounced at client and expire server-side on timeoutab-000746 · community-realtime
- highUsage-based billing tracks metrics accuratelyab-002276 · saas-billing
- mediumUser-triggered code paths have infinite-loop guardsab-000249 · ai-slop-cost-bombs
- lowValidation results cached with TTLab-000857 · data-quality-list-hygiene
- highVolume limits documented per ESP and IPab-001986 · operational-resilience-email
- lowWebhook endpoints return 200 OK quickly before complex processingab-001171 · ecommerce-payment-security
- criticalWebhook handlers are idempotentab-000248 · ai-slop-cost-bombs