#1 Re: mORMot 1 » mORMot in a multitenant application » 2017-09-13 12:30:55

Thanks for your reply. We are dealing with a few hundred customers (say 300), with one database each. Database size varies from 50mb for smaller companies that just started, to 20gb for some big customers that have been using our software for years. The average customer has 5-10 simultaneous users. Our application currently uses Microsoft SQL Server, which we would prefer to keep using.

#2 mORMot 1 » mORMot in a multitenant application » 2017-09-13 08:58:36

Bram
Replies: 2

We develop an ERP application that's currently deployed on-premises. It consists of a thin-client and a monolithic backend, which we are looking to upgrade (and probably convert to microservices) with mORMot or another REST solution. A next step would be to make the backend multi-tenant, so one backend server can handle sessions for users of multiple customers. Each customer has his own database (and several users).

Because the server is stateless (and the request specifies which tenants it belongs to), each request must get a database-connection for the database for this tenant. For services defined via interfaces we can switch the database-connection ourselves, but how would that work for the ORM? All examples I've seen already bind the database before using the ORM.

Another question: because we want to serve multiple tenants with one backend, our users would have to authenticate with company/user/password. The examples I've seen all authenticate with only user and password. Can we use your default authentication with the added "company"?

How do other companies with multi-tenant solutions tackle these issues, what are the best practices?

Thanks for your help!

#3 Re: mORMot 1 » Integrate mORMot in webserver, or the other way around » 2017-08-08 13:30:30

Hi ab. Thanks again. It seems none of the REST solutions we're comparing support Webbroker. We're considering keeping the old Webbroker-server in the background, and using mORMot as a proxy for the web-requests. Do you have any samples or pointers on how to tackle this?

#4 Re: mORMot 1 » Integrate mORMot in webserver, or the other way around » 2017-08-04 14:08:43

Hi ab. Thanks for your reply. I would indeed prefer to use the mORMot Webserver for those reasons. I've looked at the sample, but the problem is that we use Webbroker modules in the Indy webserver. We could ditch Indy, if we could use the Webbroker modules with mORMot. Would that be possible somehow?

#5 mORMot 1 » Integrate mORMot in webserver, or the other way around » 2017-08-04 10:29:35

Bram
Replies: 5

Hi everybody! My company is looking for a REST solution to add some new functionality to our software. We're also looking at mORMot. Our software currently already includes a webserver. We would like to integrate the new REST server in the current webserver, or integrate the current webserver in the new REST server. http://host/web would be the old webserver, while http://host/rest would be the new REST server.

Our current webserver is an Indy webserver with Webbroker modules. Would it be possible to integrate mORMot in this webserver? Or to integrate this webserver in mORMot?

Board footer

Powered by FluxBB