Re:Why Segment Went Back to a Monolith
by kkapelon on Wednesday April 29, 2020 @11:13AM
(#23020205)
Sorry for not being clear.
Having a shared library is not a bad thing on its own. Making the library a bottleneck is the anti-pattern.
If you wish to have a shared-library of microservices you should be prepared to have multiple versions of it running at the same time without any pressure to update everything at once.
If your shared library is the bottleneck, it means that your microservices are tighly coupled (hence the distributed monolith)
Having a shared library is not a bad thing on its own. Making the library a bottleneck is the anti-pattern.
If you wish to have a shared-library of microservices you should be prepared to have multiple versions of it running at the same time without any pressure to update everything at once.
If your shared library is the bottleneck, it means that your microservices are tighly coupled (hence the distributed monolith)