-
Notifications
You must be signed in to change notification settings - Fork 36
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
How reliable is sync=true
API call, especially against the mainnet
?
#199
Comments
Hi @SiriusDely and thank you for the writeup! The sync feature is really not meant for production use and therefore we have no information on the reliability of it. That said the timeout you are experiencing seems to happen on the HTTP connection between the wallet and the HTTP client calling it. I base this guess on the fact that the wallet service itself never responds with a 503, so it must be the calling client setting that response status. For example if you are doing the You were asking for webhooks for the job statuses before. Would webhooks allow you to not use |
Thank you for quick response @latenssi . Have tried to increase the
Yes, this is exactly the reason why I was asking for the webhooks. However since it is not yet available, it makes me wondering for the available alternatives or recommended approaches here. I can list these two below, for which I am asking your opinion on the better approach, or probably you have other approaches that is even better, please let me know:
Thank you.
It looks like we need to put this on the documentation somewhere (or am I missing it?). I will try to do this. Where do you think a suitable place to put it, on the |
I think the openapi.yml would make most sense as that is where the
Option 3 is what we assumed users of this software would have to implement: poll the endpoints when needed. We are currently discussing the webhooks feature and its priority. It would help us if you could describe the way you would like webhooks to work 🙏 And anyone else reading this can of course chime in as well! Please add all webhooks related conversation to #180 EDIT: added call to move webhook discussion to #180 |
We will investigate the issue with sync calls. |
Sure, will send a PR soon.
OK, this is much clearer now.
I have put some comments on 180.
Thank you @latenssi |
@SiriusDely Are you connecting directly to the wallet API with |
@latenssi direct connection to the cloud run deployment, without proxy in between, I have tried both using the custom domain and the url provided by cloud run, ie. |
one more thing that I've just noticed, it looks like the Screen.Recording.2021-11-10.at.13.11.03.mov |
Thank you @SiriusDely for this comprehensive display! 👍 |
@SiriusDely A configurable timeout was added in #211, please try the updated version (and adjust |
@nanuuki we are in progress of integration the webhook, however will surely test this update, will let you know when this fixes the problem reported on this issue. Thank you! Really appreciate this. |
After testing using
sync=true
againsttestnet
for a while, we decided to deploy an instance offlow-wallet-api
to connect to themainnet
.For example for the endpoint to create an account:
POST /v1/accounts?sync=true
When the
wallet-api x testnet
can, most of the time, successfully response under 30/20 seconds, however thewallet-api x mainnet
always returns503 - Service Unavailable
in under 60 seconds or less,_doesn't matter if the time-out configuration of the wallet-api deployment is increased to a value something like 900 seconds
.However the account creation is indeed successfully created in the background by checking it from
GET /v1/accounts
.So the question is: How reliable is
sync=true
API call, especially against themainnet
? Do we even have a chance to use synchronized call on themainnet
(production)?Thank you.
This is all the log that we have for now:
This is deployed on the GCP Cloud Run.
The text was updated successfully, but these errors were encountered: