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

demandé il y a 4 ans155 vues
2 réponses
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
répondu il y a 4 ans
0

Thank you Dan!

répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions