Replies: 3 comments
-
|
We did the same years ago and had the same problem. Now we use one ebean server and a multitenant datasource. My advice is to use one ebean server with the multi tenant support from ebean with an appropriate datasource. I currently do some research with DB2 and trusted context to reuse connections with an other user id... |
Beta Was this translation helpful? Give feedback.
-
|
We also use just a single Ebean database but with one DataSource (connection pool) per tenant. See Ebean's However we use dynamic sized connection pools so we do not have so many unused open connections lingering around. With good hardware the cost of connection creation is negible in our case. Tenants are spread across multiple database servers so we do not run in the situation that a single database struggles because of the number of concurrent connections. |
Beta Was this translation helpful? Give feedback.
-
|
@rPraml @jnehlmeier Thank you for your answers and advises. We will explore these options. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We've faced a problem using multi-tenant architecture.
Every our tenant has its own database with same schemes, tables and columns inside. We create Ebean server object for each tenant with same model packages. So every tenant has its own copy of BeanDescriptor array with same models. We have hundreds of simultaneously working tenants so this lead to large consumption in heap memory.
The question is, can something be done with this? Maybe BeanDescriptorManagers of different Ebean servers could somehow share BeanDescriptor of identical models so that they are not duplicated in memory?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions