【问题标题】:Slowly Phase out an old web application + replace incrementally慢慢淘汰旧的 Web 应用程序 + 逐步替换
【发布时间】:2014-07-10 21:49:53
【问题描述】:

我正在尝试制定一个计划,逐步淘汰旧的(8-10 年以上的)Web 应用程序代码库,并在其旁边逐步构建一个新的代码库。

我希望找到一种方法来允许请求通过,然后根据 URI 将它们路由到适当的代码库。

最好的描述方式是举个例子。首先,我想迭代地构建文章:

# route it to the new web application codebase
/articles/:id:
# everything else besides /articles* goes to the old codebase.
/* 

我可以控制服务器架构(除了应用程序语言),它现在使用 php + apache + varnish。因此,任何可以帮助实现这一目标的技术都可以;)

【问题讨论】:

    标签: web-applications architecture


    【解决方案1】:

    我会仔细看看 mod_rewrite。

    http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

    它在动态修改 url 方面为您提供了相当大的灵活性,同时仍将逻辑排除在应用程序层之外。这将这个中间状态与任一代码库分离,允许它们彼此不可知。

    【讨论】:

      猜你喜欢
      • 2014-09-24
      • 1970-01-01
      • 2013-10-31
      • 2013-04-27
      • 1970-01-01
      • 1970-01-01
      • 2012-02-03
      • 2013-06-26
      • 2014-12-31
      相关资源
      最近更新 更多