question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolasburteycommented, Dec 9, 2021

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?

0reactions
nicolasburteycommented, Jan 6, 2022

most/(all?) of the significant latency issues has been addressed over the last 2 weeks. closing this for now. we can reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Measure Latency on a Call - Call Centre Helper
Latency is unacceptable at 300 ms or greater. The International Telecoms Union (ITU) recommends no more than 150ms latency (one-way) for voice  ......
Read more >
Audio Latency for VoIP - How it Impacts Call Quality & Ways to ...
Audio latency can be a large contributing factor to poor VoIP calls. Real-time calls can be greatly affected by even the slightest delay....
Read more >
Latency Test for VoIP: How it Impacts Call Quality and Ways to ...
Latency is the lag in response time between a network initiated action and when the corresponding action is completed.
Read more >
Jitter, Latency, and How They Affect Your VoIP Calls
High latency for your VoIP calls can result in: Voice delay; Echo; Overlapping noises; Talk over effect; Lack of synchronization between voice ...
Read more >
Latency when calling from one API to another API
Short answer: Use the async/await pattern in your .NET code when calling remote services. Put services and servers as physically close ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found