Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getTranscript performance is slow #5426

Closed
Hesham-Salama opened this issue Aug 22, 2024 · 6 comments
Closed

getTranscript performance is slow #5426

Hesham-Salama opened this issue Aug 22, 2024 · 6 comments
Labels
connect Issues realted to AWS Connect question General question

Comments

@Hesham-Salama
Copy link

Hesham-Salama commented Aug 22, 2024

Not sure if it's a problem in SDK but the performance of the call of getTranscript(:) https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-participant_GetTranscript.html is slow.

To Reproduce
Steps to reproduce the behavior:

  1. Just call - (AWSTask<AWSConnectParticipantGetTranscriptResponse *> *)getTranscript(AWSConnectParticipantGetTranscriptRequest *)request; which belongs to @interface AWSConnectParticipant

The performance is the same for both ENTIRE_PAST_SESSION and FROM_SEGMENT passed in RehydrationType. https://docs.aws.amazon.com/connect/latest/APIReference/API_PersistentChat.html#connect-Type-PersistentChat-SourceContactId

Observed Behavior
It takes at least 0.5 seconds per call / chat page retrieval.

Expected Behavior
The call should retrieve the transcripts much faster.

Environment(please complete the following information):

  • SDK Version: 2.33.8
  • Swift Version : 5
  • Xcode Version: 15.4

Device Information (please complete the following information):

  • Device: iPhone15, Simulator
  • iOS Version: 17.5

Maybe out of the topic, but I've also noticed the hydration process is slow as well.

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify team member labels Aug 22, 2024
@Hesham-Salama
Copy link
Author

Used region: London EU-WEST-2

@harsh62
Copy link
Member

harsh62 commented Aug 23, 2024

@Hesham-Salama Thanks for raising the issue. Our team will look into it and provide update when we have one.

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Aug 23, 2024
@harsh62 harsh62 added bug Something isn't working connect Issues realted to AWS Connect and removed pending-triage Issue is pending triage labels Aug 23, 2024
@tylerjroach
Copy link
Member

The call should retrieve the transcripts much faster.

Hi @Hesham-Salama,

Is the speed expectation for these calls based on seeing faster performance on other platforms? Our client SDKs can't control the request times of the AWS services being hit, but if you are seeing significant differences between the iOS SDK vs another one of our SDKs, please let us know.

@tylerjroach tylerjroach added question General question and removed bug Something isn't working labels Aug 29, 2024
@Hesham-Salama
Copy link
Author

Hesham-Salama commented Sep 2, 2024

@tylerjroach I have just tried the API in postman POST /participant/transcript.

Screenshot_

It seems the response time range is the same between the SDK and API. Honestly I think 621ms is too long and that's per page.

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Sep 2, 2024
@tylerjroach
Copy link
Member

@Hesham-Salama You will need to reach out to the Connect team if you have performance concerns on the API itself. Our SDKs cannot control the speed at which various service APIs respond.

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Sep 3, 2024
@ruisebas ruisebas closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connect Issues realted to AWS Connect question General question
Projects
None yet
Development

No branches or pull requests

4 participants