KnownOrigin (https://knownorigin.io ) is one of the world’s first, and largest, NFT Marketplaces, built on the Ethereum Blockchain. Their web portal serves hundreds of visitors a day.
KnownOrigin uses a Hosted version of TheGraph(https://thegraph.com) service to drive its website.
They engaged MetaOps to look into improving the performance of their stack and creating a highly available fallback mechanism for TheGraph hosted service.
Analysing the stack we have proposed an alternative self-hosted HA setup which will be resilient to the issues of wider Graph and Ethereum Networks and provide guaranteed QoS for KnownOrigin.
TheGraph is a Rust/Postgres-based application which requires its own Ethereum archive node to retrieve events. It also interacts with IPFS and smart contracts to support configuration and token economics.
2 High Performant Compute nodes with SSD onboard were deployed on Hetzner(https://www.hetzner.com/) to host Ethereum Archive Nodes in HA configuration.
Dedicated Instances of TheGraph Indexer software and autoscaling deployment of GraphQL Query services deployed on Kubernetes Cluster within the customer’s own infrastructure.
Deployment and management of an indexer automated and integrated into existing CI/CD pipeline.
Prometheus + Grafana Monitoring is configured with an Alert Feed connected to the company’s Discord Channel.
- alternative to the shared service of theGraph
- the loading speed of the website pages increased 3x times
- DEV/STG/TEST environments supported
- full control over indexing infrastructure
- use of Hetzner for the most expensive components proved the cost efficiency of the solution without sacrificing reliability or performance