Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The databases are not separate for each service #10

Open
jbonnett92 opened this issue Aug 19, 2018 · 1 comment
Open

The databases are not separate for each service #10

jbonnett92 opened this issue Aug 19, 2018 · 1 comment

Comments

@jbonnett92
Copy link

Hi,
I watched this https://www.youtube.com/watch?v=JgqDajrdSrY and it states that the databases should be separate for each of the services. On inspection of Model.js I can see that it is not.

Could you make an example where it is?

Thanks,
Jamie

@dashersw
Copy link
Owner

dashersw commented Sep 1, 2018

Hello! It's not implemented in this example for brevity, but it's very straightforward. Instead of a centralized models module, every service should declare its own models and its own database connection. No databases, collections, tables or models should be shared between services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants