Live data from Hacker News

Ask HN: What is your Golang web-dev tech stack?

news.ycombinator.com

41–47 of 47 posts

Re: Ask HN: What is your Golang web-dev tech stack?

#42
I'm curious. I've used GoLang's simple web server before, but I'm interested in what GoLang provides over Node. To me, it seems Go is especially well suited for microservices and tasks requiring a lot of CPU intensive processes while Node is better when working with small requests over the wire.

In other words, what is Go's main selling point in competing with Node in terms of its http server, TCP sockets, etc...

Can Go's awesome concurrency patterns be used to optimize server requests? Can it be well utilized as a proxy?

Re: Ask HN: What is your Golang web-dev tech stack?

#43
post #36
post #22

* Standard library for a lot of things. * https://github.com/go-chi/chi is pretty good. I have a need for a lot of custom middlewares, so I need something more fleshed out than net/http. * All config files are written in TOML: https://github.com/BurntSushi/toml * https://github.com/gocql/gocql for all Cassandra needs. * Development work is done in Docker so everyone has a consistent env. That's all, I tend to dislike…

Just took a look at Chi's RESTful API example, I like it. I also like the benchmarks. Judging by most of the comments on this thread, it looks like the community favors modular small tools over big fat frameworks, is that true?

I’d say so.

Big framework comes at big cost when trying to upgrade to a new version because it’s surface area is big.

Re: Ask HN: What is your Golang web-dev tech stack?

#44
post #33
post #24

gRPC, gRPC-Gateway, pgx, memcached, gorilla secure cookie, gorilla CSRF, gRPC-opentracing with Google Stackdriver integration, Uber-zap logging

Interesting. What do you use gRPC for?

To document and generate the api client and server stubs. Server is implemented in Go, clients are either Android, iOS or a Browser.

Android uses grpc-java iOS uses grpc-objc Browser uses gRPC-Gateway and the JSON equivalent of the protobuf3 spec.

Re: Ask HN: What is your Golang web-dev tech stack?

#45
post #40
post #37

Earlier quoted context omitted.

Any chance you have that ORM of yours open-sourced somewhere?

No, but (1) sqlboiler is a much better ORM, and (2) it is surprisingly easy to build these things yourself; mine's just a bunch of text/template templates and ~100 lines of Go code to scrape a Postgres schema. (I mean: this code will be open sourced pretty soon, since it's part of a bigger open source thingy I'm releasing, but the ORM isn't very good, just as good as I needed it to be; nobody should ever use it for a…

Go it. Sounds like a fun educational project to build, an ORM tgat scrapes a PostgreSQL database and provides primitives to query it.

Re: Ask HN: What is your Golang web-dev tech stack?

#46
post #10

I've started using Echo[1] and it seems to provide most of what I'm looking for (routing, context, sessions, CSRF protection, form/json binding, etc). For templating, I'm using QuickTemplate[2] which creates statically generated templates, but Pongo2[3] and Jet[4] also look reasonable. sqlx[5], gorm[6], and sqlboiler[7] all seem reasonable for database access, depending on what your style is (sqlx being oriented towa…

I started using "realize" to get live realod [9].

And I also use "bindata" to compile all my static files into the final binary [10].

[9] https://github.com/tockins/realize

[10] https://github.com/jteeuwen/go-bindata

Post reply on HN