Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加多租户的设计与实现 #229

Open
gmf520 opened this issue Apr 2, 2021 · 2 comments
Open

添加多租户的设计与实现 #229

gmf520 opened this issue Apr 2, 2021 · 2 comments
Labels
Feature 🔨 新功能,新特性
Milestone

Comments

@gmf520
Copy link
Member

gmf520 commented Apr 2, 2021

您的功能请求与现有问题有关吗?请描述

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

描述您想要的需求方案

A clear and concise description of what you want to happen.

描述你考虑过的解决方案

A clear and concise description of any alternative solutions or features you've considered.

附加上下文,比如截图

Add any other context or screenshots about the feature request here.

@gmf520 gmf520 added the Feature 🔨 新功能,新特性 label Apr 2, 2021
@gmf520 gmf520 added this to the v5.0.5 milestone Apr 2, 2021
@AlexGeller
Copy link

其实大多数的系统并不需要有多租户功能,如果框架为了兼容多租户功能而设计一个开关,用来关闭和启动多租户功能,个人感觉这种设计对于不需要多租户功能的系统,其实并不友好,框架会有很多判断和无效的代码,不利于框架理解和使用。当初选择OSharp,没有选择其它框架,就是因为它没有多租户功能,代码纯净。

关于多租户的功能,应该设计成一个独立的模块,单独实现多租户功能,当不需要多租户功能时加载另外的模块。这种设计比混合代码,然后使用配置进行判断的方式会比较好。

@gmf520
Copy link
Member Author

gmf520 commented May 24, 2021

@AlexGeller 我也是这么考虑的,引入多租户会引入更多的复杂度,需要一个良好的设计

@gmf520 gmf520 modified the milestones: v6.0.0, vNext Dec 27, 2021
@gmf520 gmf520 modified the milestones: v6.0.5, vNext Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 🔨 新功能,新特性
Projects
None yet
Development

No branches or pull requests

2 participants