Re:Go Micro – A Go microservices development framework
by dominotw on Wednesday December 25, 2019 @11:17AM
(#21879072)
what if I just want to build a quick CRUD website. Why would i want to assemble bunch of libraries, instead of using a web framework. Framework is pattern of assembly that fits a specific need, why would everyone create their own.
[ Parent
| on HN ]
Re:Go Micro – A Go microservices development framework
by alphakilo on Wednesday December 25, 2019 @02:12PM
(#21879962)
From my experience with micro, it is pretty easy. You can use the template commands with `micro new user` to make a service and `micro new api --type=api` to create the api. Add a data layer to the User service for persistence. Next, you can create a user service client called by the routes in the api. Then running the micro runtime via `micro api` will allow you to make calls to domain.com/api/{RPC}.
Re:Go Micro – A Go microservices development framework
by jy3 on Wednesday December 25, 2019 @11:58AM
(#21879289)
net/http is all you need.
You don't need any library or framework.
Re:Go Micro – A Go microservices development framework
by dominotw on Wednesday December 25, 2019 @12:05PM
(#21879327)
not sure if you are joking but does net/http have
1. server side templating of html pages
2. database access/migration
3. asset packing/versioning
5. css compliation/ asset pipeline
6. authetication/authorization support
Re:Go Micro – A Go microservices development framework
by loopz on Wednesday December 25, 2019 @12:16PM
(#21879398)
While Golang could be used for that, the original target was to be a "systems language", more of a niche. There are people building websites and even games, but you won't find all the expected bells and whistles. There could even be current shortcomings in the language itself for such use cases, so you would be more "on your own" with such a solution, at the moment.
Re:Go Micro – A Go microservices development framework
by throwaway55554 on Wednesday December 25, 2019 @12:21PM
(#21879420)
> what if I just want to build a quick CRUD website
Re:Go Micro – A Go microservices development framework
by dominotw on Thursday December 26, 2019 @09:26AM
(#21883973)
RoR might have effected my definition of what 'quick' means :D. Things I mentioned in the comment above are indeed 'quick' in ror.
I assume you are implying these are not quick in golang ? I think it proves my point that assemble everything yourself is a silly ideology when applied generically to all things.