问题
· 六月 7, 2021

csp和webservice文件上传

为什么我用webservice上传文件比csp上传文件快?

webservice用的soap协议也得走http呀。csp直接处理http,少了xml的封装,按理来说应该更快。

经测试,1M的文件,csp慢了0.1s左右。在网关连接到1972后,有0.1s左右的停滞,不知道原因。

有什么办法能够使csp的文件上传速度比webservice快吗?

产品版本: Caché 2016.1
讨论 (1)0
登录或注册以继续

来自英文社区的回复:

In general, SOAP should be used over should probably be used over CSP as CSP is only recommended for legacy applications:

https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...

There's a lot of different ways the difference in latency could be added, from Authentication differences to how the page is being handled.

As SOAP is still getting active development, it's also possible that optimizations have been built in for SOAP that haven't for CSP.

Others may be helpful for how to code optimizations in the CSP page if you want to go that route, but SOAP is the preferred way.