Ask Your Question
0

When utilizing futures.wait, the Cloud Pub/Sub `publish` function becomes unresponsive.

asked 2021-08-10 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-07-15 03:00:00 +0000

woof gravatar image

There could be a few possible reasons why the Cloud Pub/Sub publish function is becoming unresponsive when utilizing futures.wait. Here are a few things to consider:

  1. Incorrect usage of futures.wait: futures.wait is a method that blocks until all submitted futures are complete. If there is any misusage of the futures.wait method, it could cause the publish function to become unresponsive. Double-check to make sure you are correctly handling the return values from futures.wait and that you are submitting the correct futures to the method.

  2. Rate limiting: If you are publishing a large number of messages concurrently, there may be rate limiting occurring on the Pub/Sub API side. Check the error log to see if there are any rate limiting messages. If there are, try pacing your publishes to avoid hitting rate limits.

  3. Network connectivity issues: If there are issues with network connectivity, it could cause the publish function to become unresponsive. Check to make sure your network settings are correct and the Pub/Sub API is accessible.

  4. Code issues: There may be issues with the code itself that is causing the publish function to become unresponsive. Check the error log to see if there are any exceptions being thrown or other error messages. Consider debugging the code to find and fix any issues.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-10 11:00:00 +0000

Seen: 17 times

Last updated: Jul 15 '21