When is it (not) appropriate to bundle dependencies with an application?

后端 未结 8 2244
忘掉有多难
忘掉有多难 2021-02-19 13:43

Summary

I recently had a conversation with the creator of a framework that one of my applications depends on. During that conversation he mentioned as

8条回答
  •  醉话见心
    2021-02-19 13:52

    An important point seems to have been forgotten in the Cons of bundling libraries/frameworks/etc with the application: security updates.

    Most Web frameworks are full of security holes and require frequent patching. Any library, anyway, may have to be upgraded one day or the other for a security bug.

    If you do not bundle, sysadmins will just upgrade one copy of the library and restart depending applications.

    If you bundle, sysadmins will probably not even know they have to upgrade something.

    So, the issue with bundling is not the disk space, it's the risk of letting old and dangerous copies around.

提交回复
热议问题