简体   繁体   English

一个数据库还是几个数据库?

[英]One database or several?

I am developing a CRM in Laravel and the following doubts came to me. 我在Laravel开发CRM时,遇到了以下疑问。

Client A will have access to 1 database + 5Gb of emails and Client B will also, but how should I organize this on my server? 客户端A可以访问1个数据库+ 5 Gb的电子邮件,客户端B也可以访问,但是我应该如何在服务器上进行组织呢?

Should I create a database called banco_a and another banco_b ? 我应该创建一个名为banco_a和另一个banco_b的数据库吗? Is there another way? 还有另一种方法吗?

If anyone can give me a "north" of which would be the best way for this, I will be grateful. 如果有人可以给我“北方”的建议,那将是最好的办法,我将不胜感激。

Remembering that my application could reach 100 clients or 1000 记住我的应用程序可以达到100个客户或1000个客户

According to your requirements you have to implement multi-tenancy system, ie architecture in which a single instance of a software application serves multiple customers, for detail read this article https://whatis.techtarget.com/definition/multi-tenancy , 根据您的要求,您必须实现多租户系统,即其中一个软件应用程序的单个实例为多个客户服务的体系结构,有关详细信息,请阅读本文https://whatis.techtarget.com/definition/multi-tenancy

In laravel there is package for multitenancy. 在laravel中,有用于多租户的软件包。 https://laravel-tenancy.com , which is awesome in my knowledge. https://laravel-tenancy.com ,据我所知真棒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM