sourcefuse / loopback4-starter

Loopback 4 starter application. Multi-tenant architecture supported. Authentication, Authorization, Soft deletes, environment vars, Audit logs, included.
MIT License
158 stars 59 forks source link

A single connection pool #70

Closed mbnoimi closed 3 years ago

mbnoimi commented 3 years ago

Does this starter boilerplate support a single connection pool per app? I don't want to create a connection pool per tenant (just want a single connection pool for multi-tenant) In PostgreSQL usually we use a schema per tenant which means the app uses a single database with multi schemas.

samarpan-b commented 3 years ago

Yes its using single pool. It uses logical separation of tenant data rather than physical separation.

mbnoimi commented 3 years ago

Yes its using single pool. It uses logical separation of tenant data rather than physical separation.

Thanks a lot. I'll use soon

mbnoimi commented 3 years ago

Did you take a look into this new example? https://github.com/strongloop/loopback-next/tree/master/examples/multi-tenancy

How this starter project different from the official example?

samarpan-b commented 3 years ago

I haven't taken a look at it. This starter project was built way long ago. We just kept upgrading it to latest. This project not only gives you multi tenancy. it also guides you on a standard LB4 monolithic application architecture principles as well. In fact, we also have a branch for single tenant architecture.