推送订阅配置中是否有一种方法可以限制未完成消息的最大数量 . 在高级订户文档(https://cloud.google.com/pubsub/docs/push)中它说"With slow-start, Google Cloud Pub/Sub starts by sending a single message at a time, and doubles up with each successful delivery, until it reaches the maximum number of concurrent messages outstanding."我希望能够限制正在处理的消息的最大数量,这可以通过pub / sub配置完成吗?

我还想到了其他一些有效实现这一目标的方法,但似乎都没有:

  • 在我的推送 endpoints 中实现了一些信号量类型系统,一旦我的最大并发级别被命中,它就返回429?

  • 类似,但让它取消注册推送 endpoints (将其转换为拉取订阅),直到当前消息被处理完毕

我的推送 endpoints 都是gae,因此gae配置中还可能存在限制同时推送订阅请求的内容?