router icon indicating copy to clipboard operation
router copied to clipboard

API 1.0 - Service naming

Open BrynCooke opened this issue 3 years ago • 1 comments

Currently we have:

  • Router - RouterRequest, RouterResponse
  • QueryPlanning - QueryPlannerRequest, QueryPlannerResponse
  • Execution - ExecutionRequest, ExecutionResponse
  • Subgraph - SubgraphRequest, SubgraphResponse

In particular the RouterService seems badly named. Maybe GraphQLService or FederatedGraphQLService?

Having RouterService deal with anything that is non graphql is maybe a mixing of concerns.

Suggestion:

  • Http - http::Request, http::Response
  • Graphql - GraphlRequest, GraphqlResponse
  • QueryPlanning - QueryPlannerRequest, QueryPlannerResponse
  • Execution - ExecutionRequest, ExecutionResponse
  • Subgraph - SubgraphRequest, SubgraphResponse

Also consider structure naming:

Currently we have:

  • Router - RouterRequest, RouterResponse
  • QueryPlanning - QueryPlannerRequest, QueryPlannerResponse
  • Execution - ExecutionRequest, ExecutionResponse
  • Subgraph - SubgraphRequest, SubgraphResponse

In particular QueryPlanner request/response don't match the service name.

relates to: #1140

BrynCooke avatar May 24 '22 11:05 BrynCooke

Is this the right issue to discuss the potential need for an "executionNode" service?

o0Ignition0o avatar Jun 09 '22 10:06 o0Ignition0o