Java Web应用程序-如何使用多模式架构实现Saas? [英] Java Webapplication - How to Implement Saas Using multischema architecture?

查看:261
本文介绍了Java Web应用程序-如何使用多模式架构实现Saas?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个j2ee/Spring网络应用程序.

We are having a web application developed j2ee/Spring.

我们计划通过为每个客户使用不同的架构来实现SaaS模型.

We are planning to implement SaaS model by using different schema for each customer.

请提出最佳方法.

我们空白如何开始该过程?我们如何将不同的客户映射到不同的数据库?

We are blank how to start the process ? How can we map different customer to different DB ?

谢谢

推荐答案

要为每个客户使用不同的架构,您需要提供一个可用于唯一标识客户架构或租户架构的标识符.通常是租户标识符密钥.

For using different schema for each customer you need to come up with an identifier(s) that can be used to uniquely identify the customer schema or the tenant schema. It is usually a tenant identifier key.

Neil的答案提供了有关实际连接到不同租户数据库的有用链接.

Neil's answer has provided useful links on actually making connections to different tenant databases.

下面是我的一篇文章的链接,该文章讨论了数据库体系结构和相关项目.

Below is a link to one of my posts that talks about the db architecture and related items.

基于SaaS的在线门户的体系结构

这篇关于Java Web应用程序-如何使用多模式架构实现Saas?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆