Java Webapplication - How to Implement Saas Using multischema architecture?

独自空忆成欢 提交于 2019-12-06 07:29:05
techuser soma

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'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.

Architecture for SaaS based online portal

This is something you want to control with your ORM. Check out EclipseLink:

http://wiki.eclipse.org/EclipseLink/Development/Indigo/Multi-Tenancy

Alternatively, check out Hibernate's Multi-Tenancy: http://docs.jboss.org/hibernate/orm/4.1/devguide/en-US/html/ch16.html

I would go with tenant per schema.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!