High latency in connection between go app - remote MySQL database

Hello, I use go in my app and I have noticed that if I ping the db in main function the ping is 1.6s! If I ping the db using other language (PHP or NodeJS) the ping is normal(300ms). For example if I have 2 db queries, I get the response in 4s!

Can this be an issue when I installed golang in my system? Have anyone the same issue?

Very strange.
What OS are you running on?
Have you tried doing an strace on your code to see where the delay appears?
What is the DB?
Where is it running?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.