2 ms·
I would say it depends on the stability of what's being copy/pasted. If it's just boilerplate, it's less concerning. In my opinion, decoupling should be priori
by barbecue_sauce 8y ago
I would say it depends on the stability of what's being copy/pasted. If it's just boilerplate, it's less concerning.
In my opinion, decoupling should be prioritized over DRYness (within reason). A microservice should be able to live fairly independently from other microservices. While throwing out shared libraries (which can be maintained and distributed independently from services) seems like overkill, it seems much better than having explicit inheritance between microservice projects like the original poster is describing.
- danmaz74 8y agoSure, no problem with boilerplate. For any non trivial code, which needs to be maintained and be kept well tested, to the contrary of the OP, I would favor shared libraries over copy/paste.