Live data from Hacker News

Ask HN: Anyone here switch to Go for building (REST) APIs?

news.ycombinator.com

11–20 of 51 posts

Re: Ask HN: Anyone here switch to Go for building (REST) APIs?

#11
Yes, go is still my go to technology for API work. I usually go about it like this: write an OpenAPI spec, generate clients and servers, implement individual operations. I like how lightweight a go implementation is and how easy, no-bs it is to setup a new module. I like go for apis.

Re: Ask HN: Anyone here switch to Go for building (REST) APIs?

#14
Yes! trying to use it for new things.

Because of the stable nature of the base language and library, and the way libraries are imported, with multiple pinned versions allowed and without import loops, it gives better longevity to "set and forget" type back-end services.

I rarely have a problem when coming back to work on an old project, it still compiles and even updating dependencies is usually fine.

This helps with the problem of back-end services becoming "forgotten children" that don't receive attention for extended periods.

Re: Ask HN: Anyone here switch to Go for building (REST) APIs?

#16
My team and I have built many dozen services using Go and Fiber (fiber.io) and have been insanely pleased with the experience and the performance of the code. We have quickly onboarded new devs and got them productive very quickly thanks to the relative simplicity of the language, amazing documentation and strong start of tools. We are writing most of our components, APIs and tools in Go. Go for it!

Re: Ask HN: Anyone here switch to Go for building (REST) APIs?

#18
post #16

My team and I have built many dozen services using Go and Fiber (fiber.io) and have been insanely pleased with the experience and the performance of the code. We have quickly onboarded new devs and got them productive very quickly thanks to the relative simplicity of the language, amazing documentation and strong start of tools. We are writing most of our components, APIs and tools in Go. Go for it!

> fiber.io

Should be gofiber.io

Re: Ask HN: Anyone here switch to Go for building (REST) APIs?

#19
post #10

First of, just like the term "hacker" became popularized by the media and turned into the meaning of someone who cracks computers and software, so has HTTP based APIs been popularized and turned into REST applications, but this is wrong. A HTTP based API cannot, by its very nature, ever be REST. Now that's out of the way, yes. We use Go for both API and web development, actually full stack WITHOUT any JavaScript. We…

Can you elaborate on why HTTP APIs cannot be REST APIs? I know a lot of http services are misclassified as REST, but why can they by definition not be?

Re: Ask HN: Anyone here switch to Go for building (REST) APIs?

#20
Yes, in 2017 and 3 companies later I've never looked back. Current application is an event-sourced system that includes a REST API, asynchronous event processing over SSE, and a scheduled job runner.

It's been great. We don't use any frameworks, just the http package. It's blazing fast and highly reliable (low bug occurrence and easy refactors due to the safety provided by strong typing).

Post reply on HN