|
| 1 | +--- |
| 2 | +title: The Graph Network vs. Self Hosting |
| 3 | +socialImage: https://thegraph.com/docs/img/seo/benefits.jpg |
| 4 | +--- |
| 5 | + |
| 6 | +The Graph’s decentralized network has been engineered and refined to create a robust indexing and querying experience—and it’s getting better every day thanks to thousands of contributors around the world. |
| 7 | + |
| 8 | +The benefits of this decentralized protocol cannot be replicated by running a `graph-node` locally. The Graph Network is more reliable, more efficient, and less expensive. |
| 9 | + |
| 10 | +Here is an analysis: |
| 11 | + |
| 12 | +## Why You Should Use The Graph Network |
| 13 | + |
| 14 | +- Significantly lower monthly costs |
| 15 | +- $0 infrastructure setup costs |
| 16 | +- Superior uptime |
| 17 | +- Access to hundreds of independent Indexers around the world |
| 18 | +- 24/7 technical support by global community |
| 19 | + |
| 20 | +## The Benefits Explained |
| 21 | + |
| 22 | +### Lower & more Flexible Cost Structure |
| 23 | + |
| 24 | +No contracts. No monthly fees. Only pay for the queries you use—with an average cost-per-query of $40 per million queries (~$0.00004 per query). Queries are priced in USD and paid in GRT or credit card. |
| 25 | + |
| 26 | +Query costs may vary; the quoted cost is the average at time of publication (March 2024). |
| 27 | + |
| 28 | +## Low Volume User (less than 100,000 queries per month) |
| 29 | + |
| 30 | +| Cost Comparison | Self Hosted | The Graph Network | |
| 31 | +| :-: | :-: | :-: | |
| 32 | +| Monthly server cost\* | $350 per month | $0 | |
| 33 | +| Query costs | $0+ | $0 per month | |
| 34 | +| Engineering time<sup>†</sup> | $400 per month | None, built into the network with globally distributed Indexers | |
| 35 | +| Queries per month | Limited to infra capabilities | 100,000 (Free Plan) | |
| 36 | +| Cost per query | $0 | $0<sup>‡</sup> | |
| 37 | +| Infrastructure | Centralized | Decentralized | |
| 38 | +| Geographic redundancy | $750+ per additional node | Included | |
| 39 | +| Uptime | Varies | 99.9%+ | |
| 40 | +| Total Monthly Costs | <span className="highlight-row" />$750+ | $0 | |
| 41 | + |
| 42 | +## Medium Volume User (~3M queries per month) |
| 43 | + |
| 44 | +| Cost Comparison | Self Hosted | The Graph Network | |
| 45 | +| :-: | :-: | :-: | |
| 46 | +| Monthly server cost\* | $350 per month | $0 | |
| 47 | +| Query costs | $500 per month | $120 per month | |
| 48 | +| Engineering time<sup>†</sup> | $800 per month | None, built into the network with globally distributed Indexers | |
| 49 | +| Queries per month | Limited to infra capabilities | ~3,000,000 | |
| 50 | +| Cost per query | $0 | $0.00004 | |
| 51 | +| Infrastructure | Centralized | Decentralized | |
| 52 | +| Engineering expense | $200 per hour | Included | |
| 53 | +| Geographic redundancy | $1,200 in total costs per additional node | Included | |
| 54 | +| Uptime | Varies | 99.9%+ | |
| 55 | +| Total Monthly Costs | <span className="highlight-row" /> $1,650+ | $120 | |
| 56 | + |
| 57 | +## High Volume User (~30M queries per month) |
| 58 | + |
| 59 | +| Cost Comparison | Self Hosted | The Graph Network | |
| 60 | +| :-: | :-: | :-: | |
| 61 | +| Monthly server cost\* | $1100 per month, per node | $0 | |
| 62 | +| Query costs | $4000 | $1,200 per month | |
| 63 | +| Number of nodes needed | 10 | Not applicable | |
| 64 | +| Engineering time<sup>†</sup> | $6,000 or more per month | None, built into the network with globally distributed Indexers | |
| 65 | +| Queries per month | Limited to infra capabilities | ~30,000,000 | |
| 66 | +| Cost per query | $0 | $0.00004 | |
| 67 | +| Infrastructure | Centralized | Decentralized | |
| 68 | +| Geographic redundancy | $1,200 in total costs per additional node | Included | |
| 69 | +| Uptime | Varies | 99.9%+ | |
| 70 | +| Total Monthly Costs | <span className="highlight-row" /> $11,000+ | $1,200 | |
| 71 | + |
| 72 | +\*including costs for backup: $50-$100 per month |
| 73 | + |
| 74 | +<sup>†</sup>Engineering time based on $200 per hour assumption |
| 75 | + |
| 76 | +<sup>‡</sup>Reflects cost for data consumer. Query fees are still paid to Indexers for Free Plan queries. |
| 77 | + |
| 78 | +Estimated costs are only for Ethereum Mainnet subgraphs — costs are even higher when self hosting a `graph-node` on other networks. Some users may need to update their subgraph to a new version. Due to Ethereum gas fees, an update costs ~$50 at time of writing. Note that gas fees on [Arbitrum](/arbitrum/arbitrum-faq) are substantially lower than Ethereum mainnet. |
| 79 | + |
| 80 | +Curating signal on a subgraph is an optional one-time, net-zero cost (e.g., $1k in signal can be curated on a subgraph, and later withdrawn—with potential to earn returns in the process). |
| 81 | + |
| 82 | +## No Setup Costs & Greater Operational Efficiency |
| 83 | + |
| 84 | +Zero setup fees. Get started immediately with no setup or overhead costs. No hardware requirements. No outages due to centralized infrastructure, and more time to concentrate on your core product . No need for backup servers, troubleshooting, or expensive engineering resources. |
| 85 | + |
| 86 | +## Reliability & Resiliency |
| 87 | + |
| 88 | +The Graph’s decentralized network gives users access to geographic redundancy that does not exist when self-hosting a `graph-node`. Queries are served reliably thanks to 99.9%+ uptime, achieved by hundreds of independent Indexers securing the network globally. |
| 89 | + |
| 90 | +Bottom line: The Graph Network is less expensive, easier to use, and produces superior results compared to running a `graph-node` locally. |
| 91 | + |
| 92 | +Start using The Graph Network today, and learn how to [upgrade your subgraph to The Graph's decentralized network](/cookbook/upgrading-a-subgraph). |
0 commit comments