English 中文(简体)
基于灯光的光柱应用的saas建筑
原标题:saas architecture for lamp based crm application

这将看起来像一系列问题,但都与我们一直在建设的SaaS 和 PHP 应用程序相关。 我们意识到我们的应用架构并研究它,以确保在开始生产之前能够遇到所有关键技术,而不会遇到任何失败。!

为了支持SaaS,我们决定让每个客户都拥有自己的数据库的数据库成为我们的数据库的多租户。

  • 如何提供能力,使SaaS多租户申请符合个人租户的需要?

  • 如何确保每个租户数据库的安全,使他们不偶然访问对方的数据?

  • 在客户人数增加的情况下,我们如何增加新的应用实例和数据库?

  • 我们如何确保SaaS网站的性能和可扩展性?

  • 我们如何处理SaaS 应用程序的失败,特别是当我们推出新版本和更新(持续整合)时?

  • 在SaaS应用程序中处理用户/用户和允许使用已激活和已停止使用的模块方面,是否有任何特殊解决办法?

< a href=" "https://i.sstatic.net/micgQ.png" rel=“nofolpt'>我附上了DB的块图,我们决定使用

问题回答

我在PHP中开发SaaS 应用程序时, 已经写了一篇好的文章, 包括许多我们需要考虑的项目。 请查看 < a href=" http:// advancedphpsopposolubs. com/blog/zend- framwork/ saas- application- development- useing- php- in- send- framework/" rel="nofollow" > SaaS 应用程序开发, 使用 Zend Frameel的 PHP

对你们一些问题的答复如下:

如何提供能力,使SaaS多租户应用程序定制,以适合个体租户的需要?

它就像一个正常的站点开发。 如果您有 A 到 Z 的资源, 那么您需要将指定或可访问的租户资源保存在数据库中。 然后在访问您时, 您可以检查权限 。

如何确保每个租户数据库的安全,使他们不偶然访问对方的数据?

SaaS 应用程序的数据库设计是一个在 Stack overflow 上多次讨论的主题。 您可以使用单个数据库或每个租户独有的数据库。 对于大项目, 第二个适合 。

如果您要使用单一数据库, 只需将 TENANT ID 保存在所有的表格中。 然后在验证租户时, 根据请求来自的子域, 将 TENANT ID 保存在会话中 。 然后在所有数据库操作中通过这个 ID, 这样它不会不小心影响其他租户的数据 。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签