java - 多服务器到单服务器

标签 java tomcat architecture cloud google-cloud-platform

我需要在云中部署我的应用程序。

在我目前的应用程序架构中,我们为每个客户端使用一台服务器。当我将同样的东西转移到云端时,成本会很高。

谁能帮我解决这个问题吗?

我们使用 TomcatSQL ServerServlet

最佳答案

管理 Multi-Tenancy 数据的三种方法

  1. 为每个租户使用不同的数据库。
  2. 每个租户在公共(public)数据库中都有自己独立的一组表。
  3. 所有租户共享同一组表,并且租户 ID 将每个租户与其拥有的行相关联。

这个link会给你更多的知识

关于java - 多服务器到单服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27393570/

相关文章:

java - 索引未知字段时强制使用字符串类型

java - 结合 Canvas 和布局?

java - 为什么 hibernate 一段时间后停止工作?

java - Jrebel 与 Apache Tomcat 同步

Flutter BLoC 库 : Where to keep the TextEditingController object: in State, 在 BLoC/Cubit 类或小部件中?

sharepoint - 软件架构师应该具备哪些有关 SharePoint 的知识?

java - Android项目可以嵌套在另一个项目中吗

java - 为什么人们使用 if(null == var) 风格的测试?

java - Mockito Junit 测试 - “Wanted but not invoked; However there were other interactions with this mock” 错误

tomcat - Elastic Beanstalk : Container Command not copying file