Re:Microservices with Go, go-microservice-template and Minke
by anon987 on Tuesday March 01, 2016 @10:49AM
(#11203394)
Yep - yet another half-baked project that someone is using for internet points. I'm really getting sick of people re-inventing the wheel poorly.
The number of available tools is really getting out of hand and I wish projects like this wouldn't suck away resources from established, functional projects.
Re:Microservices with Go, go-microservice-template and Minke
by artpepper on Tuesday March 01, 2016 @04:50AM
(#11201753)
Even in a microservice I'd expect DI to be useful for injecting stuff like logging, caching, data backend. For mocking, if nothing else.
DI + properly defined interfaces shouldn't make code harder to reason about.
Re:Microservices with Go, go-microservice-template and Minke
by giulianob on Tuesday March 01, 2016 @08:23AM
(#11202372)
I would even expect some out of the box management APIs to help upgrade the microservice with low to zero downtime, feature toggles, etc... A lot of these get built into each app typically but when you're creating many different microservices, the overhead of creating a service needs to be as close to zero as possible.
Besides that, I don't agree with putting dependency injection in a microservice. Why bother? In a sense, microservices are a breath of fresh air, because they're supposed to "fit in one developer's head." If you're already adding layers of indirection, you're making the code harder to reason about for no good reason.