Assigned
Status Update
Comments
ba...@google.com <ba...@google.com>
ba...@google.com <ba...@google.com> #2
I have forwarded this request to the engineering team. We will update this issue with any progress updates and a resolution.
Description
- The lack of retry-on-stale connections logic has resulted in Cloud Run latencies.
Investigation and workarounds:
- The API clients are globally scoped in the code, they get cached and are [reused between invocations](
- According to the [documentation](
- The main workaround to solve this, besides mentioned above, is to manually implement a retry strategy in the application's code.
What you expected to happen:
- The backend of the library should implement the logic necessary so it doesn't need to be implemented from every environment that makes use of it instead.
Steps to reproduce:
- Build an application in Cloud Run based on this library.
- Do not configure keepalives or retry logic.
- Await for outbond connections to reset.