I am creating web app and micorservice for that app, and both need to have same DB model created with Sequelize. What is approach for handling this task with NodeJS?
I am thinking about creating separate module of my DB models and save it in private git and add this private git to my web app and microservice as npm dependency.
But I am wondering is it right approach or what is right way to separate shared private module between few microservices, in my case it is DB models? Should I go with DRY or not?
Thanks in advance!
via Aren Hovsepyan
No comments:
Post a Comment