Skip to content

Conversation

@suchapalaver
Copy link
Collaborator

Replace complex GraphQL abstraction layers with direct HTTP forwarding to graph-node. This eliminates redundant parsing and serialization that caused ~15s response times vs ~0.4s for direct graph-node queries.

Changes:

  • Remove async_graphql_axum::GraphQLRequest extractor
  • Remove WrappedGraphQLRequest conversion wrapper
  • Remove thegraph_graphql_http::send_graphql abstraction
  • Use raw Bytes and direct .body().send() pattern
  • Add debug timing instrumentation for troubleshooting

Fixes #540


Signed off by Joseph Livesey joseph@semiotic.ai

   Replace complex GraphQL abstraction layers with direct HTTP forwarding
   to graph-node. This eliminates redundant parsing and serialization that
   caused ~15s response times vs ~0.4s for direct graph-node queries.

   Changes:
   - Remove async_graphql_axum::GraphQLRequest extractor
   - Remove WrappedGraphQLRequest conversion wrapper
   - Remove thegraph_graphql_http::send_graphql abstraction
   - Use raw Bytes and direct .body().send() pattern
   - Add debug timing instrumentation for troubleshooting

   Fixes #540
@suchapalaver suchapalaver force-pushed the 540-status-endpoint-slow-responding branch from f500bf3 to d0fe0c1 Compare December 4, 2025 22:07
@coveralls
Copy link

coveralls commented Dec 4, 2025

Pull Request Test Coverage Report for Build 19945495174

Details

  • 193 of 197 (97.97%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+1.0%) to 64.587%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/service/src/routes/status.rs 193 197 97.97%
Files with Coverage Reduction New Missed Lines %
crates/watcher/src/lib.rs 3 85.42%
Totals Coverage Status
Change from base Build 19943819085: 1.0%
Covered Lines: 9938
Relevant Lines: 15387

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Status endpoint slow responding

3 participants