GWT和Vaadin之间的差异 [英] Differences between GWT and Vaadin

查看:264
本文介绍了GWT和Vaadin之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以建议GWT或Vaadin是否是设计应用程序的更好选择?另外:编码风格有什么不同?

解决方案

在GWT应用程序逻辑中,通常在客户端运行。它只在需要读取/保存一些数据时调用服务器。



Vaadin应用程序逻辑位于服务器端。客户端通常必须在每次用户交互后调用服务器。

GWT优势
应用程序逻辑(回复用户交互)速度更快,因为它在浏览器中本地运行。它对网络状况不佳也相对不敏感。只有在需要时才使用网络(读取/保存新数据),这可以节省净流量(对高流量站点很重要)。在这方面,Vaadin速度较慢, UI交互中的一个延迟,这对用户来说很烦人。如果网络不好,这将显示在用户界面响应。

Vaadin优点:

应用程序逻辑运行在服务器上,因此用户无法检查它。可以说(Vaadin声称)使它更安全。

Can anyone suggest whether "GWT" or "Vaadin" are a better choice to design an application? Also: what are the differences in coding style?

解决方案

In GWT application logic is normally run on client side. It only calls server when it needs to read/save some data.

In Vaadin application logic is on server side. Client side must normally call server after every user interaction.

GWT advantage:
App logic (replies to user interaction) is faster as it is run locally in the browser. It's also relatively insensitive to bad network conditions. Network is used only when needed (to read/save new data), which saves net traffic (important for high traffic sites).

In this regard Vaadin is slower and introduces a lag in UI interaction which is annoying to user. If network is bad this will show in UI responsiveness.

Vaadin advantage:
App logic is run on the server so it can not be inspected by the user. Arguably (Vaadin claims) that makes it more secure.

这篇关于GWT和Vaadin之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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