简体   繁体   English

WSO2 Stratos-多租户应用程序开发

[英]WSO2 Stratos - Multi-tenant application development

I am exploring the product WSO2 stratos ,watched some of the webinar recordings. 我正在探索WSO2 Stratos产品,观看了一些网络研讨会的录音。 I would like to create an application and expose it as SAAS.One of the webex recordings cover this in detail , but it is not explaining the multi-tenancy on data storage. 我想创建一个应用程序并将其公开为SAAS。其中一个webex录音对此进行了详细介绍,但并未解释数据存储的多租户。 Is there any tutorial available for the same ? 是否有可用的同一教程? I would like to use shared schema for data storage. 我想使用共享模式进行数据存储。 What kind of database can i use for this ( For eg: MySql,MongoDB,Cassandra etc ) Is it possible to use some frame works like Athena ? 我可以为此使用哪种数据库(例如:MySql,MongoDB,Cassandra等),是否可以使用像Athena这样的框架作品? I am just trying to do a kind of POC and then i need to decide whether this platform really fits for the application that i am thinking to build 我只是想做一种POC,然后我需要确定该平台是否真的适合我要构建的应用程序

You can create databases through WSO2 Storage Server in StratosLive which can be accessed via storage.stratoslive.wso2.com. 您可以通过StratosLive中的WSO2存储服务器创建数据库,可以通过storage.stratoslive.wso2.com访问该数据库。 You need to create a database and attach a user to it. 您需要创建一个数据库并将用户附加到该数据库。 Then you can access that database from your webapp (you will get a jdbc url) as you do it in normal cases. 然后,您可以像通常情况下一样从Web应用程序访问该数据库(您将获得一个jdbc URL)。 Also, you can create Cassandra keyspaces in the Storage Server. 另外,您可以在存储服务器中创建Cassandra键空间。 But we dont have the MongoDB support at the moment. 但是我们目前没有MongoDB支持。 There is no documentation on this yet. 尚无相关文档。

Yes, you're right. 你是对的。 Multi-tenant data architecture is up to the user to decide. 多租户数据架构由用户决定。 This white paper from Microsoft explains multi-tenant data architecture nicely . Microsoft的本白皮书很好地解释了多租户数据架构 The whitepaper however is written assuming you're using an RDBMS. 但是,在编写白皮书时假设您正在使用RDBMS。 I haven't played around with Athena so it's difficult to say how it'll map with what Stratos provides. 我没有和Athena玩过,所以很难说它将如何与Stratos提供的内容相对应。 The data architecture might be different when you're using a NoSQL DB and different DBs have different ways of filtering a set of data by a given tenant (or an ID). 当您使用NoSQL数据库时,数据架构可能会有所不同,并且不同的DB具有通过给定租户(或ID)过滤一组数据的不同方式。 So probably going by the whitepaper it'll map to, 因此,可能是通过白皮书将其映射到,

Different DBs -> Different keyspaces 不同的DB->不同的键空间
Different tabeles -> Different column families 不同的Tabeles->不同的列族
Shared schema -> Shared column family 共享架构->共享列族

Better to define your application characteristics before hand and then choose an appropriate DB 事先更好地定义应用程序特征,然后选择合适的数据库

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

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