GraphQL Kotlin vs WunderGraph Cosmo
GraphQL Kotlin
opensource.expediagroup.comWunderGraph Cosmo
wundergraph.comSide by side
| Figure | GraphQL Kotlin | WunderGraph Cosmo |
|---|---|---|
| Price from | Free | $499/mo |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| API | Yes | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 4 |
| Spec score · GraphQL Tools | 8.0 (#8) | 7.7 (#16) |
| Integrations | Reference client implementations use Ktor HTTP Client and Spring WebClient, and custom implementations can use other engines. | Cosmo Streams currently supports Kafka, NATS including JetStream, and Redis. |
| Purpose | GraphQL Kotlin is a collection of libraries built on graphql-java to run GraphQL clients and servers in Kotlin. | Cosmo is an open-source GraphQL Federation platform for platform teams that provides schema checks, guardrails and observability. |
| Subscriptions | The Ktor server supports Kotlin Flow subscriptions over WebSockets using the graphql-transport-ws subprotocol. | Cosmo supports subscriptions over WebSockets and Server-Sent Events, plus event-driven subscriptions backed by Kafka, NATS, SQS or RabbitMQ. |
| Support | The maintainers invite questions through GitHub Discussions and the public #graphql-kotlin channel on Kotlin Slack. | Support ranges from Discord community support on Developer to email, private Discord, Microsoft Teams and dedicated solution-architect support on Enterprise. |
Plans
WunderGraph Cosmo
- DeveloperFree
- Launch$499 a month
- Scale$3,499 a month
- EnterprisePriced on request
In their own words
GraphQL Kotlin
GraphQL Kotlin is a free Apache License 2.0 collection of libraries, built on graphql-java, for running GraphQL clients and servers in Kotlin. Its schema generator creates schemas from Kotlin code, and a federation module can produce Apollo Federation-compliant schemas. Gradle and Maven plugins generate type-safe Kotlin clients from existing schemas. Generated clients support queries, mutations, batching, coroutines, custom scalars, configurable enum defaults, and Jackson or kotlinx.serialization models. Reference HTTP integrations use Ktor HTTP Client and Spring WebClient, while custom engines are possible. Server implementations target Spring Boot and Ktor; the Spring server uses Spring WebFlux. Ktor supports Kotlin Flow subscriptions over WebSockets with the graphql-transport-ws subprotocol. Its plugin leaves route configuration to the application, allowing selective routes and added authentication logic. The schema generator supports Kotlin Lists, but Sets, arbitrary Maps, and arrays are not supported out of the box. The project is self-hosted, with security guidance in its repository and community support through GitHub Discussions and Kotlin Slack.
WunderGraph Cosmo
WunderGraph Cosmo is an open-source GraphQL Federation platform for platform teams, offering schema checks, guardrails and observability. It unifies GraphQL, REST, gRPC and Kafka in a federated graph and supports Apollo Federation versions 1 and 2 across existing GraphQL services. Cosmo Router is a Go-based, Apache 2.0-licensed router and gateway. Teams can deploy it with Docker, Kubernetes or an AWS Lambda-optimized binary, or use WunderGraph’s managed service. The Schema Registry checks composition, breaking changes, client traffic and linting. Subscriptions work over WebSockets and Server-Sent Events, and event-driven subscriptions can use Kafka, NATS, SQS or RabbitMQ. Cosmo Streams supports Kafka, NATS including JetStream, and Redis. Observability includes OpenTelemetry tracing and Prometheus metrics, which can be exported to compatible backends. The free Developer plan includes one federated graph, 10M requests/month, 10 subgraphs, one team member and seven-day retention. Launch costs $499 a month; Scale costs $3,499 a month. Enterprise pricing is custom. Managed plans include SOC 2 and HIPAA compliance; the site also identifies ISO 27001 certification.