Latency in calls to MainQuery
See original GitHub issue@nicolasburtey experienced a period of latency between making an onchain payment and seeing his balance update in the app. I checked a trace of the call to the MainQuery from @nicolasburtey user here. We can see that the trace contains a lot of http calls to https://fcm.googleapis.com/fcm/send
, but as these seem to be asynchronous we don’t think this is the cause of the latency. Instead it seems to be coming from the part of the code which fetches the current balance which loops through all the unpaid invoices / unprocessed payments. More investigation is needed to confirm but we need to trim down the time it takes to make this call as it’s the main query we use in the app to display all of the data to the user so it should never take 3.5 seconds to respond.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
the problem has been amplified by the fact
trigger
was offline since yesterday migration. let’s look at https://github.com/GaloyMoney/galoy/issues/604 as a potential solution?most/(all?) of the significant latency issues has been addressed over the last 2 weeks. closing this for now. we can reopen if needed.