[英]App for managing apps (architecture)
I know it's gonna be a very broad question and I'm pretty sure this is not anything new in todays world, but I really don't now where to start on this one. 我知道这将是一个非常广泛的问题,我很确定这在今天的世界里并不是什么新东西,但我现在真的不知道从哪里开始。
I've started working on a rails-based service that would allow users to create, configure and manage their projects (basicaly copies of a single app with customization). 我已经开始研究基于rails的服务,该服务允许用户创建,配置和管理他们的项目(具有自定义功能的单个应用程序的基本副本)。 The projects would be run on a subdomain with an option of connecting their own domain. 这些项目将在子域上运行,并可选择连接自己的域。 (Quite similar to how SquareSpace and Wix and many other website building services handle their websites) (与SquareSpace和Wix以及许多其他网站构建服务处理其网站的方式非常类似)
I want these projects to be as flexible and customizable as possible (including the visual design, some additional features etc) while maintaing ease of setup and updates for the codebase itself. 我希望这些项目尽可能灵活和可定制(包括可视化设计,一些其他功能等),同时保持代码库本身的易于设置和更新。
So the questions I start with: 所以我开始的问题:
As always, I'd be grateful for any sufficient help I can get. 一如既往,我会感激任何足够的帮助。
I have no experience building these kind of things and maybe there is an easy solution I'm not aware of. 我没有构建这类东西的经验,也许有一个我不知道的简单解决方案。 But my answer may give you some ideas/pointers to start with. 但我的回答可能会给你一些想法/指针。
1) It's hard to give an accurate answer but based on the high personalization criteria and the "copies of a single app" you talk about, I would go for an architecture more PAAS-like than SAAS-like . 1)很难给出准确的答案,但基于高个性化标准和你所谈论的“单个应用程序的副本”,我会选择比SAAS更像PAAS的架构。 So separated apps. 所以分开的应用。
2.1) You may want to consider a setting using: 2.1)您可能需要考虑使用以下设置:
2.2) You update the 'shared rails engine' gem. 2.2)您更新'共享轨道引擎'宝石。 You can then run bundle install in each containers. 然后,您可以在每个容器中运行bundle install。
People interested in these kind of setups may consider tools like dokku and deis . 兴趣在这些类型的设置的人可以考虑类似的工具dokku和DEIS 。
Consider a multi-tenant architecture. 考虑一个多租户架构。 We've used it effectively for fleet-genius.com. 我们已经有效地将它用于fleet-genius.com。
The following link provides a good overview of the architecture from a Rails point of view. 以下链接从Rails的角度提供了对体系结构的良好概述。
http://blog.elbowroomstudios.com/zero-to-multitenant-in-15-minutes-a-rails-walkthrough/ http://blog.elbowroomstudios.com/zero-to-multitenant-in-15-minutes-a-rails-walkthrough/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.