Trouble Connecting to API via gRPC

General discussions and other topics.
2 posts Page 1 of 1
by maxtwiese » Fri Nov 22, 2024 12:03 pm
Hi Y'all!

I'm experiencing a massive latency increase when pinging an API via gRPC when connected to my home wifi.

Specifically, I am contacting Google's Discovery Engine API via cURL (http) & it's Python SDK (gRPC). My latency is around 700ms when contacting the API in the following scenarios:
- on my work's wifi (not Sonic) via both http & gRPC
- on my phone's hotspot via both http & gRPC
- and, on my sonic wifi via http

However, my latency is consistently ~75.7s (& always >75s) when contacting the API via gRPC on my Sonic wifi.

To recreate this, explicitly, one could hit the Discovery Engine API:
- cURL: https://cloud.google.com/generative-ai- ... earch-rest
- Python SDK: https://cloud.google.com/generative-ai- ... rch-python

I first experienced this problem on the SMART/RG 802.11ac VDSL2 GATEWAY MODEL: SR516ac router that Sonic sent me a few years ago & I've used since. It persisted when I swapped out to the SR515ac that Sonic sent me last year. I spoke with Rainey @ tech support who recommended I try connecting directly to the Sonic equipment & posting here for support.

I will be purchasing an adapter this weekend to test a direct connection & will post an update; but, in the meantime, has anyone experienced something similar? Any support or ideas would be appreciated, thank you!

Peace Peace Peace
Max
by maxtwiese » Fri Nov 22, 2024 8:59 pm
Update: When plugged into my ONT via ethernet my latency is back to normal, so the issue lies in the router itself. Has anyone else had difficulty with gRPC over Sonic's routers? Model in original post.
2 posts Page 1 of 1