我们应该将我们的第三方库与我们的组件打包在一起吗?
我们正在做一些架构重构。我们是一家 SaaS 公司,因此所有部署都是到我们自己管理的服务器上。当前模型将我们所有的二进制文件以及我们使用的第三方库打包到ears、wars、tars等中。这些包包括它们依赖的所有库。
当它们被部署时,它们被手动爆炸(解压缩)或被它们构建的任何目标容器拾取。
由于这些库没有太大变化,我们想知道作为环境设置的一部分预先部署这些库是否是一个更好的主意,并根据需要更新它们。我们不偏向任何一种方式,我只是在寻找一些反馈。
We are doing some architecture refactoring. We are a SaaS company so all deploys are to our own self managed servers. Current model packs all of our binaries along with 3rd party libraries we use into ears, wars, tars, etc. These packages include all of the libraries they depend on.
When they are deployed they are manually exploded (untar'd) or picked up by whatever target container they were built for.
Since the libraries don't change much we are wondering if it's a better idea to deploy the libraries before hand, as part of environment setup, and update them as needed. We aren't leaning one way or the other, and I am just looking for some feedback.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,用耳朵、战争等打包库会更好。一些原因是:
It is generally better to pack libraries with the ears,wars, etc. Some reasons are: