federation

command module
v0.0.0-...-3a3f222 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 9 Imported by: 0

README

Federation example

This is a very basic example of the federation. It is not meant to be used in production.

If you're looking for a complete ready-to-use Open Source Router for Federation, have a look at the Cosmo Router which is based on this engine library.

This example includes three services:

  • accounts
  • products
  • reviews

Services defines a few queries and subscriptions.

Getting started

  1. Install go modules
go mod download
  1. Run start script
chmod +x start.sh
./start.sh
  1. To change subgraphs
  • edit corresponding <service>/graph/schema.graphqls file
  • run go generate ./...
  • compose a new config via compose.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
graph
This file will not be regenerated automatically.
This file will not be regenerated automatically.
httphandler
Package http handles GraphQL HTTP Requests including WebSocket Upgrades.
Package http handles GraphQL HTTP Requests including WebSocket Upgrades.
graph
This file will not be regenerated automatically.
This file will not be regenerated automatically.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL