[英]Designing a mobile web server and client for traffic compression
I have been a bit confused on how best to go about this. 我对如何最好地解决这个问题感到有些困惑。
The thing : I'm creating a j2me mobile app that will send compressed data via HTTP to a web server, which then will uncompress the request, fetch the data, compress it and send back to client. 事情 :我正在创建一个j2me移动应用程序,它将通过HTTP将压缩数据发送到Web服务器,然后Web服务器将解压缩请求,获取数据,压缩数据并发送回客户端。
One similar solution to this is: T-Booster 一个类似的解决方案是: T-Booster
The Problem : I'm confused on how to send a compressed http request from the client app, what technology to use for the server and how best to go about implementing it. 问题 :我对如何从客户端应用程序发送压缩的http请求,服务器使用什么技术以及如何最好地实现它感到困惑。 Assuming the server is handing thousands of requests at a time, what will be the effect on the whole application? 假设服务器一次处理数千个请求,对整个应用程序的影响是什么?
Comments are well appreciated. 评论非常感谢。 Thanks. 谢谢。
Approach I: Top Criteria's: Compression, Security and Architectural design freedom 方法I:最重要的标准: 压缩,安全和建筑设计自由
The perceivable best way to achieve data compression is to create custom language that is understandable by the mobile client and its server only. 实现数据压缩的最佳可行方法是创建移动客户端及其服务器可理解的自定义语言。 You can add next level compression to it by using GZIP
/ LZW
or any other compression algorithm. 您可以使用GZIP
/ LZW
或任何其他压缩算法为其添加下一级压缩。
Pros: 优点:
Cons: 缺点:
Example: In this link Opera Mini read section on Functionality . 示例:在此链接中, Opera Mini阅读有关功能的部分。
. 。
Approach II: Top Criteria: Strict project timelines 方法II:最高标准: 严格的项目时间表
For quick disbursement of the project use 3rd party compressors like GZIP and industry standard webservice content exchange formats like SOAP and JSON. 为了快速支付项目,使用第三方压缩器,如GZIP和行业标准的Web服务内容交换格式,如SOAP和JSON。
Pros: 优点:
Cons: 缺点:
Example: http://developers.sun.com/mobility/apis/articles/wsa/ 示例: http : //developers.sun.com/mobility/apis/articles/wsa/
. 。
Edit: Some very useful links 编辑:一些非常有用的链接
I am not a J2ME developer but wanted to share my view as a Java developer. 我不是J2ME开发人员,但想分享我作为Java开发人员的观点。 If you are communicating with your webserver then i am guessing that you will be calling a webservice(SOAP or REST). 如果您正在与您的Web服务器通信,那么我猜您将调用Web服务(SOAP或REST)。 I did something similar with webservice for SOAP to compress the communication some time back. 我做了类似于Web服务的SOAP,以便在一段时间后压缩通信。 Here is what i followed. 这是我所遵循的。 http://www.predic8.com/soap-compression-howto.htm http://www.predic8.com/soap-compression-howto.htm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.