Pubsub latency reaching minutes

主宰稳场 提交于 2019-12-24 09:08:22

问题


I've been working on a project utilizing the Gcloud pubsub platform on the node.js flexible runtime and for some reason have had some pretty crazy latency that has been increasing in severity over time. At first, only messages of a certain kind would sometimes experience heavy latency. However, as I've continued working over the past few days, now all messages are experiencing latency reaching over several minutes regardless of type. It's reached the point where testing has become impossible because the latency is taking so long.

What could be done to help alleviate the issue? I have not edited the code receiving the messages except for the function handling the messages. I'm receiving them through the subscription.on() function.

Please let me know what information I can provide to help reproduce the error. Thanks in advance.

Edit: I was able to get it working again by deleting the topic & subscriptions and recreating them. Now latency is at a minimum, but I'm still not sure what caused this issue. Maybe a large backlog of unprocessed messages? Any ideas would help to avoid this in the future.

来源:https://stackoverflow.com/questions/51736428/pubsub-latency-reaching-minutes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!