ClickHouse > Case Studies > Accelerating GraphQL Hive Performance: Migration from Elasticsearch to ClickHouse

Accelerating GraphQL Hive Performance: Migration from Elasticsearch to ClickHouse

ClickHouse Logo
Technology Category
  • Application Infrastructure & Middleware - Database Management & Storage
  • Infrastructure as a Service (IaaS) - Cloud Databases
Applicable Industries
  • Consumer Goods
  • Oil & Gas
Use Cases
  • Time Sensitive Networking
  • Traffic Monitoring
Services
  • Cloud Planning, Design & Implementation Services
  • System Integration
About The Customer
The customer in this case study is The Guild, a company that specializes in developing open-source tools for GraphQL APIs. One of their products, GraphQL Hive, is a Schema Registry, Monitoring, and Analytics solution for GraphQL APIs. It helps users track the history of changes, prevent API breakage, and analyze API traffic. The Guild's team is familiar with SQL, and they were looking for a database solution that was easy to learn and maintain, had excellent performance, was suitable for analytics and data aggregation, had built-in TTL, a type system, and no issues with high cardinality.
The Challenge
GraphQL Hive, an open-source tool for monitoring and analyzing GraphQL APIs, was facing significant scaling issues. The tool, which tracks the history of changes, prevents API breakage, and analyzes API traffic, was initially using Elasticsearch for data storage. However, as the volume of data increased, the average response time began to slow down significantly. Additionally, the indexing process was problematic, with larger users affecting the query performance of smaller users. Despite attempts to improve performance by creating an index per user, the overall speed of Elasticsearch was still below expectations. The team at The Guild, the company behind GraphQL Hive, also found the JSON-based query language of Elasticsearch challenging, as they were more familiar with SQL.
The Solution
In search of an alternative to Elasticsearch, the team at The Guild evaluated several databases, including InfluxDB, TimescaleDB, Druid, and ClickHouse. Their requirements included ease of learning and maintenance, excellent performance, suitability for analytics and data aggregation, built-in TTL, a type system, and no issues with high cardinality. After testing, they found that ClickHouse offered the best performance, with a query time of approximately 100ms, compared to 10 seconds with Elasticsearch. The migration from Elasticsearch to ClickHouse was done gradually, with data written to both destinations for a full month to ensure zero downtime. The team also began moving into ClickHouse Cloud to prepare for future scaling needs, taking advantage of its out-of-the-box support for sharding and replication.
Operational Impact
  • The migration to ClickHouse resulted in significant operational improvements for The Guild. The team found ClickHouse easier to learn and maintain due to its SQL-like language, which was more familiar to them than Elasticsearch's JSON-based language. The performance of GraphQL Hive improved dramatically, with a 100x faster average response time. This allowed for more efficient monitoring and analysis of GraphQL APIs. The migration process was also smooth, with no downtime experienced. Looking ahead, the team is well-prepared for future scaling needs, thanks to the sharding and replication support provided by ClickHouse Cloud.
Quantitative Benefit
  • The average response time improved from 10 seconds with Elasticsearch to approximately 100ms with ClickHouse, a 100x improvement.
  • The migration process was done with zero downtime.
  • The team was able to write data to both Elasticsearch and ClickHouse for a full month during the migration process.

Case Study missing?

Start adding your own!

Register with your work email and create a new case study profile for your business.

Add New Record

Related Case Studies.

Contact us

Let's talk!
* Required
* Required
* Required
* Invalid email address
By submitting this form, you agree that IoT ONE may contact you with insights and marketing messaging.
No thanks, I don't want to receive any marketing emails from IoT ONE.
Submit

Thank you for your message!
We will contact you soon.