News for hackers. Stuff that matters.
Re:Microservices: Why Are We Doing This? by stavros on Friday March 25, 2022 @05:13AM (#30800006)
Well, you have an API for libraries as well, and an even stronger one because you can have type guarantees, which you can't do with JSON (you can use gRPC etc but people usually don't).

With libraries it's easier than with microservices, because I can scan all the dependency files of all projects and immediately see which project relies on what library, which is much harder to do with microservices as a library author.

With those two things, and the fact that you can just keep using an older library version if you need to, whereas you can't easily keep using an older microservice version if it's been upgraded, I think libraries have lots of advantages in this.

Re:Microservices: Why Are We Doing This? by mekkkkkk on Friday March 25, 2022 @05:38AM (#30800146)
I agree, there are probably a lot of advantages. It would be interesting to see a boilerplate structure for this workflow. Maybe it already exists in some form.
Re:Microservices: Why Are We Doing This? by stavros on Friday March 25, 2022 @05:42AM (#30800171)
I can't imagine it being different from other libraries, bundle your code up in the language's supported way, publish it in some internal registry, add it to your dependencies, that should be about it.