设置 Rails saas 架构

发布于 2024-11-18 03:01:06 字数 232 浏览 3 评论 0原文

在为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文