Enable javascript in your browser for better experience. Need to know to enable it? Go here.

单页应用 (SPA) 注入

Published : Apr 13, 2021
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar. Understand more
Apr 2021
Trial ?

绞杀榕模式常被用作遗留系统现代化改造的默认策略,这种策略下,新代码包围在旧代码周围,并慢慢地实现旧代码的能力来满足所需功能。这种“由外而内”的方式对于很多遗留系统非常有用,但现在我们有了更多单页应用(SPA)的经验,可以用它们来替换遗留系统,我们正使用相反的“从内到外“的方式来替换遗留系统。与包围遗留系统不同,我们向旧应用HTML文档嵌入新的单页应用,并基于此逐渐扩展功能。只要用户能够容忍由于页面大小增加而带来的性能问题,新单页应用的框架就不需要与原有框架保持一致(例如,向原有的AngularJS应用嵌入新的React应用)。 单页应用注入 允许你逐渐迭代掉旧的单页应用,直到它被新应用完全替代掉。与绞杀榕模式通过在已有稳定代码的基础上构建新代码并最终替换旧代码相比,这种方式更接近于向已有应用注入一个外部的代理并依赖原有单页应用的功能,直到新应用能够完全接管。

Download the PDF

 

 

 

English | Português 

Sign up for the Technology Radar newsletter

 

 

Subscribe now

Download the PDF

 

 

 

English | Português 

Sign up for the Technology Radar newsletter

 

 

Subscribe now

Visit our archive to read previous volumes