Skip to content

Commit e37f2c9

Browse files
committed
grpc subgraphs
1 parent bc36eb6 commit e37f2c9

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

docs/connect/client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Connect Client enables you to generate type-safe gRPC/Connect clients and OpenAP
1414

1515
## Overview
1616

17-
While **Connect Backend** (gRPC Subgraphs) focuses on implementing subgraphs using gRPC, **Connect Client** focuses on the consumer side. It allows you to define GraphQL operations (Queries, Mutations and soon Subscriptions) and compile them into a Protobuf service definition.
17+
While **Connect gRPC Services** (gRPC Subgraphs) focuses on implementing subgraphs using gRPC, **Connect Client** focuses on the consumer side. It allows you to define GraphQL operations (Queries, Mutations and soon Subscriptions) and compile them into a Protobuf service definition.
1818

1919
The Cosmo Router acts as a bridge. It serves your generated operations via the Connect protocol, executes them against your Federated Graph, and maps the GraphQL response back to typed Protobuf messages.
2020

docs/connect/overview.mdx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ How does this work? You define an Apollo-compatible Subgraph Schema, compile it
1414

1515
## Key Capabilities
1616

17-
### Connect Backend (gRPC Subgraphs)
17+
### Connect gRPC Services (gRPC Subgraphs)
1818

1919
Implement Federated Subgraphs using gRPC instead of GraphQL resolvers.
2020
- **No GraphQL servers required**: Backend teams implement standard gRPC services.
@@ -32,15 +32,16 @@ Generate type-safe clients from your GraphQL operations.
3232

3333
```mermaid
3434
graph LR
35-
client["Clients (Web / Mobile / Server)"] --> routerCore["Router Core"]
35+
client["GraphQL Clients<br/>(Web / Mobile)"] --> routerCore["Router Core"]
36+
connectClient["Connect Clients<br/>(Generated SDKs)"] --> routerCore
3637
3738
subgraph routerBox["Cosmo Router"]
3839
routerCore
39-
plugin["Router Plugin<br/>(Cosmo Connect)"]
40+
plugin["Router Plugin<br/>(Connect gRPC Service)"]
4041
end
4142
4243
routerCore --> subA["GraphQL Subgraph"]
43-
routerCore --> grpcSvc["gRPC Service<br/>(Cosmo Connect)"]
44+
routerCore --> grpcSvc["gRPC Service<br/>(Connect gRPC Service)"]
4445
4546
grpcSvc --> restA["REST / HTTP APIs"]
4647
grpcSvc --> soapA["Databases"]
@@ -51,16 +52,20 @@ graph LR
5152
%% Styling
5253
classDef grpcFill fill:#ea4899,stroke:#ea4899,stroke-width:1.5px,color:#ffffff;
5354
classDef pluginFill fill:#ea4899,stroke:#ea4899,stroke-width:1.5px,color:#ffffff;
55+
classDef clientFill fill:#3b82f6,stroke:#3b82f6,stroke-width:1.5px,color:#ffffff;
56+
5457
class grpcSvc grpcFill;
5558
class plugin pluginFill;
59+
class connectClient clientFill;
5660
```
5761

58-
Cosmo Connect supports two ways to integrate gRPC into your federated graph:
62+
Cosmo Connect supports three main integration patterns:
5963

60-
- **[Router Plugins](/connect/plugins)** — run as local processes managed by the router. Ideal for simple deployments where you want the lowest latency and do not need separate CI/CD or scaling.
61-
- **[gRPC Services](/connect/grpc-services)** — independent deployments in any language. Suitable when you need full lifecycle control, team ownership boundaries, and independent scaling.
64+
1. **[Connect Client](/connect/client)** — Generated clients that speak the Connect protocol to the Router.
65+
2. **[Router Plugins](/connect/plugins)** — gRPC services running as local processes managed by the router.
66+
3. **[gRPC Services](/connect/grpc-services)** — Independent gRPC services implementing subgraphs.
6267

63-
Both approaches remove the need to build GraphQL servers while maintaining the benefits of federation.
68+
Both plugin and service approaches remove the need to build GraphQL servers while maintaining the benefits of federation. Connect Client removes the need to manually write GraphQL queries in your application code.
6469

6570
## Implementation Docs
6671

0 commit comments

Comments
 (0)