简体   繁体   English

什么是Web调用的良好压缩API

[英]What is a good compression API for Web calls

We are in the process of implementing a RESTful Web Services layer (in JAX-RS/Jersey) to handle calls from Excel to our Java back end 我们正在实现RESTful Web服务层(在JAX-RS / Jersey中),以处理从Excel到Java后端的调用

The data coming back to Excel is generally quite verbose, containing potentially thousands of numeric data points. 返回Excel的数据通常非常冗长,可能包含数千个数字数据点。

We would like to compress this and have the Excel .Net layer (or theoretically any other clients) decompress it. 我们想压缩它并让Excel .Net层(或理论上是任何其他客户端)对其进行解压缩。 For extra credit, it would be nice if Excel could also compress the requests and decompress on the server. 为了获得更多荣誉,如果Excel还可以压缩请求并在服务器上解压缩,那将是很好的。

We have heard good things and bad about Protocol Buffers but that is more a serialization technology than a compression technology 我们已经听说过协议缓冲区的好与坏,但这更多的是序列化技术,而不是压缩技术。

Are there any recommended text based compression technologies that we should be considering to communicate back and forth between Excel and Java? 是否应该考虑使用推荐的基于文本的压缩技术,以便在Excel和Java之间来回通信?

You can use HTTP Compression with Apache Axis. 您可以将HTTP压缩与Apache Axis一起使用。 This is a huge performance boost. 这是巨大的性能提升。 For more information please refer to the link mentioned below. 有关更多信息,请参阅下面提到的链接。

http://www.tgerm.com/2010/11/http-compression-with-apache-axis-huge.html http://www.tgerm.com/2010/11/http-compression-with-apache-axis-huge.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM