Lambda function not exceeding 8 secs but impacting customer experience.

0

Hi,
I have a lambda function in my contact flow that takes around 5 secs to execute and it's making my customer experience not as smooth as I would want to. Is there any way I can tackle this? E.g: play an audio while the function is being executed.....
I do now I could trigger the function asynchronously (meaning have another lambda just execute the function) and keep doing other stuff in my flow. Is this the only way to do it?

Thanks!

Edited by: theccalderon on Oct 29, 2019 3:32 PM

Edited by: theccalderon on Oct 29, 2019 3:33 PM

已提問 4 年前檢視次數 155 次
2 個答案
0

Hi,

I’d typically look at these items (not in any order really)

1 - Add logging to your lambda to record time stamps, to understand where the time is lost.
2 - Check why the endpoint taking Xs to reply. What is it doing, can that be optimised in anyway. Can it be amended to provide the data you need sooner and then run additional steps.
3 - Is your lambda sized correctly, https://dev.to/byrro/how-to-optimize-lambda-memory-and-cpu-4dj1
4 - Is time lost in your lambda, can this be optimised, refactored to a different language (extreme IMHO)

Playing music during the invocation is not supported.
Invoking async from a Connect point of view will work.
Maybe adding the lambda at the start before prompts will improve the customer experience.

Thanks
Dan

DanBloy
已回答 4 年前
0

Thank you Dan!

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南