Appsync GraphQL responses are slow and have high latency?

0

My GraphQL http CRUD type requests through AppSync are consistently getting done in around 500ms. Is this normal and expected? I'm comparing it another app I have that is a more traditional REST-based CRUD stack and requests are performed in under 100ms.

I see other people have brought issues about AppSync slowness here as well:

I know this is all dependent on each person's setup. And I for example have data sources outside of the appsync region that may be contributing to the slowness. But it still seems AppSync GraphQL api has higher latency than traditional REST stacks.

Is this true, does AWS have any numbers to share? I guess I can run one of your sample apps, make sure everything is in the same data center and see what the 'optimal' performance looks like.

hisham
demandé il y a 5 ans2541 vues
4 réponses
0

Hi,

Sorry for the issues. It depends on your setup, but no, that kind of latency shouldn't be normal. Cross regional calls will add to your overhead, but that shouldn't cause that much.

Could you share some more about your setup? Your data sources would help. We could investigate in depth if you could share region info, api id, a rough timestamp, and/or a request id. Feel free to DM me those if you'd like me to do so.

Thanks!
Jeff

répondu il y a 5 ans
0

Thanks @JeffB! I just sent you private message with the info you requested.

Edited by: hisham on Jan 11, 2019 9:29 AM

hisham
répondu il y a 5 ans
0

I have the same issue even for a simplest query & resolver. @JeffB, have you found any clues yet? I'm willing to provide all necessary details to help nail down the cause.

Edited by: phi on Jan 23, 2019 3:25 AM

phi
répondu il y a 5 ans
0

Hi,

Sorry for the troubles. Generally, latencies can be caused by a lot of things unique to each customer setup – mutation processing from Lambda, network conditions... etc. It would probably be best to either open up a new post for us to track rather than commenting on existing issues that might be unrelated, or DM me your info we can look at your API and setup to offer advice.

Thanks,
Jeff

répondu il y a 5 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