[英]What is client-side GWT architecture of Wave
I am wondering if some of you are aware of the architectural approaches taken by the Wave team to build its GWT web client? 我想知道你们中的某些人是否了解Wave团队用于构建其GWT Web客户端的体系结构方法? Since i am trying to optimize performance of one GWT app designed for mobiles, it is hard not to admire its speedy credentials :) 由于我正在尝试优化一款专为移动设备设计的GWT应用程序的性能,因此很难不钦佩其快速的凭证:)
Is Wave not using GWT-RPC to get regular updates from server? Wave是否不使用GWT-RPC从服务器获取常规更新? Firefox tracks some JSON communication going over the wire but nothing like RPC stuff. Firefox跟踪通过导线进行的JSON通信,但没有类似RPC的东西。
How do they proceed when, for instance a new wavelet is sent. 当例如发送新的小波时,它们如何进行。 Is there a view object for every wave DTO, or they use some other pattern? 每个wave DTO是否都有一个视图对象,还是使用其他模式?
How is GUI updated after a response with, say, a new Wave arrives. 在收到新的Wave响应后,如何更新GUI。 Would the whole area with wavelets being rerendered or the use some smart techniques to ensure that only particular element is touched? 是要重新渲染带有小波的整个区域,还是使用一些智能技术来确保仅触摸特定元素?
Thanks 谢谢
This is probably information overload, but since Google Wave is open source you can actually look at how they set things up here . 这可能是信息过载,但是由于Google Wave是开源的,因此您实际上可以在这里了解它们的设置方式。
If you look at WaveView.java, for example, you can see that they are using a client-side event bus like Ray Ryan mentioned in this talk at Google IO 2009. I seem to remember seeing another video where they talked about these aspects of Google Wave: 例如,如果您查看WaveView.java,您会发现他们使用的是客户端事件总线,例如Google IO 2009上的演讲中提到的Ray Ryan。我似乎还记得看过另一个视频,他们在其中谈论了这些方面。 Google Wave:
Additionally, I'm pretty sure they use something like Comet with JSONP to maintain continuous communication with the server, so they're not polling the server constantly for new updates, but rather there's a dynamically-generated javascript file that's being loaded in incrementally from the server, which contains instructions to fire whatever events the server has decided need to be fired. 另外,我很确定他们使用JSONP之类的Comet之类的东西来保持与服务器的持续通信,因此他们不会不断地轮询服务器以获取新的更新,而是有一个动态生成的javascript文件正在从中逐步加载服务器,其中包含用于触发服务器决定需要触发的任何事件的指令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.