docusign / docusign-esign-java-client

The Official Docusign Java Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://javadoc.io/doc/com.docusign/docusign-esign-java/latest/index.html
MIT License
105 stars 96 forks source link

DocuSign API slow response issue #129

Closed visyagin closed 4 years ago

visyagin commented 4 years ago

Hello!

I'm trying to update envelope documents' content using DocuSign java API, but DocuSign responds to request in the range from 4 to 38 seconds for the same envelope, with the same parameters (For example, once it takes 5 seconds, and the second or third API call can take 35 seconds).

I use this endpoint "PUT /v2/accounts/{accountId}/envelopes/{envelopeId}/documents" and in requestBody I put EnvelopeDefinition with nested list of documents, that have documentBase64 content.

Also, parameters apply_document_fields and persist_tabs are set to true.

DocuSign Java client version is "2.9.0".

I tried to run my code on the different environments and from different places (networks), and I can't understand what's the reason for such a big difference in the execution time of this endpoint.

Maybe someone faced such an issue and can hint me some setting I missed or parameters I didn't pass? It is critical for our project to have a constant execution time less than 30 sec. I appreciate any of your suggestions. Thanks!

P.S. I have the issue only with the endpoint mentioned above. The other endpoints like "PUT /v2/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/tabs" or "GET /v2/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/tabs" or some other are being executed at more or less the same time.

Duplicated on stackOverflow: https://stackoverflow.com/questions/59913088/docusign-api-slow-response-issue

LarryKlugerDS commented 4 years ago

I will respond on StackOverflow. Thank you.