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

asked 4 years ago150 views
2 Answers
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
answered 4 years ago
0

Thank you Dan!

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions