开发Web应用程序时的分段环境的定义是什么? [英] What is the definition of a staging envronment when developing web applications?

查看:129
本文介绍了开发Web应用程序时的分段环境的定义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当为其他人开发Web应用程序时,多个测试环境是一个好主意。然而,不同的开发团队对于每个环境的含义都有不同的定义。

When developing a web application for others, multiple environments for testing are a good idea. However, different development teams have different definitions for the meaning of each environment.

目前,我喜欢保持简单,并有一个开发环境(我的本地机器)一个分期环境(有人在我将应用程序部署到世界之前),然后进行生产。虽然在更多的环境中可能有价值,但我现在将坚持使用这三个。

Currently, I like to keep it simple, and have a development environment (my local machine), a staging environment (someone before I deploy my app to the world), and then to production. Although there may be value in more environments, I'm going to be sticking with these three for now.

我的主要问题是:


定义分段环境时,什么属性将适合

What properties would be appropriate when defining a staging environment?

但是,这里有一些相关的问题:

However, here are some related questions:


  • Web服务器是否必须位于与数据库不同的物理机器上? li>
  • 数据库是否必须与生产数据库完全相同?

  • 分期环境可以停止维护吗?

  • 可以使用分段环境来测试新功能(即beta版本)吗?

推荐答案

我建议您的分期环境尽可能接近您的生产环境。

I'd suggest that your staging environment resembles your production environment as closely as possible.

如果您为数据库和Web服务器使用单独的服务器,请尝试将其保留在分段中,如果使用负载平衡器,请尝试配置其进行分期以及等等。

If you use separate servers for the DB and the Web Server, try to keep that in staging as well, if you use a load balancer, try to configure it for staging as well, etc.

然而,根据我的经验,情况并非如此,我们的分期环境在硬件方面总是比生产环境低。这个问题是您无法测试每个功能,并确保生产能够正常工作。

In my experience, however, this was not the case, and our staging environment was always less powerful in terms of hardware than the production environment. The problem with this is that you can't test every feature and be sure production will work the same.

关于您的其他问题:


  • 分段通常可以在需要时关闭,您可以有更灵活的安排,安装新版本。

  • 我们有些情况下我们在分期上安装了多个应用程序实例。一个类似于生产中的版本,另一个具有新功能供客户端测试。

这篇关于开发Web应用程序时的分段环境的定义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆