Live data from Hacker News

Ask HN: What Go framework for web API are you using in production?

news.ycombinator.com

11–20 of 65 posts

Re: Ask HN: What Go framework for web API are you using in production?

#12

We run grpc-web with a big single-page VueJS app on the frontend. That way, Go is just the Api server, and the frontend handles all the routing and stuff.

We will also try to go this path. What is your overall satisfaction with this approach? I saw that grpc-web is marked as alpha and the grpc team itself wants to implement something which is kind of comparable.

Re: Ask HN: What Go framework for web API are you using in production?

#19
post #16

net/http with gorilla/mux for routing

Same here. I never really liked idea of frameworks like Spring/Django for Golang. Rather build very small services and mostly use just standard library, perhaps some simple packages for specific tasks.

Re: Ask HN: What Go framework for web API are you using in production?

#20
post #18

Using no frameworks at all, only https://github.com/julienschmidt/httprouter for routing.

How do you handle database schema migrations?

I use SQL migrations for this, works fine. Only migrate up, never down, and store the name of migrations already run in the db.
Post reply on HN