golang-relay-starter-kit icon indicating copy to clipboard operation
golang-relay-starter-kit copied to clipboard

use only the golang server, both for graphql and frontend

Open skariel opened this issue 8 years ago • 3 comments

why is the nodejs server needed when we have a golang server?

skariel avatar Apr 09 '16 21:04 skariel

Hi @skariel

You are absolutely right, there is no real reason to use a NodeJS server.

This repo was originally created with the intention to show the parallels between the original relay-starter-kit that was first published, which was designed for the NodeJS community and was being referenced by a lot of articles back then.

It seems that having a GraphQL server on NodeJS is what most developers are initially exposed to, since the reference implementation that's published by Facebook was written for NodeJS. I was hoping back then that, together with the graphql-go library that I'm contributing to, this repo would help with the transition to having a GraphQL server on Go.

Personally I think an app server written in Go that serves both the NodeJS app and GraphQL requests, is way more performant than an app server written in NodeJS.

I have since have used a different stack for my Go/Golang + GraphQL + Relay + React + ES6/ES2015 + Webpack + Babel, where the app server is fully Go. I have deployed a small scale (<1000 active users) project on that stack and I'm monitoring the infrastructure. (It has been promising, so far). I might clean it up and publish that when I can find time to plan for it.

Thanks for bringing this up! Cheers!

sogko avatar Apr 10 '16 00:04 sogko

"I have since have used a different stack for my Go/Golang + GraphQL + Relay + React + ES6/ES2015 + Webpack + Babel, where the app server is fully Go"

I would be very interested... ;)

dstroot avatar Oct 07 '17 18:10 dstroot

Me as well!

dav-is avatar Oct 11 '17 19:10 dav-is