Parent pom and microservices

后端 未结 6 1184
礼貌的吻别
礼貌的吻别 2020-12-14 16:23
  • We have several projects that are microservices, every project is independent (running on separate spring boot server, exposing rest services, using separate DB schema
6条回答
  •  悲&欢浪女
    2020-12-14 17:16

    Most books on microservice architecture recommend autonomy as a principle. Using a parent pom violates that principle.

    First of all with a parent pom you can no longer adopt a polyglot approach and write your microservices in different languages.

    You'll also be forced to use the dependencies prescribed by the parent, especially if the enforcer plugin is employed.

    The microservices will no longer be independently deployable.

    There is also the risk that your work on any one microservice may break others if that work involves altering the parent.

提交回复
热议问题