设置 Rails saas 架构
在为 Rails 设置 SaaS 环境时,您经常会看到共享代码(例如身份验证系统)是一个引擎并包含在所有客户端应用程序中。
我正在考虑以相反的方式进行操作,因此使用共享代码创建一个主应用程序,并将客户端应用程序作为引擎包含在内。我认为这种方法有一些优点:实际上只有一个应用程序需要部署,我认为它更容易,并且 ruby 实例会更少。在主应用程序中添加额外的内容也很容易
,您认为这是一个好方法还是有我没有想到的缺点?
When setting up a saas environment for rails, you often see that the shared code, for example an authentication system is an engine and included in all the client apps.
I was thinking of doing it the other way around, so make a main app with shared code and include the client apps as engines. I was thinking that this approach has some advantages: there is actualy only one app to deploy which i think is easier and there will be less ruby instances. It is also easy to put extra stuff in the master app
Wat do you think, is this a good approach or are there disadvantages i didn't think of?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论