Coupling microservices via common libraries is very bad. Bit promotes building components. We simply isolate and sync any reusable code and let bit handle how to isolate and track source code among the projects. This can still be installed with NPM and make changes from any end. Let's say you are making some great system with top-notch functionalities that are common everywhere. You want to share code among these services. You can follow along with the code inside the bit-code-sharing folder in Chapter 7, Service State and Interservice Communication:
- Bit would be installed as a global module. Install bit by typing the following:
npm install bit-bin -g
- For this example, check out demo-microservice, which has common ...