Is it possible to use loopback with shared nothing database model, where every client has its own database. For any CRUD data should reflect in corresponding client database.
Thanks Ankit S
Is it possible to use loopback with shared nothing database model, where every client has its own database. For any CRUD data should reflect in corresponding client database.
Thanks Ankit S
Solution 1)
Loopback has it's own client framework, which is probably what you are looking for. Just serving that to each client would make it a shared nothing database/API.
https://loopback.io/doc/en/lb3/LoopBack-in-the-client.html
Solution 2)
Since Loopback normally is server-side you'd have to separate the clients being able to identify them. By default this is not activated, however using something like session-cookies or express-session would make it easy to identify and separate each client to then store them through relations in one database.
Otherwise if it's really important that each client has it's own database I'd look into a loadbalancer and round robin algorithm with sticky sessions to make sure each user gets it's own Loopback-instance (with their own database) but that feels a little bit overkill.