在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):wundergraph/graphql-go-tools开源软件地址(OpenSource Url):https://github.com/wundergraph/graphql-go-tools开源编程语言(OpenSource Language):Go 93.0%开源软件介绍(OpenSource Introduction):graphql-go-toolsApollo Federation Gateway ReplacementThis library can be used as a replacement for the Apollo Federation Gateway. It implements the Apollo Federation Specification. In addition to the scope of other implementations, this one supports Subscriptions! Check out the Demo. OverviewThis repository implements low level building blocks to write graphql services in Go. With this library you could build tools like:
Currently implemented:
Go version InfoThis repos uses go modules so make sure to use the latest version of Go. Docshttps://godoc.org/github.com/wundergraph/graphql-go-tools UsageLook into the docs. Other than that, tests definitely help understanding this library. Testing
Linting
PerformanceMost hot path operations have 0 allocations. You should expect this library to exceed all alternatives in terms of performance. I've compared my implementation vs. others but why trust my numbers? Feel free to add comparisons via PR. BenchmarksParse Kitchen Sink (1020 chars, example from Facebook): pkg: github.com/wundergraph/graphql-go-tools/pkg/astparser
BenchmarkKitchenSink 189426 5652 ns/op 0 B/op 0 allocs/op
BenchmarkKitchenSink 198253 5526 ns/op 0 B/op 0 allocs/op
BenchmarkKitchenSink 199924 5553 ns/op 0 B/op 0 allocs/op
BenchmarkKitchenSink 212695 5804 ns/op 0 B/op 0 allocs/op CPU and Memory consumption for lexing, parsing as well as most other operations is neglectable, even for larger queries. Contributors
ContributionsFeel free to file an issue in case of bugs. We're open to your ideas to enhance the repository. You are open to contribute via PR's. Please open an issue to discuss your idea before implementing it so we can have a discussion. Make sure to comply with the linting rules. You must not add untested code. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论