Home / Companies / Wundergraph / Blog / Post Details
Content Deep Dive

Cost Control for Your Supergraph

Blog post from Wundergraph

Post Details
Company
Date Published
Author
Yury Smolski
Word Count
1,010
Company Posts That Month
12
Language
English
Hacker News Points
-
Post removed?
No
Summary

Cost Control is a feature designed to manage the cost of operations within a Supergraph by estimating and, if necessary, rejecting requests that exceed a predetermined cost limit, ensuring optimal resource usage. This feature utilizes the Cosmo Router, which employs a default cost algorithm based on IBM’s GraphQL Cost Directive specification, allowing for customization through @cost and @listSize directives. The estimated cost, calculated statically at planning time, helps prevent overly expensive operations, while the actual cost, which is dynamic and based on real response sizes, can be used for billing purposes. Two operational modes exist: Measuring Mode, which records the estimated cost without rejecting operations, and Enforcing Mode, which actively rejects operations surpassing the cost limit before execution. This system is particularly beneficial for managing complex queries in environments with variable client usage patterns, providing a flexible and efficient way to ensure system stability and cost efficiency.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
OpenTelemetry 2 622 137 51 +51%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.