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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠