Home > Back-end >  Java micro service each micro service startup sequence how to solve
Java micro service each micro service startup sequence how to solve

Time:09-18

Micro service between each have each micro service in rely on how to guarantee the service according to the order to start the report not abnormal...

CodePudding user response:

Between each project through what to rely on? A zookeeper?

CodePudding user response:

Feign client

CodePudding user response:

Eruka for service registration

CodePudding user response:

In general, in order to ensure that the service startup sequence will need to use the service choreography technology, such as docker compose, write docker - compose. Yml can be set to start the container order also implements the service operation order,
Search to a single service startup sequence according to the pid control under way:
https://blog.csdn.net/mxn771208/article/details/78094138

CodePudding user response:

Assuming A projects rely on B, B projects rely on C, C project is dependent on A project, no matter which project it doesn't matter, start the suppose to start A project, A project depend on is just B project jar package, so the project startup is not A problem
  • Related