News for hackers. Stuff that matters.
Re:Ask HN: How do you version control your microservices? by supermatt on Friday June 12, 2015 @11:04AM (#9706314)
The whole git submodule thing is solely a manifest of all the git refs for compliant microservices. Lets just pretend that it is a text file, and call it the service manifest (why the submodule hate!) :)

The microservices are indeed "deployed" independently, based on the version (ref) as indicated in the service manifest.

> I would have separate repos and deploy scripts and then set the version number of each service to the build number which guarantees traceability and makes it easier for change management.

They have seperate repos, they have seperate "versions" (we use the git ref, which is constant).

As for why I use submodules, this is (in pseudo-bash) what a service deployment looks like:

  git pull
  git submodule update SERVICE_NAME
  cd SERVICE_NAME
  ./start.sh

There are no comments on this comment yet.