|
|
|
|
|
by willsewell
664 days ago
|
|
I think this depends on the library. There are some libraries that are just used in a handful of services, and in those cases I don't think that wrapping is worth the overhead. However for some of the core platform functionality depended on by all services, we've seen a lot of value in wrapping because it: - We can provide a more opinionated interface (a third party library is typically more flexible because it has vastly more variety in its use cases)
- We can hook in our own instrumentation easily (e.g. metrics, logging) or change functionality with config/feature flags
- We can transparently change the implementation in the future |
|