Can OSGi help reduce complexity?

后端 未结 6 1570
傲寒
傲寒 2021-02-01 04:20

I saw lots of presentations on OSGi and i think it sounds promising for enforcing better modularization. Apparently \"hotdeployment\" and \"running different versions of x in pa

6条回答
  •  -上瘾入骨i
    2021-02-01 04:45

    I've worked with OSGi for some years now (although in the context of an eclipse project, not in a web project). It is clear that the framework does not free you from thinking how to modularize. But it enables you to define the rules.

    If you use packages and defines (In a design document? Verbal?) that certain packages may not access classes in other packages, without an enforcement of this constraint, it will be broken. If you hire new developers they don't know the rules. They WILL break the rules. With OSGi you can define the rules in code. For us this was a big win, as it has helped us to maintain the architecture of our system.

    OSGi does not reduce complexity. But it definitely helps to handle it.

提交回复
热议问题