Strategies for dealing with slow API responses by Vincent Heinink

image

Oracle Digital Assistant can call backend APIs with custom components. The time these APIs take plays a role in user experience. If there’s no way to improve those API response times, then you need to think about how you’re going about user experience and acceptance. This article shows how to provide periodic feedback to users so that time no longer matters.

These are some strategies you might want to consider:
1.    If you’re using the Oracle SDKs for Web, iOS or Android, you can use a new 22.02 feature to for adding wait messages when there are delays in bot’s responses.
2.    Handle this as an asynchronous process – you might be able to update the user that there request is being processed and they will receive an update via Slack/Teams/SMS/Email (first three would be good candidates to use Oracle Digital Assistant Application-Initiated Conversations feature).
3.    If you’re not using one of the Oracle SDKs and you need to respond in a synchronous manner, you could have the custom component periodically update the user on progress by sending a customized wait message. This is the focus of the rest of the article.

Next to the actual use-case this article also shows how one can use OCI services from within a custom component, a convenient way of setting up required OCI resources using OCI Resource Manager/Terraform and a testing strategy for custom components. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.