Question
Michael Lei · Jun 28

uploading files with csp and webservice

Why do I upload files faster with webservice than with csp?

The soap protocol used by webservice has to go through http protocol. csp directly handles http, no xml encapsulation, so it should be faster.

After testing, for a 1M file, csp is about 0.1s slower. After the gateway connection to 1972, there is a stall of about 0.1s, not sure why.

Is there any way to make the file upload speed of csp faster than webservice?

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

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

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

 

00
1 0 1 112
Log in or sign up to continue

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.