I have a webAPI which will receive the document from external system in binary format, but for file size around 25 MB, the API is taking more than 25 seconds.Is there any way we can increase the API performance by reducing the time taken by it?Thanks in advance.
Discussion posts and replies are publicly visible
You can't significantly speed up the binary transfer itself in Appian's Web API. Increase client side timeouts (>30s). 25MB in 25s (~1MB/s) indicates a network/bandwidth issue, not Appian. The bottleneck is likely network speed or external system performance, not Appian.
To increase the performance of any API, you will have to talk to the people developing that API.
Can you please confirm are they generating the file and then providing you the file? or only providing the Binary file?
If the Web API is taking more time during document download, it might be helpful to review how the document is being returned in the response. Sometimes delays happen if additional processing or conversions are happening before sending the file back. Returning the document directly in the response body and avoiding extra logic can reduce the response time. Also check if the document size or network latency between the client and Appian is contributing to the delay.
You may also find this related discussion useful where developers talk about downloading documents via Web API using document IDs: https://community.appian.com/discussions/f/integrations/26315/visit-web-api-to-download-document-using-document-id