Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): enable starting the router without subgraphs #1533

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

df-wg
Copy link
Contributor

@df-wg df-wg commented Jan 24, 2025

Motivation and Context

Checklist

  • I have discussed my proposed changes in an issue and have received approval to proceed.
  • I have followed the coding standards of the project.
  • Tests or benchmarks have been added or updated.
  • Documentation has been updated on https://github.com/wundergraph/cosmo-docs.
  • I have read the Contributors Guide.

router/pkg/routerconfig/s3/client.go Outdated Show resolved Hide resolved
router/pkg/routerconfig/client.go Outdated Show resolved Hide resolved
router-tests/testenv/testdata/configWithStatic.json Outdated Show resolved Hide resolved
router-tests/integration_test.go Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 24, 2025

Router image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/wundergraph/cosmo/router:sha-0b84214bc279344914b38238fefc7a2c991cbf8f

router/pkg/routerconfig/cdn/client.go Outdated Show resolved Hide resolved
router/pkg/routerconfig/s3/client.go Outdated Show resolved Hide resolved
router/pkg/routerconfig/client.go Outdated Show resolved Hide resolved
@df-wg df-wg requested review from jensneuse and StarpTech January 27, 2025 17:30
@df-wg df-wg force-pushed the dave/eng-5954-it-should-be-possible-to-run-the-router-without-subgraphs branch from 4b3f5aa to e156c27 Compare January 27, 2025 19:12
CacheSize: 1024 * 1024,
}

router, err := routercmd.NewRouter(context.Background(), routercmd.Params{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of doing a hybrid approach, it would be great if we could purely start a router by spawning a process and configure it in the same way as a user would do. By environment variable or router config. We could maintain different presets of .env and router config for maximum flexibility. We should avoid the programmatic api completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants