webAPI taking more time for document download

Certified Senior Developer

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