I run a MS Teams bot on a VM written in Python Botframework SDK v4. The VM is connected to MS Teams using ngrok, coupled with some other rules that we’ve put it to harden the security of the network tunnel.
There is always a 4-7 second lag for user messages to reach the VM. On the other hand, the response from VM to the user is usually instantaneous.
Is this lag expected? If not, how can I eliminate the lag? I’ve been experiencing the lag since launching the bot about 2 years ago.
Thank you.
Note: I am posting this question here as botframework’s GitHub suggested (“how does it work”). I don’t have code that can reproduce this issue, as it seems to be a networking issue than coding issue.