New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overall performance is slow #95
Comments
Hi @eliezedeck, I'm the lead for AWS AppSync. I'd like to work with you to understand why you are experiencing these latencies. Could you DM me on Twitter (I'm @appwiz) with your API endpoint please? |
Having a similar experience here; any news popped up the last month? |
@burmisov it's hard to answer without knowing the details of your specific configuration. Many things can impact latency including the region you're running from, the data sources you're using, and the queries that you are running. The benchmarking methodology must also be looked at - for example the AppSync console is not a reflective test of how clients would operate, instead you're better off running tests using the language specific controls (like AppSync provides monitoring, logging, and debugging resources for looking at request times which you can find here: If you'd like assistance benchmarking and isolating any latency issues I'd also recommend opening up a ticket using the AWS console or visiting the AppSync forums: https://forums.aws.amazon.com/forum.jspa?forumID=280&start=0 |
@appwiz is the following good enough for a scenario ? If we have a web page
|
@tebeco this question would be best suited for a different issue or posting on the AppSync forum as this is the JS SDK repo. But some notes on your inquiry before closing the issue:
|
i am not in contact with the creator of the issue so may want to re-open it for him |
Also, the question is about slowness, so i posted a simple scenario :
4 per sec is a good and simple scenario for “real time” also since it is the same websocket used i guess the payload of each frame will be handled by the SDK client side so we would only to map the push(group, value) to whatever we want |
@tebeco as requested please post this in the AppSync forum. The information above is not enough to diagnose. We would need information like what your GraphQL schema looks like, region you're using, resolvers, etc. |
hummm ... so what is this github all about ? when do we come here create issue ? |
@tebeco that's a valid question - this is a repo for the JavaScript SDK and you're asking a question related to the actual service itself. The questions in this repo should be related to the JavaScript SDK so we can track, triage, and address them as we have engineers here from that team. Similarly the AWS AppSync forum has engineers supporting the service that can assist you best there. Hopefully that clarifies things. |
Hi - I recently posted on the AppSync forum on this: https://forums.aws.amazon.com/thread.jspa?threadID=296504&tstart=0 Was told to send more info on my API requests and they did investigate and gave me some suggestions. |
@hisham As Appsync is getting more popular, it looks like more people are experiencing the similar issues. This is my first project built with Appsync and it'd be very disappointing going live with that performance. |
@ngocketit As requested earlier in the thread, please post your issue to the AppSync forum and the team can assist you. |
@appwiz Thanks for your comment! I tried to post but got error |
@ngocketit generally these add to latency:
I'm wondering do you have any of that? |
@hisham I'm not having any of those you mentioned. The resolver is talking to Elasticsearch directly which managed to get the result for the same query in almost no time when I tried in Kibana. Even when I tried to run another query (GetItem) for a DynamoDb resolver, I still observed the similar latency. |
Ah then post to the AWS forum and let me know what they find out, as I'm very curious and need to know for my own development purposes. |
can someone explain why why a github was created to redirect users that have issue to a forum ? is it to hide info somewhere else so no psy see that there are issues ? i mean ... AWS right ? let’s reinvent a tool |
I agree that this isn't the best place to discuss about Appsync so I posted the question here on Aws forum https://forums.aws.amazon.com/thread.jspa?messageID=886300#886300 but got no reply yet. I really hope someone from AWS could have a look. In my opinion, there seems to be something very wrong with Appsync. I've been using it for a while now and really love it. I didn't notice the latency issue until recently when I tried to benchmark my app. It's rather disappointing. |
@ngocketit could you open a new issue with your API details on the AppSync forum? You just commented on an old issue that is 6 months old. The team monitors the forums but it's not possible to monitor all old threads that are since resolved and get new comments months/years later. |
@undefobj Sorry that I didn't notice your comment until after I posted the message on this thread (which is pretty recent) https://forums.aws.amazon.com/thread.jspa?threadID=296504&tstart=0. Lets see if someone at AWS will get back to me about that. If not, I'll open a new one. Thank you for your support! |
2020 - still same issues persists. I just have very simple pubsub with no data source and just sent a timestamp over and than compare local to message time...
Not getting anything better than 700ms .. I filter out a message if its pass 1s as it might be overruled already by another message but those latency times are crazy high. Tested the same thing with a simple raw websocket server running as lambda with latencies < 80ms. |
I suppose that as it's named "mobile-appsync" low latency was never a consideration but maybe reliability or other. We was comparing overall offers between AWS and Azure at that time and never found a managed service on AWS side for that use case (well the only only was way way more expensive) Also the fact that having to use github and then other forum / site etc .... did not helped for that it's really discouraging to be redirected or split in multiple places and then you're just sharing link that you hope will never break |
2022 - seeing 200-350 ms. This still isn't acceptable for real-time apps that need <50ms. |
Appsync GraphQL query sometimes takes 3 minutes to be executed from client app, X-ray shows ~200mls performance, I assume that the problem is the client app, it sends request after 3 minutes, because after function call network doesn't send or accept any kb for a long time, is it connection lost between client and server or what? |
I love the fact that AWS is tackling the GraphQL world. And being able to take advantage of the many other services that are accessible from AppSync is quite an attractive option.
But as the title says, the experience when using AppSync is very slow.
Compared to the likes of Firebase Realtime Database, Meteor, Graph.cool, etc... it is usually 3x slower. I am already using the closest region that I get a 250 ms RTT (Europe WEST I)), yet, queries, mutations, subscriptions all range in the 1100 - 1400 milliseconds.
Rarely do I see queries being resolved in less than 500 ms. Whereas using the alternatives mentioned above, it is rare to see any response above 500 ms. I am from Madagascar and am already on the fastest connection I can get my hands on over here. I agree that GraphQL itself needs a very complex implementation, but Graph.cool in their worst case scenario is able to respond in less than 500 ms. Note that I'm talking about the simplest query possible here; I have not even tried joins.
While AppSync is usable right now, the performance leaves little to be desired. I have no idea how the implementations are, but AWS, above all the company examples I could think of, should be the first to know the negative impact that slow apps have on users and clients.
Looking forward to having this performance issue solved.
The text was updated successfully, but these errors were encountered: