-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add an example for multi-tenancy #5087
Conversation
5ca3855
to
0c99edb
Compare
0c99edb
to
5317f45
Compare
5317f45
to
750f84c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff, @raymondfeng .
@raymondfeng So, if I understand correctly, multitenancy is achieved by switching the datasource to the one configured for the tenant. At what point is the switch done? As soon as a request arrives? What if there is a long running query for a tenant and a new request arrives for another one? What if there was some code to be executed after query was a successful; is it guaranteed that this code will not be executed for another tenant? |
Please note that we create a new |
Yes, there's a new @bajtos thoughts? |
The assumption is that downstream controllers/repositories/services have |
Hi, great stuff! 👍 |
See #5056
Checklist
👉 Read and sign the CLA (Contributor License Agreement) 👈
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈